fat_zebra 3.2.3 → 3.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fat_zebra/payment_plan.rb +0 -2
- data/lib/fat_zebra/purchase.rb +23 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/cassettes/FatZebra_PaymentPlan/_create/perpetual_subscription/1_1_4_1.yml +183 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/perpetual_subscription/1_1_4_2.yml +183 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/perpetual_subscription/1_1_4_3.yml +183 -0
- data/spec/cassettes/FatZebra_Purchase/_extend_/1_9_1.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_extend_/1_9_2.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_extend_/1_9_3.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_1.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_2.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_3.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_4.yml +109 -0
- data/spec/lib/fat_zebra/payment_plan_spec.rb +33 -10
- data/spec/lib/fat_zebra/purchase_spec.rb +18 -0
- metadata +16 -6
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"bd02a8e19fee89111140c6fa8e05c303","customer_ip":"1.2.3.4","capture":false,"currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 08 Jun 2021 23:45:53 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000; includeSubDomains
|
39
|
+
- max-age=31536000; includeSubDomains
|
40
|
+
X-Request-Version:
|
41
|
+
- 1.21.8
|
42
|
+
Pragma:
|
43
|
+
- no-cache
|
44
|
+
X-Request-Id:
|
45
|
+
- 3fa274fc7c18d23a2b5b2ab0
|
46
|
+
X-Runtime:
|
47
|
+
- '0.100963'
|
48
|
+
X-Backend:
|
49
|
+
- gateway
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"successful":true,"response":{"authorization":"204228","id":"071-P-GPWDTVDA","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
53
|
+
Savage","card_expiry":"2030-02-28","card_token":"1ewcmufs5iulu4tdirhq","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"bd02a8e19fee89111140c6fa8e05c303","currency":"AUD","transaction_id":"071-P-GPWDTVDA","settlement_date":null,"transaction_date":"2021-06-09T09:45:53+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PGPWDTVDA","cvv_match":"M","metadata":{"authorization_tracking_id":"","card_sequence_number":"","sca_exemption":"","scheme_token_used":"false","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Tue, 08 Jun 2021 23:45:53 GMT
|
56
|
+
- request:
|
57
|
+
method: put
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/071-P-GPWDTVDA
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"extend":true,"test":true}'
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Authorization:
|
70
|
+
- Basic VEVTVDpURVNU
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Tue, 08 Jun 2021 23:45:53 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
Status:
|
87
|
+
- 200 OK
|
88
|
+
Cache-Control:
|
89
|
+
- no-store
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000; includeSubDomains
|
92
|
+
- max-age=31536000; includeSubDomains
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.21.8
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 70b9833c5e65f2d7083995cd
|
99
|
+
X-Runtime:
|
100
|
+
- '0.023373'
|
101
|
+
X-Backend:
|
102
|
+
- gateway
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"successful":true,"response":{"authorization":"204228","id":"071-P-GPWDTVDA","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
106
|
+
Savage","card_expiry":"2030-02-28","card_token":"1ewcmufs5iulu4tdirhq","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"bd02a8e19fee89111140c6fa8e05c303","currency":"AUD","transaction_id":"071-P-GPWDTVDA","settlement_date":null,"transaction_date":"2021-06-09T09:45:53+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PGPWDTVDA","cvv_match":"M","metadata":{"sca_exemption":"","scheme_token_used":"false","card_sequence_number":"","authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Tue, 08 Jun 2021 23:45:53 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"12e37abfaccd9514e373648204bc2484","customer_ip":"1.2.3.4","capture":false,"currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 08 Jun 2021 23:45:53 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000; includeSubDomains
|
39
|
+
- max-age=31536000; includeSubDomains
|
40
|
+
X-Request-Version:
|
41
|
+
- 1.21.8
|
42
|
+
Pragma:
|
43
|
+
- no-cache
|
44
|
+
X-Request-Id:
|
45
|
+
- 20203f322426866f79374f52
|
46
|
+
X-Runtime:
|
47
|
+
- '0.132383'
|
48
|
+
X-Backend:
|
49
|
+
- gateway
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"successful":true,"response":{"authorization":"624772","id":"071-P-AJHI43I6","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
53
|
+
Savage","card_expiry":"2030-02-28","card_token":"psfyzi66v77olyxk4mvs","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"12e37abfaccd9514e373648204bc2484","currency":"AUD","transaction_id":"071-P-AJHI43I6","settlement_date":null,"transaction_date":"2021-06-09T09:45:53+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PAJHI43I6","cvv_match":"M","metadata":{"authorization_tracking_id":"","card_sequence_number":"","sca_exemption":"","scheme_token_used":"false","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Tue, 08 Jun 2021 23:45:53 GMT
|
56
|
+
- request:
|
57
|
+
method: put
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/071-P-AJHI43I6
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"extend":true,"test":true}'
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Authorization:
|
70
|
+
- Basic VEVTVDpURVNU
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Tue, 08 Jun 2021 23:45:54 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
Status:
|
87
|
+
- 200 OK
|
88
|
+
Cache-Control:
|
89
|
+
- no-store
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000; includeSubDomains
|
92
|
+
- max-age=31536000; includeSubDomains
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.21.8
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 22dea56176ac419f1358d33e
|
99
|
+
X-Runtime:
|
100
|
+
- '0.035342'
|
101
|
+
X-Backend:
|
102
|
+
- gateway
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"successful":true,"response":{"authorization":"624772","id":"071-P-AJHI43I6","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
106
|
+
Savage","card_expiry":"2030-02-28","card_token":"psfyzi66v77olyxk4mvs","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"12e37abfaccd9514e373648204bc2484","currency":"AUD","transaction_id":"071-P-AJHI43I6","settlement_date":null,"transaction_date":"2021-06-09T09:45:53+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PAJHI43I6","cvv_match":"M","metadata":{"sca_exemption":"","scheme_token_used":"false","card_sequence_number":"","authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Tue, 08 Jun 2021 23:45:54 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"d942e91a6549a7be6fa7ff91e74b2a24","customer_ip":"1.2.3.4","capture":false,"currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 08 Jun 2021 23:45:54 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000; includeSubDomains
|
39
|
+
- max-age=31536000; includeSubDomains
|
40
|
+
X-Request-Version:
|
41
|
+
- 1.21.8
|
42
|
+
Pragma:
|
43
|
+
- no-cache
|
44
|
+
X-Request-Id:
|
45
|
+
- 227b91ff7e9fe49c1a2b757f
|
46
|
+
X-Runtime:
|
47
|
+
- '0.104138'
|
48
|
+
X-Backend:
|
49
|
+
- gateway
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"successful":true,"response":{"authorization":"659832","id":"071-P-3NDVVJM1","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
53
|
+
Savage","card_expiry":"2030-02-28","card_token":"2o2rxvvikqtjtb33jkdi","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"d942e91a6549a7be6fa7ff91e74b2a24","currency":"AUD","transaction_id":"071-P-3NDVVJM1","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071P3NDVVJM1","cvv_match":"M","metadata":{"authorization_tracking_id":"","card_sequence_number":"","sca_exemption":"","scheme_token_used":"false","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Tue, 08 Jun 2021 23:45:54 GMT
|
56
|
+
- request:
|
57
|
+
method: put
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/071-P-3NDVVJM1
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"extend":true,"test":true}'
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Authorization:
|
70
|
+
- Basic VEVTVDpURVNU
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Tue, 08 Jun 2021 23:45:54 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
Status:
|
87
|
+
- 200 OK
|
88
|
+
Cache-Control:
|
89
|
+
- no-store
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000; includeSubDomains
|
92
|
+
- max-age=31536000; includeSubDomains
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.21.8
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 68971bf94184f2c522565ba9
|
99
|
+
X-Runtime:
|
100
|
+
- '0.024456'
|
101
|
+
X-Backend:
|
102
|
+
- gateway
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"successful":true,"response":{"authorization":"659832","id":"071-P-3NDVVJM1","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
106
|
+
Savage","card_expiry":"2030-02-28","card_token":"2o2rxvvikqtjtb33jkdi","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"d942e91a6549a7be6fa7ff91e74b2a24","currency":"AUD","transaction_id":"071-P-3NDVVJM1","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071P3NDVVJM1","cvv_match":"M","metadata":{"sca_exemption":"","scheme_token_used":"false","card_sequence_number":"","authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Tue, 08 Jun 2021 23:45:54 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"819dd2e6209fb5dd59c4247d976ff495","customer_ip":"1.2.3.4","capture":false,"currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 08 Jun 2021 23:45:54 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000; includeSubDomains
|
39
|
+
- max-age=31536000; includeSubDomains
|
40
|
+
X-Request-Version:
|
41
|
+
- 1.21.8
|
42
|
+
Pragma:
|
43
|
+
- no-cache
|
44
|
+
X-Request-Id:
|
45
|
+
- 4896937635a015fe6614ae77
|
46
|
+
X-Runtime:
|
47
|
+
- '0.112404'
|
48
|
+
X-Backend:
|
49
|
+
- gateway
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"successful":true,"response":{"authorization":"246645","id":"071-P-9BSIJVA2","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
53
|
+
Savage","card_expiry":"2030-02-28","card_token":"78za9bfru3ke3jxansar","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"819dd2e6209fb5dd59c4247d976ff495","currency":"AUD","transaction_id":"071-P-9BSIJVA2","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071P9BSIJVA2","cvv_match":"M","metadata":{"authorization_tracking_id":"","card_sequence_number":"","sca_exemption":"","scheme_token_used":"false","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Tue, 08 Jun 2021 23:45:54 GMT
|
56
|
+
- request:
|
57
|
+
method: put
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/071-P-9BSIJVA2
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"amount":10200,"test":true}'
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Authorization:
|
70
|
+
- Basic VEVTVDpURVNU
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Tue, 08 Jun 2021 23:45:54 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
Status:
|
87
|
+
- 200 OK
|
88
|
+
Cache-Control:
|
89
|
+
- no-store
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000; includeSubDomains
|
92
|
+
- max-age=31536000; includeSubDomains
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.21.8
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 014721ad4367448005ba87b0
|
99
|
+
X-Runtime:
|
100
|
+
- '0.040192'
|
101
|
+
X-Backend:
|
102
|
+
- gateway
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"successful":true,"response":{"authorization":"246645","id":"071-P-9BSIJVA2","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
106
|
+
Savage","card_expiry":"2030-02-28","card_token":"78za9bfru3ke3jxansar","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10200,"decimal_amount":102.0,"successful":true,"message":"Approved","reference":"819dd2e6209fb5dd59c4247d976ff495","currency":"AUD","transaction_id":"071-P-9BSIJVA2","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071P9BSIJVA2","cvv_match":"M","metadata":{"sca_exemption":"","scheme_token_used":"false","card_sequence_number":"","authorization_tracking_id":"","original_transaction_reference":"","original_amount":"10000"},"addendum_data":{}},"errors":[],"test":true}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Tue, 08 Jun 2021 23:45:54 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"043a471b5fdb68cdc18df3778d1decaa","customer_ip":"1.2.3.4","capture":false,"currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 08 Jun 2021 23:45:54 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000; includeSubDomains
|
39
|
+
- max-age=31536000; includeSubDomains
|
40
|
+
X-Request-Version:
|
41
|
+
- 1.21.8
|
42
|
+
Pragma:
|
43
|
+
- no-cache
|
44
|
+
X-Request-Id:
|
45
|
+
- 66caacd871e2f31f5c01597d
|
46
|
+
X-Runtime:
|
47
|
+
- '0.100926'
|
48
|
+
X-Backend:
|
49
|
+
- gateway
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"successful":true,"response":{"authorization":"243808","id":"071-P-X436H7FV","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
53
|
+
Savage","card_expiry":"2030-02-28","card_token":"mbi7mpgrf4yfcwzwon9x","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"043a471b5fdb68cdc18df3778d1decaa","currency":"AUD","transaction_id":"071-P-X436H7FV","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PX436H7FV","cvv_match":"M","metadata":{"authorization_tracking_id":"","card_sequence_number":"","sca_exemption":"","scheme_token_used":"false","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Tue, 08 Jun 2021 23:45:54 GMT
|
56
|
+
- request:
|
57
|
+
method: put
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/071-P-X436H7FV
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"amount":10200,"test":true}'
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Authorization:
|
70
|
+
- Basic VEVTVDpURVNU
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Tue, 08 Jun 2021 23:45:54 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
Status:
|
87
|
+
- 200 OK
|
88
|
+
Cache-Control:
|
89
|
+
- no-store
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000; includeSubDomains
|
92
|
+
- max-age=31536000; includeSubDomains
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.21.8
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 5235a0f94856bca32692182c
|
99
|
+
X-Runtime:
|
100
|
+
- '0.038736'
|
101
|
+
X-Backend:
|
102
|
+
- gateway
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"successful":true,"response":{"authorization":"243808","id":"071-P-X436H7FV","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
106
|
+
Savage","card_expiry":"2030-02-28","card_token":"mbi7mpgrf4yfcwzwon9x","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10200,"decimal_amount":102.0,"successful":true,"message":"Approved","reference":"043a471b5fdb68cdc18df3778d1decaa","currency":"AUD","transaction_id":"071-P-X436H7FV","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PX436H7FV","cvv_match":"M","metadata":{"sca_exemption":"","scheme_token_used":"false","card_sequence_number":"","authorization_tracking_id":"","original_transaction_reference":"","original_amount":"10000"},"addendum_data":{}},"errors":[],"test":true}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Tue, 08 Jun 2021 23:45:54 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"e5583cc8454b1e8ca386b059d472f9db","customer_ip":"1.2.3.4","capture":false,"currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 08 Jun 2021 23:45:55 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000; includeSubDomains
|
39
|
+
- max-age=31536000; includeSubDomains
|
40
|
+
X-Request-Version:
|
41
|
+
- 1.21.8
|
42
|
+
Pragma:
|
43
|
+
- no-cache
|
44
|
+
X-Request-Id:
|
45
|
+
- 40d8526b36057c1733e4a4c3
|
46
|
+
X-Runtime:
|
47
|
+
- '0.127190'
|
48
|
+
X-Backend:
|
49
|
+
- gateway
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"successful":true,"response":{"authorization":"194901","id":"071-P-TS0BQSDO","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
53
|
+
Savage","card_expiry":"2030-02-28","card_token":"0fosofh1yfyum1g1j61b","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"e5583cc8454b1e8ca386b059d472f9db","currency":"AUD","transaction_id":"071-P-TS0BQSDO","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PTS0BQSDO","cvv_match":"M","metadata":{"authorization_tracking_id":"","card_sequence_number":"","sca_exemption":"","scheme_token_used":"false","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Tue, 08 Jun 2021 23:45:55 GMT
|
56
|
+
- request:
|
57
|
+
method: put
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/071-P-TS0BQSDO
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"amount":10200,"test":true}'
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Authorization:
|
70
|
+
- Basic VEVTVDpURVNU
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Tue, 08 Jun 2021 23:45:55 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
Status:
|
87
|
+
- 200 OK
|
88
|
+
Cache-Control:
|
89
|
+
- no-store
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000; includeSubDomains
|
92
|
+
- max-age=31536000; includeSubDomains
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.21.8
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 6a3ff89f391840837027a541
|
99
|
+
X-Runtime:
|
100
|
+
- '0.036078'
|
101
|
+
X-Backend:
|
102
|
+
- gateway
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"successful":true,"response":{"authorization":"194901","id":"071-P-TS0BQSDO","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
106
|
+
Savage","card_expiry":"2030-02-28","card_token":"0fosofh1yfyum1g1j61b","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10200,"decimal_amount":102.0,"successful":true,"message":"Approved","reference":"e5583cc8454b1e8ca386b059d472f9db","currency":"AUD","transaction_id":"071-P-TS0BQSDO","settlement_date":null,"transaction_date":"2021-06-09T09:45:54+10:00","response_code":"00","captured":false,"captured_amount":0,"rrn":"071PTS0BQSDO","cvv_match":"M","metadata":{"sca_exemption":"","scheme_token_used":"false","card_sequence_number":"","authorization_tracking_id":"","original_transaction_reference":"","original_amount":"10000"},"addendum_data":{}},"errors":[],"test":true}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Tue, 08 Jun 2021 23:45:55 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|