workarea-payeezy 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile +9 -0
- data/README.md +64 -0
- data/Rakefile +116 -0
- data/app/models/workarea/payment/authorize/credit_card.decorator +20 -0
- data/app/models/workarea/payment/credit_card_data.rb +28 -0
- data/app/models/workarea/payment/purchase/credit_card.decorator +20 -0
- data/app/models/workarea/payment/store_credit_card.decorator +20 -0
- data/bin/rails +20 -0
- data/config/initializers/workarea.rb +1 -0
- data/lib/active_merchant/billing/bogus_payeezy_gateway.rb +70 -0
- data/lib/workarea/payeezy.rb +49 -0
- data/lib/workarea/payeezy/engine.rb +8 -0
- data/lib/workarea/payeezy/version.rb +5 -0
- data/script/admin_ci +9 -0
- data/script/ci +11 -0
- data/script/core_ci +9 -0
- data/script/plugins_ci +9 -0
- data/script/storefront_ci +9 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +30 -0
- data/test/dummy/bin/update +26 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +30 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +51 -0
- data/test/dummy/config/environments/production.rb +88 -0
- data/test/dummy/config/environments/test.rb +44 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/test/dummy/config/initializers/assets.rb +14 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/test/dummy/config/locales/en.yml +33 -0
- data/test/dummy/config/puma.rb +56 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +32 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +2 -0
- data/test/dummy/package.json +5 -0
- data/test/models/workarea/payment/payeezy_integration_test.rb +185 -0
- data/test/support/workarea/payeezy_gateway_vcr_config.rb +34 -0
- data/test/support/workarea/workarea_3_2_backports.rb +57 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +7 -0
- data/test/vcr_cassettes/payeezy/auth_capture.yml +193 -0
- data/test/vcr_cassettes/payeezy/auth_capture_refund.yml +251 -0
- data/test/vcr_cassettes/payeezy/auth_void.yml +193 -0
- data/test/vcr_cassettes/payeezy/purchase_refund.yml +193 -0
- data/test/vcr_cassettes/payeezy/purchase_void.yml +193 -0
- data/test/vcr_cassettes/payeezy/store_auth.yml +135 -0
- data/test/vcr_cassettes/payeezy/store_purchase.yml +135 -0
- data/workarea-payeezy.gemspec +18 -0
- metadata +143 -0
@@ -0,0 +1,193 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-cert.payeezy.com/v1/transactions/tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"transaction_type":"store","apikey":"78D9PJJDKnP52U1jwC4APpAsFdwxaphC","ta_token":"NOIW","type":"FDToken","credit_card":{"type":"Visa","cardholder_name":"Ben
|
9
|
+
Crouse","card_number":"4111111111111111","exp_date":"0119","cvv":999},"auth":"false"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
Apikey:
|
14
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
15
|
+
Token:
|
16
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
17
|
+
Nonce:
|
18
|
+
- '5617408498.807949'
|
19
|
+
Timestamp:
|
20
|
+
- '1523992752196'
|
21
|
+
Authorization:
|
22
|
+
- Mzc4MDVhYmM5MDdhMmIwMjcyMjJhNGY4NGU0ZDMyZjg2ZmE3NTZhYjg3ZGE4YjBhOTM0YTc1Y2Y3YTQwOGJjOQ==
|
23
|
+
Accept-Encoding:
|
24
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
25
|
+
Accept:
|
26
|
+
- "*/*"
|
27
|
+
User-Agent:
|
28
|
+
- Ruby
|
29
|
+
response:
|
30
|
+
status:
|
31
|
+
code: 201
|
32
|
+
message: Created
|
33
|
+
headers:
|
34
|
+
Content-Language:
|
35
|
+
- en-US
|
36
|
+
Content-Type:
|
37
|
+
- application/json;charset=UTF-8
|
38
|
+
Correlation-Id:
|
39
|
+
- '124.2399275255129'
|
40
|
+
Date:
|
41
|
+
- Tue, 17 Apr 2018 19:19:12 GMT
|
42
|
+
Optr-Cxt:
|
43
|
+
- 0100010000e363797e-5da4-46ac-acc4-4a5f2166a1eb00000000-0000-0000-0000-000000000000-1 HTTP ;
|
44
|
+
X-Archived-Client-Ip:
|
45
|
+
- 10.174.197.250
|
46
|
+
X-Backside-Transport:
|
47
|
+
- OK OK,OK OK
|
48
|
+
X-Client-Ip:
|
49
|
+
- 10.174.197.250,54.218.45.37
|
50
|
+
X-Global-Transaction-Id:
|
51
|
+
- '4074557825'
|
52
|
+
X-Powered-By:
|
53
|
+
- Servlet/3.0
|
54
|
+
Content-Length:
|
55
|
+
- '174'
|
56
|
+
Connection:
|
57
|
+
- keep-alive
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"correlation_id":"124.2399275255129","status":"success","type":"FDToken","token":{"type":"Visa","cardholder_name":"Ben
|
61
|
+
Crouse","exp_date":"0119","value":"9495846215171111"}}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 17 Apr 2018 19:19:12 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://api-cert.payeezy.com/v1/transactions
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: '{"transaction_type":"authorize","merchant_ref":null,"method":"token","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben
|
70
|
+
Crouse","value":"9495846215171111","exp_date":"0119"}},"billing_address":{"street":"22
|
71
|
+
s. 3rd st.","city":"Philadelphia","state_province":"PA","zip_postal_code":"19106","country":"US"},"currency_code":"USD","amount":"500"}'
|
72
|
+
headers:
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
Apikey:
|
76
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
77
|
+
Token:
|
78
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
79
|
+
Nonce:
|
80
|
+
- '1055102622.0060444'
|
81
|
+
Timestamp:
|
82
|
+
- '1523992752707'
|
83
|
+
Authorization:
|
84
|
+
- ODMwOGIzOGFkZDkzMmI0YjMxNTZiNDJmZTYwYjY3YjkxMTE0NzdkZTMxMzk3OTRjZmM4YjhkNGU2MzhjZmVjZQ==
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
User-Agent:
|
90
|
+
- Ruby
|
91
|
+
response:
|
92
|
+
status:
|
93
|
+
code: 201
|
94
|
+
message: Created
|
95
|
+
headers:
|
96
|
+
Access-Control-Allow-Headers:
|
97
|
+
- Content-Type, apikey, token
|
98
|
+
Access-Control-Allow-Methods:
|
99
|
+
- GET, PUT, POST, DELETE
|
100
|
+
Access-Control-Allow-Origin:
|
101
|
+
- http://localhost:8080
|
102
|
+
Access-Control-Max-Age:
|
103
|
+
- '3628800'
|
104
|
+
Access-Control-Request-Headers:
|
105
|
+
- origin, x-requested-with, accept, content-type
|
106
|
+
Content-Language:
|
107
|
+
- en-US
|
108
|
+
Content-Type:
|
109
|
+
- application/json;charset=UTF-8
|
110
|
+
Date:
|
111
|
+
- Tue, 17 Apr 2018 19:19:13 GMT
|
112
|
+
Optr-Cxt:
|
113
|
+
- 0100010000e6555156-266e-4e8d-9517-607a8a179e0d00000000-0000-0000-0000-000000000000-1 HTTP ;
|
114
|
+
X-Archived-Client-Ip:
|
115
|
+
- 10.174.197.250
|
116
|
+
X-Backside-Transport:
|
117
|
+
- OK OK,OK OK
|
118
|
+
X-Client-Ip:
|
119
|
+
- 10.174.197.250,54.201.0.49
|
120
|
+
X-Global-Transaction-Id:
|
121
|
+
- '4074534081'
|
122
|
+
X-Powered-By:
|
123
|
+
- Servlet/3.0
|
124
|
+
Content-Length:
|
125
|
+
- '511'
|
126
|
+
Connection:
|
127
|
+
- keep-alive
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: '{"correlation_id":"124.2399275305930","transaction_status":"approved","validation_status":"success","transaction_type":"authorize","transaction_id":"ET122424","transaction_tag":"2251924367","method":"token","amount":"500","currency":"USD","avs":"2","cvv2":"I","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben
|
131
|
+
Crouse","exp_date":"0119","value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction
|
132
|
+
Normal"}'
|
133
|
+
http_version:
|
134
|
+
recorded_at: Tue, 17 Apr 2018 19:19:13 GMT
|
135
|
+
- request:
|
136
|
+
method: post
|
137
|
+
uri: https://api-cert.payeezy.com/v1/transactions/ET122424
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: '{"transaction_type":"void","transaction_tag":"2251924367","method":"credit_card","currency_code":"USD","amount":"500"}'
|
141
|
+
headers:
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Apikey:
|
145
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
146
|
+
Token:
|
147
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
148
|
+
Nonce:
|
149
|
+
- '3890986473.7731915'
|
150
|
+
Timestamp:
|
151
|
+
- '1523992753674'
|
152
|
+
Authorization:
|
153
|
+
- MDFlOWNiNzVmNTVhZjJjYjNhYjAzMWNhMzI0YzU1MTRhZTk2MDU0ODU2YmRiMmM0NGRhNjVkYjQzMWFjZGJlMg==
|
154
|
+
Accept-Encoding:
|
155
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
156
|
+
Accept:
|
157
|
+
- "*/*"
|
158
|
+
User-Agent:
|
159
|
+
- Ruby
|
160
|
+
response:
|
161
|
+
status:
|
162
|
+
code: 201
|
163
|
+
message: Created
|
164
|
+
headers:
|
165
|
+
Content-Language:
|
166
|
+
- en-US
|
167
|
+
Content-Type:
|
168
|
+
- application/json;charset=UTF-8
|
169
|
+
Date:
|
170
|
+
- Tue, 17 Apr 2018 19:19:14 GMT
|
171
|
+
Optr-Cxt:
|
172
|
+
- 0100010000434b9502-e3f1-4cd4-8903-b356709df11600000000-0000-0000-0000-000000000000-1 HTTP ;
|
173
|
+
X-Archived-Client-Ip:
|
174
|
+
- 10.174.197.250
|
175
|
+
X-Backside-Transport:
|
176
|
+
- OK OK,OK OK
|
177
|
+
X-Client-Ip:
|
178
|
+
- 10.174.197.250,54.201.0.49
|
179
|
+
X-Global-Transaction-Id:
|
180
|
+
- '3932774943'
|
181
|
+
X-Powered-By:
|
182
|
+
- Servlet/3.0
|
183
|
+
Content-Length:
|
184
|
+
- '428'
|
185
|
+
Connection:
|
186
|
+
- keep-alive
|
187
|
+
body:
|
188
|
+
encoding: UTF-8
|
189
|
+
string: '{"correlation_id":"124.2399275405333","transaction_status":"approved","validation_status":"success","transaction_type":"void","transaction_id":"ET104926","transaction_tag":"2251924370","method":"credit_card","amount":"500","currency":"USD","token":{"token_type":"FDToken","token_data":{"value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction
|
190
|
+
Normal"}'
|
191
|
+
http_version:
|
192
|
+
recorded_at: Tue, 17 Apr 2018 19:19:14 GMT
|
193
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,193 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-cert.payeezy.com/v1/transactions/tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"transaction_type":"store","apikey":"78D9PJJDKnP52U1jwC4APpAsFdwxaphC","ta_token":"NOIW","type":"FDToken","credit_card":{"type":"Visa","cardholder_name":"Ben
|
9
|
+
Crouse","card_number":"4111111111111111","exp_date":"0119","cvv":999},"auth":"false"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
Apikey:
|
14
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
15
|
+
Token:
|
16
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
17
|
+
Nonce:
|
18
|
+
- '5116492557.85177'
|
19
|
+
Timestamp:
|
20
|
+
- '1523992761071'
|
21
|
+
Authorization:
|
22
|
+
- ZjkwZThkYTAxN2YyNzE5MjhhNTcwYzFmZTUwNjMwOGM5ZWMxNTBlZDBkYTVmMDIwNTU0ZTI0ZWQwZTE0ZDE0Zg==
|
23
|
+
Accept-Encoding:
|
24
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
25
|
+
Accept:
|
26
|
+
- "*/*"
|
27
|
+
User-Agent:
|
28
|
+
- Ruby
|
29
|
+
response:
|
30
|
+
status:
|
31
|
+
code: 201
|
32
|
+
message: Created
|
33
|
+
headers:
|
34
|
+
Content-Language:
|
35
|
+
- en-US
|
36
|
+
Content-Type:
|
37
|
+
- application/json;charset=UTF-8
|
38
|
+
Correlation-Id:
|
39
|
+
- '124.2399276143853'
|
40
|
+
Date:
|
41
|
+
- Tue, 17 Apr 2018 19:19:21 GMT
|
42
|
+
Optr-Cxt:
|
43
|
+
- 0100010000fdc67832-b05b-455f-8f6a-4a311d2ad7a600000000-0000-0000-0000-000000000000-1 HTTP ;
|
44
|
+
X-Archived-Client-Ip:
|
45
|
+
- 10.174.197.250
|
46
|
+
X-Backside-Transport:
|
47
|
+
- OK OK,OK OK
|
48
|
+
X-Client-Ip:
|
49
|
+
- 10.174.197.250,54.218.45.37
|
50
|
+
X-Global-Transaction-Id:
|
51
|
+
- '4145714007'
|
52
|
+
X-Powered-By:
|
53
|
+
- Servlet/3.0
|
54
|
+
Content-Length:
|
55
|
+
- '174'
|
56
|
+
Connection:
|
57
|
+
- keep-alive
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"correlation_id":"124.2399276143853","status":"success","type":"FDToken","token":{"type":"Visa","cardholder_name":"Ben
|
61
|
+
Crouse","exp_date":"0119","value":"9495846215171111"}}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 17 Apr 2018 19:19:21 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://api-cert.payeezy.com/v1/transactions
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: '{"transaction_type":"recurring","merchant_ref":null,"method":"token","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben
|
70
|
+
Crouse","value":"9495846215171111","exp_date":"0119"}},"billing_address":{"street":"22
|
71
|
+
s. 3rd st.","city":"Philadelphia","state_province":"PA","zip_postal_code":"19106","country":"US"},"currency_code":"USD","amount":"500"}'
|
72
|
+
headers:
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
Apikey:
|
76
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
77
|
+
Token:
|
78
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
79
|
+
Nonce:
|
80
|
+
- '3002973969.2151604'
|
81
|
+
Timestamp:
|
82
|
+
- '1523992761608'
|
83
|
+
Authorization:
|
84
|
+
- MTJlNDkzYzFmMGZhNmMyZDZjMzEyOWUzMzY4MWFlYmJmYzhkYmI5ZGY0YzE0YjkxMzE1M2ViZjZkZGNiY2MyOA==
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
User-Agent:
|
90
|
+
- Ruby
|
91
|
+
response:
|
92
|
+
status:
|
93
|
+
code: 201
|
94
|
+
message: Created
|
95
|
+
headers:
|
96
|
+
Access-Control-Allow-Headers:
|
97
|
+
- Content-Type, apikey, token
|
98
|
+
Access-Control-Allow-Methods:
|
99
|
+
- GET, PUT, POST, DELETE
|
100
|
+
Access-Control-Allow-Origin:
|
101
|
+
- http://localhost:8080
|
102
|
+
Access-Control-Max-Age:
|
103
|
+
- '3628800'
|
104
|
+
Access-Control-Request-Headers:
|
105
|
+
- origin, x-requested-with, accept, content-type
|
106
|
+
Content-Language:
|
107
|
+
- en-US
|
108
|
+
Content-Type:
|
109
|
+
- application/json;charset=UTF-8
|
110
|
+
Date:
|
111
|
+
- Tue, 17 Apr 2018 19:19:22 GMT
|
112
|
+
Optr-Cxt:
|
113
|
+
- 01000100007f93d037-61de-4fc7-9b47-9fcda20be26200000000-0000-0000-0000-000000000000-1 HTTP ;
|
114
|
+
X-Archived-Client-Ip:
|
115
|
+
- 10.174.197.250
|
116
|
+
X-Backside-Transport:
|
117
|
+
- OK OK,OK OK
|
118
|
+
X-Client-Ip:
|
119
|
+
- 10.174.197.250,54.218.45.37
|
120
|
+
X-Global-Transaction-Id:
|
121
|
+
- '3932791391'
|
122
|
+
X-Powered-By:
|
123
|
+
- Servlet/3.0
|
124
|
+
Content-Length:
|
125
|
+
- '511'
|
126
|
+
Connection:
|
127
|
+
- keep-alive
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: '{"correlation_id":"124.2399276196154","transaction_status":"approved","validation_status":"success","transaction_type":"recurring","transaction_id":"ET136583","transaction_tag":"2251924388","method":"token","amount":"500","currency":"USD","avs":"2","cvv2":"I","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben
|
131
|
+
Crouse","exp_date":"0119","value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction
|
132
|
+
Normal"}'
|
133
|
+
http_version:
|
134
|
+
recorded_at: Tue, 17 Apr 2018 19:19:22 GMT
|
135
|
+
- request:
|
136
|
+
method: post
|
137
|
+
uri: https://api-cert.payeezy.com/v1/transactions/ET136583
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: '{"transaction_type":"refund","transaction_tag":"2251924388","method":"credit_card","currency_code":"USD","amount":"500"}'
|
141
|
+
headers:
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Apikey:
|
145
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
146
|
+
Token:
|
147
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
148
|
+
Nonce:
|
149
|
+
- '5346872824.359478'
|
150
|
+
Timestamp:
|
151
|
+
- '1523992762627'
|
152
|
+
Authorization:
|
153
|
+
- YTRkODQ5NTk0NjE5MDkxZTEwMWVmMThmZDdmN2ZlODkxYjI1Y2Q1NGUzOGRlOTdjNjc4MjViY2U3YTc2NjE5Nw==
|
154
|
+
Accept-Encoding:
|
155
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
156
|
+
Accept:
|
157
|
+
- "*/*"
|
158
|
+
User-Agent:
|
159
|
+
- Ruby
|
160
|
+
response:
|
161
|
+
status:
|
162
|
+
code: 201
|
163
|
+
message: Created
|
164
|
+
headers:
|
165
|
+
Content-Language:
|
166
|
+
- en-US
|
167
|
+
Content-Type:
|
168
|
+
- application/json;charset=UTF-8
|
169
|
+
Date:
|
170
|
+
- Tue, 17 Apr 2018 19:19:23 GMT
|
171
|
+
Optr-Cxt:
|
172
|
+
- 0100010000ea2fd219-fe50-407a-a069-cf5616e97ba400000000-0000-0000-0000-000000000000-1 HTTP ;
|
173
|
+
X-Archived-Client-Ip:
|
174
|
+
- 10.174.197.250
|
175
|
+
X-Backside-Transport:
|
176
|
+
- OK OK,OK OK
|
177
|
+
X-Client-Ip:
|
178
|
+
- 10.174.197.250,54.201.0.49
|
179
|
+
X-Global-Transaction-Id:
|
180
|
+
- '4145715111'
|
181
|
+
X-Powered-By:
|
182
|
+
- Servlet/3.0
|
183
|
+
Content-Length:
|
184
|
+
- '428'
|
185
|
+
Connection:
|
186
|
+
- keep-alive
|
187
|
+
body:
|
188
|
+
encoding: UTF-8
|
189
|
+
string: '{"correlation_id":"124.2399276298457","transaction_status":"approved","validation_status":"success","transaction_type":"refund","transaction_id":"RETURN","transaction_tag":"2251924391","method":"credit_card","amount":"500","currency":"USD","token":{"token_type":"FDToken","token_data":{"value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction
|
190
|
+
Normal"}'
|
191
|
+
http_version:
|
192
|
+
recorded_at: Tue, 17 Apr 2018 19:19:23 GMT
|
193
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,193 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-cert.payeezy.com/v1/transactions/tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"transaction_type":"store","apikey":"78D9PJJDKnP52U1jwC4APpAsFdwxaphC","ta_token":"NOIW","type":"FDToken","credit_card":{"type":"Visa","cardholder_name":"Ben
|
9
|
+
Crouse","card_number":"4111111111111111","exp_date":"0119","cvv":999},"auth":"false"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
Apikey:
|
14
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
15
|
+
Token:
|
16
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
17
|
+
Nonce:
|
18
|
+
- '9816469741.742092'
|
19
|
+
Timestamp:
|
20
|
+
- '1523992755099'
|
21
|
+
Authorization:
|
22
|
+
- MTdmMGNlYWEwNmMyMjMzYjliYzNmZGRkYzAwYTcwM2EwYzZkOWEyZDAyMjk4OWUyNWExZjZhZTQ5MjE3MmVjZg==
|
23
|
+
Accept-Encoding:
|
24
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
25
|
+
Accept:
|
26
|
+
- "*/*"
|
27
|
+
User-Agent:
|
28
|
+
- Ruby
|
29
|
+
response:
|
30
|
+
status:
|
31
|
+
code: 201
|
32
|
+
message: Created
|
33
|
+
headers:
|
34
|
+
Content-Language:
|
35
|
+
- en-US
|
36
|
+
Content-Type:
|
37
|
+
- application/json;charset=UTF-8
|
38
|
+
Correlation-Id:
|
39
|
+
- '124.2399275545136'
|
40
|
+
Date:
|
41
|
+
- Tue, 17 Apr 2018 19:19:15 GMT
|
42
|
+
Optr-Cxt:
|
43
|
+
- '0100010000287c4d94-6d65-44b3-9f88-734328dfc5e000000000-0000-0000-0000-000000000000-1 HTTP ;'
|
44
|
+
X-Archived-Client-Ip:
|
45
|
+
- 10.174.197.250
|
46
|
+
X-Backside-Transport:
|
47
|
+
- OK OK,OK OK
|
48
|
+
X-Client-Ip:
|
49
|
+
- 10.174.197.250,54.218.45.37
|
50
|
+
X-Global-Transaction-Id:
|
51
|
+
- '4074557713'
|
52
|
+
X-Powered-By:
|
53
|
+
- Servlet/3.0
|
54
|
+
Content-Length:
|
55
|
+
- '174'
|
56
|
+
Connection:
|
57
|
+
- keep-alive
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"correlation_id":"124.2399275545136","status":"success","type":"FDToken","token":{"type":"Visa","cardholder_name":"Ben
|
61
|
+
Crouse","exp_date":"0119","value":"9495846215171111"}}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 17 Apr 2018 19:19:15 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://api-cert.payeezy.com/v1/transactions
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: '{"transaction_type":"recurring","merchant_ref":null,"method":"token","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben
|
70
|
+
Crouse","value":"9495846215171111","exp_date":"0119"}},"billing_address":{"street":"22
|
71
|
+
s. 3rd st.","city":"Philadelphia","state_province":"PA","zip_postal_code":"19106","country":"US"},"currency_code":"USD","amount":"500"}'
|
72
|
+
headers:
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
Apikey:
|
76
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
77
|
+
Token:
|
78
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
79
|
+
Nonce:
|
80
|
+
- '161659.04213938376'
|
81
|
+
Timestamp:
|
82
|
+
- '1523992755621'
|
83
|
+
Authorization:
|
84
|
+
- NmU2NTAwZDAzNzg3N2IyODFhOTMyZTgyNmJjNzQ4MGZmNThhNWFkNDkzNzNmZDE3MGE1MzNlNjEyMDU4MDQ5ZQ==
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
User-Agent:
|
90
|
+
- Ruby
|
91
|
+
response:
|
92
|
+
status:
|
93
|
+
code: 201
|
94
|
+
message: Created
|
95
|
+
headers:
|
96
|
+
Access-Control-Allow-Headers:
|
97
|
+
- Content-Type, apikey, token
|
98
|
+
Access-Control-Allow-Methods:
|
99
|
+
- GET, PUT, POST, DELETE
|
100
|
+
Access-Control-Allow-Origin:
|
101
|
+
- http://localhost:8080
|
102
|
+
Access-Control-Max-Age:
|
103
|
+
- '3628800'
|
104
|
+
Access-Control-Request-Headers:
|
105
|
+
- origin, x-requested-with, accept, content-type
|
106
|
+
Content-Language:
|
107
|
+
- en-US
|
108
|
+
Content-Type:
|
109
|
+
- application/json;charset=UTF-8
|
110
|
+
Date:
|
111
|
+
- Tue, 17 Apr 2018 19:19:16 GMT
|
112
|
+
Optr-Cxt:
|
113
|
+
- 01000100002bdcb132-9567-43ff-a068-d158f8bd2f6b00000000-0000-0000-0000-000000000000-1 HTTP ;
|
114
|
+
X-Archived-Client-Ip:
|
115
|
+
- 10.174.197.250
|
116
|
+
X-Backside-Transport:
|
117
|
+
- OK OK,OK OK
|
118
|
+
X-Client-Ip:
|
119
|
+
- 10.174.197.250,54.218.45.37
|
120
|
+
X-Global-Transaction-Id:
|
121
|
+
- '3932779359'
|
122
|
+
X-Powered-By:
|
123
|
+
- Servlet/3.0
|
124
|
+
Content-Length:
|
125
|
+
- '511'
|
126
|
+
Connection:
|
127
|
+
- keep-alive
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: '{"correlation_id":"124.2399275597537","transaction_status":"approved","validation_status":"success","transaction_type":"recurring","transaction_id":"ET148077","transaction_tag":"2251924373","method":"token","amount":"500","currency":"USD","avs":"2","cvv2":"I","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben
|
131
|
+
Crouse","exp_date":"0119","value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction
|
132
|
+
Normal"}'
|
133
|
+
http_version:
|
134
|
+
recorded_at: Tue, 17 Apr 2018 19:19:16 GMT
|
135
|
+
- request:
|
136
|
+
method: post
|
137
|
+
uri: https://api-cert.payeezy.com/v1/transactions/ET148077
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: '{"transaction_type":"void","transaction_tag":"2251924373","method":"credit_card","currency_code":"USD","amount":"500"}'
|
141
|
+
headers:
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Apikey:
|
145
|
+
- 78D9PJJDKnP52U1jwC4APpAsFdwxaphC
|
146
|
+
Token:
|
147
|
+
- fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658
|
148
|
+
Nonce:
|
149
|
+
- '2459900470.345461'
|
150
|
+
Timestamp:
|
151
|
+
- '1523992756784'
|
152
|
+
Authorization:
|
153
|
+
- Yzc2ZTczYzhhODNlNjM0NjExOWEzYjdmYzkwMGU5YWYwOGY5YjkxNmI5ZGMwNTc4Zjk4OTA5MzgzYTNlZmJmMg==
|
154
|
+
Accept-Encoding:
|
155
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
156
|
+
Accept:
|
157
|
+
- "*/*"
|
158
|
+
User-Agent:
|
159
|
+
- Ruby
|
160
|
+
response:
|
161
|
+
status:
|
162
|
+
code: 201
|
163
|
+
message: Created
|
164
|
+
headers:
|
165
|
+
Content-Language:
|
166
|
+
- en-US
|
167
|
+
Content-Type:
|
168
|
+
- application/json;charset=UTF-8
|
169
|
+
Date:
|
170
|
+
- Tue, 17 Apr 2018 19:19:17 GMT
|
171
|
+
Optr-Cxt:
|
172
|
+
- 01000100001670b09d-4d2f-49ca-9c9d-de7bdd46adcf00000000-0000-0000-0000-000000000000-1 HTTP ;
|
173
|
+
X-Archived-Client-Ip:
|
174
|
+
- 10.174.197.250
|
175
|
+
X-Backside-Transport:
|
176
|
+
- OK OK,OK OK
|
177
|
+
X-Client-Ip:
|
178
|
+
- 10.174.197.250,54.201.0.49
|
179
|
+
X-Global-Transaction-Id:
|
180
|
+
- '4074558513'
|
181
|
+
X-Powered-By:
|
182
|
+
- Servlet/3.0
|
183
|
+
Content-Length:
|
184
|
+
- '428'
|
185
|
+
Connection:
|
186
|
+
- keep-alive
|
187
|
+
body:
|
188
|
+
encoding: UTF-8
|
189
|
+
string: '{"correlation_id":"124.2399275725042","transaction_status":"approved","validation_status":"success","transaction_type":"void","transaction_id":"ET120653","transaction_tag":"2251924376","method":"credit_card","amount":"500","currency":"USD","token":{"token_type":"FDToken","token_data":{"value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction
|
190
|
+
Normal"}'
|
191
|
+
http_version:
|
192
|
+
recorded_at: Tue, 17 Apr 2018 19:19:17 GMT
|
193
|
+
recorded_with: VCR 2.9.3
|