fat_zebra 3.0.11 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -5
- data/.travis.yml +1 -2
- data/README.md +1 -1
- data/fat_zebra.gemspec +1 -1
- data/lib/fat_zebra/api_operation/search.rb +1 -1
- data/lib/fat_zebra/direct_credit.rb +1 -1
- data/lib/fat_zebra/direct_debit.rb +1 -1
- data/lib/fat_zebra/refund.rb +4 -0
- data/lib/fat_zebra/validation.rb +4 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +34 -52
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +34 -52
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +34 -52
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +8 -14
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +8 -14
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +8 -14
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +18 -24
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +18 -24
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +18 -24
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +22 -40
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +22 -40
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +22 -40
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +22 -40
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +52 -76
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +52 -76
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +22 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +22 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +22 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +35 -53
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +35 -53
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +35 -53
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +37 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +37 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +37 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +37 -55
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +36 -54
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +36 -54
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +36 -54
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +214 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +27 -45
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +138 -93
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +140 -95
- data/spec/lib/fat_zebra/direct_credit_spec.rb +14 -1
- data/spec/lib/fat_zebra/direct_debit_spec.rb +14 -1
- data/spec/lib/fat_zebra/payment_plan_spec.rb +1 -1
- data/spec/lib/fat_zebra/refund_spec.rb +36 -16
- metadata +9 -7
- data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +0 -295
- data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +0 -295
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"fa83fc58069f387bca0b6eea68414c5f","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:11 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.599285'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.516671'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 016e9186ca890b0d730647ca
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"320230","id":"071-P-9YQ5ED05","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8sw1q","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"fa83fc58069f387bca0b6eea68414c5f","currency":"AUD","transaction_id":"071-P-9YQ5ED05","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:10+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P9YQ5ED05","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:08 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-9YQ5ED05","amount":10000,"reference":"fa83fc58069f387bca0b6eea68414c5f","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:11 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,25 +85,19 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.120394'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.131087'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 8a5f2ee5344a272133392fcb
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036751","id":"071-R-CLAJGUMB","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
100
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-CLAJGUMB","reference":"fa83fc58069f387bca0b6eea68414c5f","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:11+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RCLAJGUMB"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:08 GMT
|
115
103
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"1f146922c3d242c72ffaaf29dc5f9d1a","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:03 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.604121'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.586796'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- d678b0084fb92f1da7233b7e
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"551035","id":"071-P-QA7QYSGN","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86nc8","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1f146922c3d242c72ffaaf29dc5f9d1a","currency":"AUD","transaction_id":"071-P-QA7QYSGN","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:03+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PQA7QYSGN","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:00 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-QA7QYSGN","amount":10000,"reference":"1f146922c3d242c72ffaaf29dc5f9d1a","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:03 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,25 +85,19 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.152647'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.127091'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- ba0188f0a1d7f6e16d765ee4
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036743","id":"071-R-NIIQADNV","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
100
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-NIIQADNV","reference":"1f146922c3d242c72ffaaf29dc5f9d1a","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:03+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RNIIQADNV"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:01 GMT
|
115
103
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"8d08ac1e6bd20686dc49f8aa762cc083","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:04 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.546793'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.553891'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 07bc0b0af203fe96124e98d5
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"177662","id":"071-P-2JWD2CXG","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8jsni","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"8d08ac1e6bd20686dc49f8aa762cc083","currency":"AUD","transaction_id":"071-P-2JWD2CXG","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:04+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P2JWD2CXG","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:02 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-2JWD2CXG","amount":10000,"reference":"8d08ac1e6bd20686dc49f8aa762cc083","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:04 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,25 +85,19 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.136695'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.145492'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- ef5a80ca83c917774ad450e8
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036744","id":"071-R-D38F6XDN","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
100
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-D38F6XDN","reference":"8d08ac1e6bd20686dc49f8aa762cc083","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:04+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RD38F6XDN"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:02 GMT
|
115
103
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"04c0f4c9410bbe970f6dde6581595eb6","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:05 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.534067'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.555386'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 9a3e2a074f0c615a20f62243
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"889298","id":"071-P-61CG2T77","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8prq8","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"04c0f4c9410bbe970f6dde6581595eb6","currency":"AUD","transaction_id":"071-P-61CG2T77","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:05+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P61CG2T77","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:02 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-61CG2T77","amount":10000,"reference":"04c0f4c9410bbe970f6dde6581595eb6","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:05 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,25 +85,19 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.164403'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.136146'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 8f18d5a5dc3b04b5424f9743
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036745","id":"071-R-SG9IAI69","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
100
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-SG9IAI69","reference":"04c0f4c9410bbe970f6dde6581595eb6","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:05+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RSG9IAI69"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:03 GMT
|
115
103
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"cf9c68d2c1125505d58894c7ef37eb52","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:06 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.554911'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.522967'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 5dc4c6dab2cd5262db0c00f3
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"186837","id":"071-P-BDGEER2G","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8g6ko","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"cf9c68d2c1125505d58894c7ef37eb52","currency":"AUD","transaction_id":"071-P-BDGEER2G","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:06+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PBDGEER2G","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:03 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-BDGEER2G","amount":10000,"reference":"cf9c68d2c1125505d58894c7ef37eb52","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:06 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,25 +85,19 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.130704'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.146651'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 182f9be1ddb14abca2a89f3b
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036746","id":"071-R-3PPN430E","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
100
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-3PPN430E","reference":"cf9c68d2c1125505d58894c7ef37eb52","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:06+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071R3PPN430E"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:04 GMT
|
115
103
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"03a830ce46e2f48f65281f0f3469b86e","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:07 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.540901'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.541651'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- cbc91f681703e0ecd5675858
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"843226","id":"071-P-IF47D9FX","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8wjjb","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"03a830ce46e2f48f65281f0f3469b86e","currency":"AUD","transaction_id":"071-P-IF47D9FX","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:07+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PIF47D9FX","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:04 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-IF47D9FX","amount":10000,"reference":"03a830ce46e2f48f65281f0f3469b86e","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:07 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,25 +85,19 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.174487'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.138287'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 757512c34d5f031cd25c32eb
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036747","id":"071-R-AU2UTXG3","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
100
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-AU2UTXG3","reference":"03a830ce46e2f48f65281f0f3469b86e","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:07+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RAU2UTXG3"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:05 GMT
|
115
103
|
recorded_with: VCR 3.0.3
|