paysafe 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/paysafe/version.rb +1 -1
- metadata +7 -135
- data/.env.sample +0 -16
- data/.github/dependabot.yml +0 -16
- data/.github/workflows/ci.yml +0 -44
- data/.gitignore +0 -9
- data/CHANGELOG.md +0 -85
- data/CODE_OF_CONDUCT.md +0 -13
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -82
- data/Rakefile +0 -10
- data/bin/console +0 -37
- data/bin/setup +0 -41
- data/codecov.yml +0 -5
- data/paysafe.gemspec +0 -34
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d47095610ddd26b613a74eb8abff64168a0d2cf2f78f33040c0ba8308f9878f
|
|
4
|
+
data.tar.gz: 2f8ef012981e655218cb68d8ada51655e98ee77940888f5cdfaa768e53536fef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4bd3ae95877d75d9a08f05401325ded30dfa60ef007b88bbab23b863743016a6a382005cabd253926727a9d66c2a198608046e0f57c38a82005b6636fc761158
|
|
7
|
+
data.tar.gz: 570401f8d3b531ad9cfb057165130656ad4b9a43a857bc6f7f9f2b5ab9d98d243b4c7bcd6fbe5c78f6094d9a2c9471dfd2a113abf0f24290dbad907c5cf82f3a
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://badge.fury.io/rb/paysafe)
|
|
4
4
|

