workarea-checkoutdotcom 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.eslintrc +24 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/ci.yml +54 -0
- data/.gitignore +23 -0
- data/.rubocop.yml +3 -0
- data/.stylelintrc.json +8 -0
- data/CHANGELOG.md +59 -0
- data/Gemfile +6 -0
- data/README.md +74 -0
- data/Rakefile +60 -0
- data/app/lib/active_merchant/billing/gateways/checkout_v2.decorator +22 -0
- data/app/models/workarea/payment/authorize/credit_card.decorator +41 -0
- data/app/models/workarea/payment/purchase/credit_card.decorator +44 -0
- data/app/models/workarea/payment/store_credit_card.decorator +17 -0
- data/bin/rails +20 -0
- data/config/initializers/workarea.rb +1 -0
- data/lib/active_merchant/billing/bogus_checkout_v2_gateway.rb +42 -0
- data/lib/workarea/checkoutdotcom.rb +46 -0
- data/lib/workarea/checkoutdotcom/engine.rb +8 -0
- data/lib/workarea/checkoutdotcom/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/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/log/.keep +0 -0
- data/test/models/workarea/payment/authorize/credit_card_test.decorator +38 -0
- data/test/models/workarea/payment/capture_test.decorator +27 -0
- data/test/models/workarea/payment/checkoutdotcom_integration_test.rb +178 -0
- data/test/models/workarea/payment/credit_card_integration_test.decorator +107 -0
- data/test/models/workarea/payment/purchase/credit_card_test.decorator +38 -0
- data/test/models/workarea/payment/refund_test.decorator +27 -0
- data/test/support/workarea/checkoutdotcom_gateway_vcr_config.rb +20 -0
- data/test/support/workarea/workarea_3_2_backports.rb +57 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +10 -0
- data/test/vcr_cassettes/checkoutdotcom/auth_capture.yml +154 -0
- data/test/vcr_cassettes/checkoutdotcom/auth_capture_refund.yml +225 -0
- data/test/vcr_cassettes/checkoutdotcom/auth_void.yml +154 -0
- data/test/vcr_cassettes/checkoutdotcom/purchase_refund.yml +225 -0
- data/test/vcr_cassettes/checkoutdotcom/store_auth.yml +83 -0
- data/test/vcr_cassettes/checkoutdotcom/store_purchase.yml +154 -0
- data/test/vcr_cassettes/credit_card/auth_capture.yml +154 -0
- data/test/vcr_cassettes/credit_card/auth_capture_refund.yml +225 -0
- data/test/vcr_cassettes/credit_card/auth_void.yml +154 -0
- data/test/vcr_cassettes/credit_card/purchase_refund.yml +225 -0
- data/test/vcr_cassettes/credit_card/store_auth.yml +83 -0
- data/test/vcr_cassettes/credit_card/store_purchase.yml +154 -0
- data/test/workers/workarea/send_refund_email_test.decorator +27 -0
- data/workarea-checkoutdotcom.gemspec +19 -0
- metadata +144 -0
@@ -0,0 +1,154 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.checkout.com/payments
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"capture":false,"amount":"500","reference":"01655CBB31","currency":"USD","metadata":{"udf5":"ActiveMerchant"},"source":{"type":"card","name":"Ben
|
9
|
+
Crouse","number":"4242424242424242","cvv":100,"expiry_year":"2020","expiry_month":"01","billing_address":{"address_line1":"22
|
10
|
+
s. 3rd st.","city":"Philadelphia","state":"PA","country":"US","zip":"19106"}},"customer":{"email":"user@workarea.com"}}'
|
11
|
+
headers:
|
12
|
+
Content-Type:
|
13
|
+
- application/json;charset=UTF-8
|
14
|
+
Authorization:
|
15
|
+
- sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Length:
|
32
|
+
- '1538'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Expires:
|
40
|
+
- "-1"
|
41
|
+
Location:
|
42
|
+
- https://api.sandbox.checkout.com/payments/pay_iafledv5gz7ezleugdlzlk7uvm
|
43
|
+
Product:
|
44
|
+
- Gateway
|
45
|
+
Cko-Version:
|
46
|
+
- 3.32.9
|
47
|
+
Cko-Request-Id:
|
48
|
+
- 10fbca33-5cba-42fb-99f4-df97c93b8626
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Headers:
|
52
|
+
- Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
|
53
|
+
Access-Control-Allow-Methods:
|
54
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
55
|
+
Access-Control-Request-Method:
|
56
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
57
|
+
Access-Control-Request-Headers:
|
58
|
+
- authorization
|
59
|
+
Accept-Ranges:
|
60
|
+
- bytes
|
61
|
+
Date:
|
62
|
+
- Tue, 19 Nov 2019 20:07:56 GMT
|
63
|
+
Via:
|
64
|
+
- 1.1 varnish
|
65
|
+
X-Served-By:
|
66
|
+
- cache-lga21924-LGA
|
67
|
+
X-Cache:
|
68
|
+
- MISS
|
69
|
+
X-Cache-Hits:
|
70
|
+
- '0'
|
71
|
+
X-Timer:
|
72
|
+
- S1574194076.430199,VS0,VE403
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: '{"id":"pay_iafledv5gz7ezleugdlzlk7uvm","action_id":"act_iafledv5gz7ezleugdlzlk7uvm","amount":500,"currency":"USD","approved":true,"status":"Authorized","auth_code":"723458","eci":"05","scheme_id":"060762178033533","response_code":"10000","response_summary":"Approved","risk":{"flagged":false},"source":{"id":"src_toxd2yvjsdlelieckfowkotabq","type":"card","billing_address":{"address_line1":"22
|
76
|
+
s. 3rd st.","city":"Philadelphia","state":"PA","zip":"19106","country":"US"},"expiry_month":1,"expiry_year":2020,"name":"Ben
|
77
|
+
Crouse","scheme":"Visa","last4":"4242","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","bin":"424242","card_type":"Credit","card_category":"Consumer","issuer":"JPMORGAN
|
78
|
+
CHASE BANK NA","issuer_country":"US","product_id":"A","product_type":"Visa
|
79
|
+
Traditional","avs_check":"S","cvv_check":"Y","payouts":true,"fast_funds":"d"},"customer":{"id":"cus_xwtxqa3y66euhnkwgpcwe7ijce","email":"user@workarea.com","name":"Ben
|
80
|
+
Crouse"},"processed_on":"2019-11-19T20:07:56Z","reference":"01655CBB31","processing":{"acquirer_transaction_id":"6711907989","retrieval_reference_number":"742612877090"},"_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_iafledv5gz7ezleugdlzlk7uvm"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_iafledv5gz7ezleugdlzlk7uvm/actions"},"capture":{"href":"https://api.sandbox.checkout.com/payments/pay_iafledv5gz7ezleugdlzlk7uvm/captures"},"void":{"href":"https://api.sandbox.checkout.com/payments/pay_iafledv5gz7ezleugdlzlk7uvm/voids"}}}'
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 19 Nov 2019 20:07:56 GMT
|
83
|
+
- request:
|
84
|
+
method: post
|
85
|
+
uri: https://api.sandbox.checkout.com/payments/pay_iafledv5gz7ezleugdlzlk7uvm/voids
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: "{}"
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json;charset=UTF-8
|
92
|
+
Authorization:
|
93
|
+
- sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
|
94
|
+
Connection:
|
95
|
+
- close
|
96
|
+
Accept-Encoding:
|
97
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
|
+
Accept:
|
99
|
+
- "*/*"
|
100
|
+
User-Agent:
|
101
|
+
- Ruby
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 202
|
105
|
+
message: Accepted
|
106
|
+
headers:
|
107
|
+
Connection:
|
108
|
+
- close
|
109
|
+
Content-Length:
|
110
|
+
- '176'
|
111
|
+
Cache-Control:
|
112
|
+
- no-cache
|
113
|
+
Pragma:
|
114
|
+
- no-cache
|
115
|
+
Content-Type:
|
116
|
+
- application/json; charset=utf-8
|
117
|
+
Expires:
|
118
|
+
- "-1"
|
119
|
+
Product:
|
120
|
+
- Gateway
|
121
|
+
Cko-Version:
|
122
|
+
- 3.32.9
|
123
|
+
Cko-Request-Id:
|
124
|
+
- 7b3cb4aa-5d36-4bdd-9cba-f55adf2a013b
|
125
|
+
Access-Control-Allow-Origin:
|
126
|
+
- "*"
|
127
|
+
Access-Control-Allow-Headers:
|
128
|
+
- Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
|
129
|
+
Access-Control-Allow-Methods:
|
130
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
131
|
+
Access-Control-Request-Method:
|
132
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
133
|
+
Access-Control-Request-Headers:
|
134
|
+
- authorization
|
135
|
+
Accept-Ranges:
|
136
|
+
- bytes
|
137
|
+
Date:
|
138
|
+
- Tue, 19 Nov 2019 20:07:57 GMT
|
139
|
+
Via:
|
140
|
+
- 1.1 varnish
|
141
|
+
X-Served-By:
|
142
|
+
- cache-lga21928-LGA
|
143
|
+
X-Cache:
|
144
|
+
- MISS
|
145
|
+
X-Cache-Hits:
|
146
|
+
- '0'
|
147
|
+
X-Timer:
|
148
|
+
- S1574194077.094193,VS0,VE399
|
149
|
+
body:
|
150
|
+
encoding: UTF-8
|
151
|
+
string: '{"action_id":"act_3z4nlrpnjgeuxbddi5zhasr6eu","reference":"01655CBB31","_links":{"payment":{"href":"https://api.sandbox.checkout.com/payments/pay_iafledv5gz7ezleugdlzlk7uvm"}}}'
|
152
|
+
http_version:
|
153
|
+
recorded_at: Tue, 19 Nov 2019 20:07:57 GMT
|
154
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,225 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.checkout.com/payments
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"capture":false,"amount":"500","reference":null,"currency":"USD","metadata":{"udf5":"ActiveMerchant"},"source":{"type":"card","name":"Ben
|
9
|
+
Crouse","number":"4242424242424242","cvv":100,"expiry_year":"2020","expiry_month":"01","billing_address":{"address_line1":"22
|
10
|
+
s. 3rd st.","city":"Philadelphia","state":"PA","country":"US","zip":"19106"}},"customer":{"email":null}}'
|
11
|
+
headers:
|
12
|
+
Content-Type:
|
13
|
+
- application/json;charset=UTF-8
|
14
|
+
Authorization:
|
15
|
+
- sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Length:
|
32
|
+
- '1485'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Expires:
|
40
|
+
- "-1"
|
41
|
+
Location:
|
42
|
+
- https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy
|
43
|
+
Product:
|
44
|
+
- Gateway
|
45
|
+
Cko-Version:
|
46
|
+
- 3.32.9
|
47
|
+
Cko-Request-Id:
|
48
|
+
- 1c088353-acf3-43e8-9daf-c224bdc73962
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Headers:
|
52
|
+
- Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
|
53
|
+
Access-Control-Allow-Methods:
|
54
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
55
|
+
Access-Control-Request-Method:
|
56
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
57
|
+
Access-Control-Request-Headers:
|
58
|
+
- authorization
|
59
|
+
Accept-Ranges:
|
60
|
+
- bytes
|
61
|
+
Date:
|
62
|
+
- Tue, 19 Nov 2019 20:07:53 GMT
|
63
|
+
Via:
|
64
|
+
- 1.1 varnish
|
65
|
+
X-Served-By:
|
66
|
+
- cache-lga21939-LGA
|
67
|
+
X-Cache:
|
68
|
+
- MISS
|
69
|
+
X-Cache-Hits:
|
70
|
+
- '0'
|
71
|
+
X-Timer:
|
72
|
+
- S1574194073.834489,VS0,VE415
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: '{"id":"pay_4mtswut7xmxullkwf2fandw5jy","action_id":"act_4mtswut7xmxullkwf2fandw5jy","amount":500,"currency":"USD","approved":true,"status":"Authorized","auth_code":"488638","eci":"05","scheme_id":"043819598651571","response_code":"10000","response_summary":"Approved","risk":{"flagged":false},"source":{"id":"src_rwbfsqk744pujpcqyrc77aalzy","type":"card","billing_address":{"address_line1":"22
|
76
|
+
s. 3rd st.","city":"Philadelphia","state":"PA","zip":"19106","country":"US"},"expiry_month":1,"expiry_year":2020,"name":"Ben
|
77
|
+
Crouse","scheme":"Visa","last4":"4242","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","bin":"424242","card_type":"Credit","card_category":"Consumer","issuer":"JPMORGAN
|
78
|
+
CHASE BANK NA","issuer_country":"US","product_id":"A","product_type":"Visa
|
79
|
+
Traditional","avs_check":"S","cvv_check":"Y","payouts":true,"fast_funds":"d"},"customer":{"id":"cus_j7brvs5yjc5urat47njykwe33a","name":"Ben
|
80
|
+
Crouse"},"processed_on":"2019-11-19T20:07:53Z","processing":{"acquirer_transaction_id":"9155105867","retrieval_reference_number":"657688202046"},"_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy/actions"},"capture":{"href":"https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy/captures"},"void":{"href":"https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy/voids"}}}'
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 19 Nov 2019 20:07:53 GMT
|
83
|
+
- request:
|
84
|
+
method: post
|
85
|
+
uri: https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy/captures
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: '{"amount":"500","reference":null,"currency":"USD","metadata":{"udf5":"ActiveMerchant"},"customer":{"email":null}}'
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json;charset=UTF-8
|
92
|
+
Authorization:
|
93
|
+
- sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
|
94
|
+
Connection:
|
95
|
+
- close
|
96
|
+
Accept-Encoding:
|
97
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
|
+
Accept:
|
99
|
+
- "*/*"
|
100
|
+
User-Agent:
|
101
|
+
- Ruby
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 202
|
105
|
+
message: Accepted
|
106
|
+
headers:
|
107
|
+
Connection:
|
108
|
+
- close
|
109
|
+
Content-Length:
|
110
|
+
- '151'
|
111
|
+
Cache-Control:
|
112
|
+
- no-cache
|
113
|
+
Pragma:
|
114
|
+
- no-cache
|
115
|
+
Content-Type:
|
116
|
+
- application/json; charset=utf-8
|
117
|
+
Expires:
|
118
|
+
- "-1"
|
119
|
+
Product:
|
120
|
+
- Gateway
|
121
|
+
Cko-Version:
|
122
|
+
- 3.32.9
|
123
|
+
Cko-Request-Id:
|
124
|
+
- 80688335-f15e-409d-837b-bb9f43fde5a4
|
125
|
+
Access-Control-Allow-Origin:
|
126
|
+
- "*"
|
127
|
+
Access-Control-Allow-Headers:
|
128
|
+
- Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
|
129
|
+
Access-Control-Allow-Methods:
|
130
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
131
|
+
Access-Control-Request-Method:
|
132
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
133
|
+
Access-Control-Request-Headers:
|
134
|
+
- authorization
|
135
|
+
Accept-Ranges:
|
136
|
+
- bytes
|
137
|
+
Date:
|
138
|
+
- Tue, 19 Nov 2019 20:07:53 GMT
|
139
|
+
Via:
|
140
|
+
- 1.1 varnish
|
141
|
+
X-Served-By:
|
142
|
+
- cache-lga21921-LGA
|
143
|
+
X-Cache:
|
144
|
+
- MISS
|
145
|
+
X-Cache-Hits:
|
146
|
+
- '0'
|
147
|
+
X-Timer:
|
148
|
+
- S1574194073.356524,VS0,VE401
|
149
|
+
body:
|
150
|
+
encoding: UTF-8
|
151
|
+
string: '{"action_id":"act_cjlwlqhejyru3f2afy4hlhmjgy","_links":{"payment":{"href":"https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy"}}}'
|
152
|
+
http_version:
|
153
|
+
recorded_at: Tue, 19 Nov 2019 20:07:53 GMT
|
154
|
+
- request:
|
155
|
+
method: post
|
156
|
+
uri: https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy/refunds
|
157
|
+
body:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: '{"amount":"500","reference":null,"currency":"USD","metadata":{"udf5":"ActiveMerchant"},"customer":{"email":null}}'
|
160
|
+
headers:
|
161
|
+
Content-Type:
|
162
|
+
- application/json;charset=UTF-8
|
163
|
+
Authorization:
|
164
|
+
- sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
|
165
|
+
Connection:
|
166
|
+
- close
|
167
|
+
Accept-Encoding:
|
168
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
169
|
+
Accept:
|
170
|
+
- "*/*"
|
171
|
+
User-Agent:
|
172
|
+
- Ruby
|
173
|
+
response:
|
174
|
+
status:
|
175
|
+
code: 202
|
176
|
+
message: Accepted
|
177
|
+
headers:
|
178
|
+
Connection:
|
179
|
+
- close
|
180
|
+
Content-Length:
|
181
|
+
- '151'
|
182
|
+
Cache-Control:
|
183
|
+
- no-cache
|
184
|
+
Pragma:
|
185
|
+
- no-cache
|
186
|
+
Content-Type:
|
187
|
+
- application/json; charset=utf-8
|
188
|
+
Expires:
|
189
|
+
- "-1"
|
190
|
+
Product:
|
191
|
+
- Gateway
|
192
|
+
Cko-Version:
|
193
|
+
- 3.32.9
|
194
|
+
Cko-Request-Id:
|
195
|
+
- 9d919f47-daed-4f3a-9a7c-9b1dd3b237db
|
196
|
+
Access-Control-Allow-Origin:
|
197
|
+
- "*"
|
198
|
+
Access-Control-Allow-Headers:
|
199
|
+
- Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
|
200
|
+
Access-Control-Allow-Methods:
|
201
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
202
|
+
Access-Control-Request-Method:
|
203
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
204
|
+
Access-Control-Request-Headers:
|
205
|
+
- authorization
|
206
|
+
Accept-Ranges:
|
207
|
+
- bytes
|
208
|
+
Date:
|
209
|
+
- Tue, 19 Nov 2019 20:07:54 GMT
|
210
|
+
Via:
|
211
|
+
- 1.1 varnish
|
212
|
+
X-Served-By:
|
213
|
+
- cache-lga21936-LGA
|
214
|
+
X-Cache:
|
215
|
+
- MISS
|
216
|
+
X-Cache-Hits:
|
217
|
+
- '0'
|
218
|
+
X-Timer:
|
219
|
+
- S1574194074.064393,VS0,VE426
|
220
|
+
body:
|
221
|
+
encoding: UTF-8
|
222
|
+
string: '{"action_id":"act_yoflzjpmm2de5ks4z4rz653v2q","_links":{"payment":{"href":"https://api.sandbox.checkout.com/payments/pay_4mtswut7xmxullkwf2fandw5jy"}}}'
|
223
|
+
http_version:
|
224
|
+
recorded_at: Tue, 19 Nov 2019 20:07:54 GMT
|
225
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.checkout.com/payments
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"capture":false,"amount":"500","reference":"7CAC20CE85","currency":"USD","metadata":{"udf5":"ActiveMerchant"},"source":{"type":"card","name":"Ben
|
9
|
+
Crouse","number":"4242424242424242","cvv":100,"expiry_year":"2020","expiry_month":"01","billing_address":{"address_line1":"22
|
10
|
+
s. 3rd st.","city":"Philadelphia","state":"PA","country":"US","zip":"19106"}},"customer":{"email":"user@workarea.com"}}'
|
11
|
+
headers:
|
12
|
+
Content-Type:
|
13
|
+
- application/json;charset=UTF-8
|
14
|
+
Authorization:
|
15
|
+
- sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Length:
|
32
|
+
- '1538'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Expires:
|
40
|
+
- "-1"
|
41
|
+
Location:
|
42
|
+
- https://api.sandbox.checkout.com/payments/pay_zbt4jjlnwn3uvb45bhcw6probm
|
43
|
+
Product:
|
44
|
+
- Gateway
|
45
|
+
Cko-Version:
|
46
|
+
- 3.32.9
|
47
|
+
Cko-Request-Id:
|
48
|
+
- 9e767175-532a-4590-827d-ccd12e6bdb93
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Headers:
|
52
|
+
- Origin,X-Requested-With,Content-Type,Accept,X-AuthToken,Access-Control-Request-Method,Access-Control-Allow-Methods,Access-Control-Request-Headers,authorization,X_Auth_Credentials
|
53
|
+
Access-Control-Allow-Methods:
|
54
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
55
|
+
Access-Control-Request-Method:
|
56
|
+
- OPTIONS,POST,GET,PUT,DELETE
|
57
|
+
Access-Control-Request-Headers:
|
58
|
+
- authorization
|
59
|
+
Accept-Ranges:
|
60
|
+
- bytes
|
61
|
+
Date:
|
62
|
+
- Tue, 19 Nov 2019 20:07:55 GMT
|
63
|
+
Via:
|
64
|
+
- 1.1 varnish
|
65
|
+
X-Served-By:
|
66
|
+
- cache-lga21944-LGA
|
67
|
+
X-Cache:
|
68
|
+
- MISS
|
69
|
+
X-Cache-Hits:
|
70
|
+
- '0'
|
71
|
+
X-Timer:
|
72
|
+
- S1574194075.250703,VS0,VE396
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: '{"id":"pay_zbt4jjlnwn3uvb45bhcw6probm","action_id":"act_zbt4jjlnwn3uvb45bhcw6probm","amount":500,"currency":"USD","approved":true,"status":"Authorized","auth_code":"044913","eci":"05","scheme_id":"817574151943287","response_code":"10000","response_summary":"Approved","risk":{"flagged":false},"source":{"id":"src_toxd2yvjsdlelieckfowkotabq","type":"card","billing_address":{"address_line1":"22
|
76
|
+
s. 3rd st.","city":"Philadelphia","state":"PA","zip":"19106","country":"US"},"expiry_month":1,"expiry_year":2020,"name":"Ben
|
77
|
+
Crouse","scheme":"Visa","last4":"4242","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","bin":"424242","card_type":"Credit","card_category":"Consumer","issuer":"JPMORGAN
|
78
|
+
CHASE BANK NA","issuer_country":"US","product_id":"A","product_type":"Visa
|
79
|
+
Traditional","avs_check":"S","cvv_check":"Y","payouts":true,"fast_funds":"d"},"customer":{"id":"cus_xwtxqa3y66euhnkwgpcwe7ijce","email":"user@workarea.com","name":"Ben
|
80
|
+
Crouse"},"processed_on":"2019-11-19T20:07:55Z","reference":"7CAC20CE85","processing":{"acquirer_transaction_id":"8433063531","retrieval_reference_number":"856927868141"},"_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_zbt4jjlnwn3uvb45bhcw6probm"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_zbt4jjlnwn3uvb45bhcw6probm/actions"},"capture":{"href":"https://api.sandbox.checkout.com/payments/pay_zbt4jjlnwn3uvb45bhcw6probm/captures"},"void":{"href":"https://api.sandbox.checkout.com/payments/pay_zbt4jjlnwn3uvb45bhcw6probm/voids"}}}'
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 19 Nov 2019 20:07:55 GMT
|
83
|
+
recorded_with: VCR 2.9.3
|