|
|
5
5
|
|
|
6
|
-
A well tested Ruby interface to the [Paysafe REST API](paysafe_api_reference) (formerly Optimal Payments).
|
|
6
|
+
A well tested Ruby interface to the [Paysafe REST API](paysafe_api_reference) (formerly Optimal Payments). Not all API actions are supported yet. Since the Paysafe API uses camelCase, this gem will handle converting to and from snake_case for you.
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
data/lib/paysafe/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paysafe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Javier Julio
|
|
8
|
-
|
|
9
|
-
bindir: exe
|
|
8
|
+
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: http
|
|
@@ -19,7 +18,7 @@ dependencies:
|
|
|
19
18
|
version: '4'
|
|
20
19
|
- - "<"
|
|
21
20
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
21
|
+
version: '7'
|
|
23
22
|
type: :runtime
|
|
24
23
|
prerelease: false
|
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,119 +28,7 @@ dependencies:
|
|
|
29
28
|
version: '4'
|
|
30
29
|
- - "<"
|
|
31
30
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
33
|
-
- !ruby/object:Gem::Dependency
|
|
34
|
-
name: rake
|
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
|
36
|
-
requirements:
|
|
37
|
-
- - ">="
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '0'
|
|
40
|
-
type: :development
|
|
41
|
-
prerelease: false
|
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - ">="
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '0'
|
|
47
|
-
- !ruby/object:Gem::Dependency
|
|
48
|
-
name: bundler
|
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - "~>"
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '2.0'
|
|
54
|
-
type: :development
|
|
55
|
-
prerelease: false
|
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
requirements:
|
|
58
|
-
- - "~>"
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '2.0'
|
|
61
|
-
- !ruby/object:Gem::Dependency
|
|
62
|
-
name: dotenv
|
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
|
64
|
-
requirements:
|
|
65
|
-
- - ">="
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version: '0'
|
|
68
|
-
type: :development
|
|
69
|
-
prerelease: false
|
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - ">="
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: '0'
|
|
75
|
-
- !ruby/object:Gem::Dependency
|
|
76
|
-
name: minitest
|
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - ">="
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '0'
|
|
82
|
-
type: :development
|
|
83
|
-
prerelease: false
|
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - ">="
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: '0'
|
|
89
|
-
- !ruby/object:Gem::Dependency
|
|
90
|
-
name: minitest-reporters
|
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
|
92
|
-
requirements:
|
|
93
|
-
- - ">="
|
|
94
|
-
- !ruby/object:Gem::Version
|
|
95
|
-
version: '0'
|
|
96
|
-
type: :development
|
|
97
|
-
prerelease: false
|
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
99
|
-
requirements:
|
|
100
|
-
- - ">="
|
|
101
|
-
- !ruby/object:Gem::Version
|
|
102
|
-
version: '0'
|
|
103
|
-
- !ruby/object:Gem::Dependency
|
|
104
|
-
name: minitest-mock_expectations
|
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
|
106
|
-
requirements:
|
|
107
|
-
- - ">="
|
|
108
|
-
- !ruby/object:Gem::Version
|
|
109
|
-
version: '0'
|
|
110
|
-
type: :development
|
|
111
|
-
prerelease: false
|
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
113
|
-
requirements:
|
|
114
|
-
- - ">="
|
|
115
|
-
- !ruby/object:Gem::Version
|
|
116
|
-
version: '0'
|
|
117
|
-
- !ruby/object:Gem::Dependency
|
|
118
|
-
name: vcr
|
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
|
120
|
-
requirements:
|
|
121
|
-
- - ">="
|
|
122
|
-
- !ruby/object:Gem::Version
|
|
123
|
-
version: '0'
|
|
124
|
-
type: :development
|
|
125
|
-
prerelease: false
|
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
127
|
-
requirements:
|
|
128
|
-
- - ">="
|
|
129
|
-
- !ruby/object:Gem::Version
|
|
130
|
-
version: '0'
|
|
131
|
-
- !ruby/object:Gem::Dependency
|
|
132
|
-
name: webmock
|
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
|
134
|
-
requirements:
|
|
135
|
-
- - ">="
|
|
136
|
-
- !ruby/object:Gem::Version
|
|
137
|
-
version: '0'
|
|
138
|
-
type: :development
|
|
139
|
-
prerelease: false
|
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
141
|
-
requirements:
|
|
142
|
-
- - ">="
|
|
143
|
-
- !ruby/object:Gem::Version
|
|
144
|
-
version: '0'
|
|
31
|
+
version: '7'
|
|
145
32
|
description: A Ruby interface to the Paysafe REST API.
|
|
146
33
|
email:
|
|
147
34
|
- javier@jackpocket.com
|
|
@@ -149,20 +36,8 @@ executables: []
|
|
|
149
36
|
extensions: []
|
|
150
37
|
extra_rdoc_files: []
|
|
151
38
|
files:
|
|
152
|
-
- ".env.sample"
|
|
153
|
-
- ".github/dependabot.yml"
|
|
154
|
-
- ".github/workflows/ci.yml"
|
|
155
|
-
- ".gitignore"
|
|
156
|
-
- CHANGELOG.md
|
|
157
|
-
- CODE_OF_CONDUCT.md
|
|
158
|
-
- Gemfile
|
|
159
|
-
- Gemfile.lock
|
|
160
39
|
- LICENSE.txt
|
|
161
40
|
- README.md
|
|
162
|
-
- Rakefile
|
|
163
|
-
- bin/console
|
|
164
|
-
- bin/setup
|
|
165
|
-
- codecov.yml
|
|
166
41
|
- lib/paysafe.rb
|
|
167
42
|
- lib/paysafe/address.rb
|
|
168
43
|
- lib/paysafe/api/base_api.rb
|
|
@@ -192,12 +67,10 @@ files:
|
|
|
192
67
|
- lib/paysafe/standalone_credit.rb
|
|
193
68
|
- lib/paysafe/verification.rb
|
|
194
69
|
- lib/paysafe/version.rb
|
|
195
|
-
- paysafe.gemspec
|
|
196
70
|
homepage: https://github.com/jackpocket/paysafe
|
|
197
71
|
licenses:
|
|
198
72
|
- MIT
|
|
199
73
|
metadata: {}
|
|
200
|
-
post_install_message:
|
|
201
74
|
rdoc_options: []
|
|
202
75
|
require_paths:
|
|
203
76
|
- lib
|
|
@@ -205,15 +78,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
205
78
|
requirements:
|
|
206
79
|
- - ">="
|
|
207
80
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: '2
|
|
81
|
+
version: '3.2'
|
|
209
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
83
|
requirements:
|
|
211
84
|
- - ">="
|
|
212
85
|
- !ruby/object:Gem::Version
|
|
213
86
|
version: '0'
|
|
214
87
|
requirements: []
|
|
215
|
-
rubygems_version:
|
|
216
|
-
signing_key:
|
|
88
|
+
rubygems_version: 4.0.3
|
|
217
89
|
specification_version: 4
|
|
218
90
|
summary: A Ruby interface to the Paysafe REST API.
|
|
219
91
|
test_files: []
|
data/.env.sample
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
PAYSAFE_ACCOUNT_NUMBER="YOUR_ACCOUNT_NUMBER"
|
|
2
|
-
PAYSAFE_API_KEY="YOUR_API_KEY"
|
|
3
|
-
PAYSAFE_API_SECRET="YOUR_API_SECRET"
|
|
4
|
-
|
|
5
|
-
# Optional. For generating your own Single Use Tokens.
|
|
6
|
-
PAYSAFE_SUT_API_KEY="YOUR_SUT_API_KEY"
|
|
7
|
-
PAYSAFE_SUT_API_SECRET="YOUR_SUT_API_SECRET"
|
|
8
|
-
|
|
9
|
-
# For the Paysafe "Payments API" (aka Unity platform). This will
|
|
10
|
-
# very likely be the same values as the first set at the top.
|
|
11
|
-
PAYSAFE_UNITY_API_KEY="YOUR_UNITY_API_KEY"
|
|
12
|
-
PAYSAFE_UNITY_API_SECRET="YOUR_UNITY_API_SECRET"
|
|
13
|
-
|
|
14
|
-
# Optional. Nothing is using this out of the box.
|
|
15
|
-
PAYSAFE_UNITY_SUT_API_KEY="YOUR_UNITY_SUT_API_KEY"
|
|
16
|
-
PAYSAFE_UNITY_SUT_API_SECRET="YOUR_UNITY_SUT_API_SECRET"
|
data/.github/dependabot.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: bundler
|
|
4
|
-
directory: "/"
|
|
5
|
-
schedule:
|
|
6
|
-
interval: daily
|
|
7
|
-
time: "08:30"
|
|
8
|
-
timezone: America/New_York
|
|
9
|
-
open-pull-requests-limit: 99
|
|
10
|
-
- package-ecosystem: github-actions
|
|
11
|
-
directory: "/"
|
|
12
|
-
schedule:
|
|
13
|
-
interval: daily
|
|
14
|
-
time: "08:30"
|
|
15
|
-
timezone: America/New_York
|
|
16
|
-
open-pull-requests-limit: 99
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ master ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ master ]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
strategy:
|
|
13
|
-
matrix:
|
|
14
|
-
ruby: [ '3.0', '3.1', '3.2' ]
|
|
15
|
-
env:
|
|
16
|
-
CODECOV_UPLOAD_TAG: ${{ matrix.ruby }}
|
|
17
|
-
name: Ruby ${{ matrix.ruby }}
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v3
|
|
20
|
-
- uses: ruby/setup-ruby@v1
|
|
21
|
-
with:
|
|
22
|
-
ruby-version: ${{ matrix.ruby }}
|
|
23
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
24
|
-
- name: Run Tests
|
|
25
|
-
env:
|
|
26
|
-
COVERAGE: true
|
|
27
|
-
RUBYOPT: "-W:deprecated"
|
|
28
|
-
PAYSAFE_ACCOUNT_NUMBER: test
|
|
29
|
-
PAYSAFE_API_KEY: test
|
|
30
|
-
PAYSAFE_API_SECRET: test
|
|
31
|
-
PAYSAFE_SUT_API_KEY: test
|
|
32
|
-
PAYSAFE_SUT_API_SECRET: test
|
|
33
|
-
PAYSAFE_UNITY_API_KEY: test
|
|
34
|
-
PAYSAFE_UNITY_API_SECRET: test
|
|
35
|
-
PAYSAFE_UNITY_SUT_API_KEY: test
|
|
36
|
-
PAYSAFE_UNITY_SUT_API_SECRET: test
|
|
37
|
-
run: |
|
|
38
|
-
bundle exec rake
|
|
39
|
-
- name: Upload coverage to Codecov
|
|
40
|
-
uses: codecov/codecov-action@v3
|
|
41
|
-
with:
|
|
42
|
-
env_vars: CODECOV_UPLOAD_TAG
|
|
43
|
-
fail_ci_if_error: true
|
|
44
|
-
token: ${{ secrets.CODECOV_TOKEN }}
|
data/.gitignore
DELETED
data/CHANGELOG.md
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
Changelog
|
|
2
|
-
=========
|
|
3
|
-
|
|
4
|
-
## 0.15.0 (2023-07-20)
|
|
5
|
-
|
|
6
|
-
* Updated the `create_single_use_customer_token` method to account for more fields in the response object.
|
|
7
|
-
|
|
8
|
-
## 0.14.0 (2021-01-19)
|
|
9
|
-
|
|
10
|
-
* No code changes - moved repository to Jackpocket organization and updated URLs
|
|
11
|
-
|
|
12
|
-
## 0.13.0 (2021-01-14)
|
|
13
|
-
|
|
14
|
-
* Renamed client `timeouts` option to `timeout`.
|
|
15
|
-
* Requires Ruby 2.5 and up.
|
|
16
|
-
* Added Ruby 3.0 build to CI.
|
|
17
|
-
|
|
18
|
-
## 0.12.0 (2020-05-14)
|
|
19
|
-
|
|
20
|
-
* Added customers and single use tokens support for Payments API:
|
|
21
|
-
* `client.payments.create_single_use_customer_token`
|
|
22
|
-
* `client.payments.create_customer`
|
|
23
|
-
* `client.payments.get_customer`
|
|
24
|
-
* Removed deprecated methods on `Client` object. Please use API scoped methods defined on `payments`, `customer_vault`, or `card_payments`.
|
|
25
|
-
|
|
26
|
-
## 0.11.0 (2020-04-08)
|
|
27
|
-
|
|
28
|
-
* Added standalone credits support for Payments API:
|
|
29
|
-
* `client.payments.create_standalone_credit`
|
|
30
|
-
* `client.payments.get_standalone_credit`
|
|
31
|
-
|
|
32
|
-
## 0.10.0 (2020-02-24)
|
|
33
|
-
|
|
34
|
-
* Removed client configuration using a block.
|
|
35
|
-
* Deprecated `Client` object API methods.
|
|
36
|
-
* All API methods are now grouped by API objects, for example:
|
|
37
|
-
* Customer Vault API: `client.create_profile` is now `client.customer_vault.create_profile`
|
|
38
|
-
* Card Payments API: `client.create_verification` is now `client.card_payments.create_verification`
|
|
39
|
-
* Includes some methods for new Payments API through `client.payments` (aka Paysafe Unity Platform)
|
|
40
|
-
* Requires http gem v4.
|
|
41
|
-
* Requires Ruby 2.4 and up.
|
|
42
|
-
* Added Ruby 2.7 build to CI.
|
|
43
|
-
|
|
44
|
-
## 0.9.4 (2019-09-24)
|
|
45
|
-
|
|
46
|
-
* Relax http gem dependency to allow v2 through v4.
|
|
47
|
-
|
|
48
|
-
## 0.9.3 (2017-12-19)
|
|
49
|
-
|
|
50
|
-
* Relax http gem dependency to allow v2 or v3.
|
|
51
|
-
* Use additional args for `purchase` method.
|
|
52
|
-
|
|
53
|
-
## 0.9.2 (2017-04-27)
|
|
54
|
-
|
|
55
|
-
* Added predicate methods for checking CVV and AVS status on a verification request, e.g. `cvv_match?`, `avs_no_match?`, etc.
|
|
56
|
-
|
|
57
|
-
## 0.9.1 (2017-04-24)
|
|
58
|
-
|
|
59
|
-
* Added `card.brand` method that converts `card_type` value (VI) to brand name (visa).
|
|
60
|
-
|
|
61
|
-
## 0.9.0 (2017-04-19)
|
|
62
|
-
|
|
63
|
-
This is a major update with breaking changes so moving the version up quite a bit since I'd also like to move to a 1.0 release soon after.
|
|
64
|
-
|
|
65
|
-
* Requires Ruby 2.3 and up.
|
|
66
|
-
* All API methods now accept params in snake_case and are converted to camelCase.
|
|
67
|
-
* Responses are now typed with classes using snake_case properties (converted from camelCase) handling nested complex objects and lazily loaded. No more hashes.
|
|
68
|
-
* Field names match Paysafe API docs except when making requests and working with responses, its all in snake_case.
|
|
69
|
-
* Renamed config `timeout_options` renamed to `timeouts`.
|
|
70
|
-
* Removed default value for `timeouts` config.
|
|
71
|
-
* Added new methods to work with single use tokens:
|
|
72
|
-
* `create_single_use_token` (requires different API key and secret)
|
|
73
|
-
* `create_verification_from_token`
|
|
74
|
-
* `create_profile_from_token`
|
|
75
|
-
* `create_card_from_token`
|
|
76
|
-
* Updated `bin/setup` script.
|
|
77
|
-
* Updated API base domain to paysafe.com.
|
|
78
|
-
|
|
79
|
-
## 0.6.2 (2016-04-25)
|
|
80
|
-
|
|
81
|
-
* Upgrade http gem to v2.0
|
|
82
|
-
|
|
83
|
-
## 0.6.1 (2016-03-02)
|
|
84
|
-
|
|
85
|
-
* Add `update_profile` method to client
|
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Contributor Code of Conduct
|
|
2
|
-
|
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
|
4
|
-
|
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
|
6
|
-
|
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
|
8
|
-
|
|
9
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
|
10
|
-
|
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
|
12
|
-
|
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
paysafe (0.15.0)
|
|
5
|
-
http (>= 4, < 6)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
addressable (2.8.4)
|
|
11
|
-
public_suffix (>= 2.0.2, < 6.0)
|
|
12
|
-
ansi (1.5.0)
|
|
13
|
-
builder (3.2.4)
|
|
14
|
-
crack (0.4.5)
|
|
15
|
-
rexml
|
|
16
|
-
docile (1.4.0)
|
|
17
|
-
domain_name (0.5.20190701)
|
|
18
|
-
unf (>= 0.0.5, < 1.0.0)
|
|
19
|
-
dotenv (2.8.1)
|
|
20
|
-
ffi (1.15.5)
|
|
21
|
-
ffi-compiler (1.0.1)
|
|
22
|
-
ffi (>= 1.0.0)
|
|
23
|
-
rake
|
|
24
|
-
hashdiff (1.0.1)
|
|
25
|
-
http (5.1.1)
|
|
26
|
-
addressable (~> 2.8)
|
|
27
|
-
http-cookie (~> 1.0)
|
|
28
|
-
http-form_data (~> 2.2)
|
|
29
|
-
llhttp-ffi (~> 0.4.0)
|
|
30
|
-
http-cookie (1.0.5)
|
|
31
|
-
domain_name (~> 0.5)
|
|
32
|
-
http-form_data (2.3.0)
|
|
33
|
-
llhttp-ffi (0.4.0)
|
|
34
|
-
ffi-compiler (~> 1.0)
|
|
35
|
-
rake (~> 13.0)
|
|
36
|
-
minitest (5.18.1)
|
|
37
|
-
minitest-mock_expectations (1.2.0)
|
|
38
|
-
minitest-reporters (1.6.0)
|
|
39
|
-
ansi
|
|
40
|
-
builder
|
|
41
|
-
minitest (>= 5.0)
|
|
42
|
-
ruby-progressbar
|
|
43
|
-
public_suffix (5.0.3)
|
|
44
|
-
rake (13.0.6)
|
|
45
|
-
rexml (3.2.5)
|
|
46
|
-
ruby-progressbar (1.13.0)
|
|
47
|
-
simplecov (0.22.0)
|
|
48
|
-
docile (~> 1.1)
|
|
49
|
-
simplecov-html (~> 0.11)
|
|
50
|
-
simplecov_json_formatter (~> 0.1)
|
|
51
|
-
simplecov-cobertura (2.1.0)
|
|
52
|
-
rexml
|
|
53
|
-
simplecov (~> 0.19)
|
|
54
|
-
simplecov-html (0.12.3)
|
|
55
|
-
simplecov_json_formatter (0.1.4)
|
|
56
|
-
unf (0.1.4)
|
|
57
|
-
unf_ext
|
|
58
|
-
unf_ext (0.0.8.2)
|
|
59
|
-
vcr (6.2.0)
|
|
60
|
-
webmock (3.18.1)
|
|
61
|
-
addressable (>= 2.8.0)
|
|
62
|
-
crack (>= 0.3.2)
|
|
63
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
64
|
-
|
|
65
|
-
PLATFORMS
|
|
66
|
-
ruby
|
|
67
|
-
|
|
68
|
-
DEPENDENCIES
|
|
69
|
-
bundler (~> 2.0)
|
|
70
|
-
dotenv
|
|
71
|
-
minitest
|
|
72
|
-
minitest-mock_expectations
|
|
73
|
-
minitest-reporters
|
|
74
|
-
paysafe!
|
|
75
|
-
rake
|
|
76
|
-
simplecov
|
|
77
|
-
simplecov-cobertura
|
|
78
|
-
vcr
|
|
79
|
-
webmock
|
|
80
|
-
|
|
81
|
-
BUNDLED WITH
|
|
82
|
-
2.3.10
|
data/Rakefile
DELETED
data/bin/console
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "dotenv/load"
|
|
5
|
-
require "paysafe"
|
|
6
|
-
|
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
-
|
|
10
|
-
def client
|
|
11
|
-
Paysafe::REST::Client.new(
|
|
12
|
-
account_number: ENV['PAYSAFE_ACCOUNT_NUMBER'],
|
|
13
|
-
api_key: ENV['PAYSAFE_API_KEY'],
|
|
14
|
-
api_secret: ENV['PAYSAFE_API_SECRET']
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def sut_client
|
|
19
|
-
Paysafe::REST::Client.new(
|
|
20
|
-
api_key: ENV['PAYSAFE_SUT_API_KEY'],
|
|
21
|
-
api_secret: ENV['PAYSAFE_SUT_API_SECRET']
|
|
22
|
-
)
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def unity_client
|
|
26
|
-
Paysafe::REST::Client.new(
|
|
27
|
-
api_key: ENV['PAYSAFE_UNITY_API_KEY'],
|
|
28
|
-
api_secret: ENV['PAYSAFE_UNITY_API_SECRET']
|
|
29
|
-
)
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
33
|
-
# require "pry"
|
|
34
|
-
# Pry.start
|
|
35
|
-
|
|
36
|
-
require "irb"
|
|
37
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
IFS=$'\n\t'
|
|
4
|
-
|
|
5
|
-
bundle install
|
|
6
|
-
|
|
7
|
-
read -r -p 'Do you have an Paysafe Developer account? (y/n) ' has_account
|
|
8
|
-
|
|
9
|
-
if [[ "$has_account" =~ ^(Yes|yes|Y|y)$ ]]; then
|
|
10
|
-
echo "Great! You can get your account credentials from:"
|
|
11
|
-
echo " https://login.test.netbanx.com/office/public/preLogin.htm"
|
|
12
|
-
echo
|
|
13
|
-
else
|
|
14
|
-
echo "Then you'll need to create an account first."
|
|
15
|
-
echo "Click the 'Sign Up' button on the following page:"
|
|
16
|
-
echo " https://developer.paysafe.com/"
|
|
17
|
-
echo
|
|
18
|
-
read -s -p "Press Enter key if you're ready to continue..."
|
|
19
|
-
echo
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
echo "Enter your account credentials below."
|
|
23
|
-
read -p 'Account Number: ' account_number
|
|
24
|
-
read -p 'API Key: ' api_key
|
|
25
|
-
read -p 'API Secret: ' api_secret
|
|
26
|
-
read -p 'Single Use Token API Key: ' sut_api_key
|
|
27
|
-
read -p 'Single Use Token API Secret: ' sut_api_secret
|
|
28
|
-
read -p 'Unity API Key: ' unity_api_key
|
|
29
|
-
read -p 'Unity API Secret: ' unity_api_secret
|
|
30
|
-
|
|
31
|
-
cp .env.sample .env
|
|
32
|
-
|
|
33
|
-
sed -i '' -e "s/YOUR_ACCOUNT_NUMBER/$account_number/g" .env
|
|
34
|
-
sed -i '' -e "s/YOUR_API_KEY/$api_key/g" .env
|
|
35
|
-
sed -i '' -e "s/YOUR_API_SECRET/$api_secret/g" .env
|
|
36
|
-
sed -i '' -e "s/YOUR_SUT_API_KEY/$sut_api_key/g" .env
|
|
37
|
-
sed -i '' -e "s/YOUR_SUT_API_SECRET/$sut_api_secret/g" .env
|
|
38
|
-
sed -i '' -e "s/YOUR_UNITY_API_KEY/$unity_api_key/g" .env
|
|
39
|
-
sed -i '' -e "s/YOUR_UNITY_API_SECRET/$unity_api_secret/g" .env
|
|
40
|
-
|
|
41
|
-
echo "Done."
|
data/codecov.yml
DELETED
data/paysafe.gemspec
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require 'paysafe/version'
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = "paysafe"
|
|
8
|
-
spec.version = Paysafe::VERSION
|
|
9
|
-
spec.authors = ["Javier Julio"]
|
|
10
|
-
spec.email = ["javier@jackpocket.com"]
|
|
11
|
-
|
|
12
|
-
spec.summary = "A Ruby interface to the Paysafe REST API."
|
|
13
|
-
spec.description = "A Ruby interface to the Paysafe REST API."
|
|
14
|
-
spec.homepage = "https://github.com/jackpocket/paysafe"
|
|
15
|
-
spec.license = "MIT"
|
|
16
|
-
|
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
|
-
spec.bindir = "exe"
|
|
19
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
|
-
spec.require_paths = ["lib"]
|
|
21
|
-
|
|
22
|
-
spec.required_ruby_version = '>= 2.5'
|
|
23
|
-
|
|
24
|
-
spec.add_dependency "http", '>= 4', '< 6'
|
|
25
|
-
|
|
26
|
-
spec.add_development_dependency "rake"
|
|
27
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
|
28
|
-
spec.add_development_dependency "dotenv"
|
|
29
|
-
spec.add_development_dependency "minitest"
|
|
30
|
-
spec.add_development_dependency "minitest-reporters"
|
|
31
|
-
spec.add_development_dependency "minitest-mock_expectations"
|
|
32
|
-
spec.add_development_dependency "vcr"
|
|
33
|
-
spec.add_development_dependency "webmock"
|
|
34
|
-
end
|