fat_zebra 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/lib/fat_zebra.rb +1 -0
- data/lib/fat_zebra/authorise.rb +49 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_1.yml +48 -0
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_2.yml +48 -0
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_1.yml +48 -0
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_2.yml +48 -0
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_invalid_input/1_2_1_1.yml +50 -0
- data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_given_params.yml +46 -0
- data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_no_params.yml +46 -0
- data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_some_params.yml +46 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +8 -14
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +8 -14
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +30 -30
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +30 -30
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +30 -30
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +11 -17
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +11 -17
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +11 -17
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +11 -17
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +19 -31
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +19 -31
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +26 -44
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +6 -6
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +6 -6
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +6 -6
- data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +7 -13
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +7 -13
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +7 -13
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +7 -13
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +7 -13
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +7 -13
- data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +15 -27
- data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +15 -27
- data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +15 -27
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +7 -13
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +9 -15
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +9 -15
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +9 -15
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +9 -15
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +9 -15
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +9 -15
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +18 -30
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +18 -30
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +18 -30
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +12 -16
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +12 -16
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +12 -16
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +19 -31
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +19 -31
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +8 -14
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +8 -14
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +8 -14
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +8 -14
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +7 -13
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +16 -28
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +16 -28
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +16 -28
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +13 -13
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +20 -20
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +20 -20
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +8 -14
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +8 -14
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +8 -14
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +8 -14
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +7 -13
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +16 -28
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +16 -28
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +16 -28
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +13 -13
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +20 -20
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +20 -20
- data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +7 -13
- data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +7 -13
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +48 -48
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +48 -48
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +20 -20
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +20 -20
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +20 -20
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +28 -28
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +28 -28
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +32 -32
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +32 -32
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +32 -32
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +34 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +34 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +28 -28
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +28 -28
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +28 -28
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +34 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +34 -34
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +9 -15
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +11 -17
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +11 -17
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +18 -30
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +18 -30
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +18 -30
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +18 -30
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +18 -30
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +18 -30
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +18 -30
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +16 -16
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +24 -24
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +24 -24
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +24 -24
- data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +40 -40
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +24 -24
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +24 -24
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +24 -24
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +24 -24
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +7 -13
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +7 -13
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +7 -13
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +15 -27
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +160 -133
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +162 -135
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +15 -27
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +15 -27
- data/spec/lib/fat_zebra/authorise_spec.rb +101 -0
- data/spec/lib/fat_zebra/purchase_spec.rb +3 -3
- data/spec/lib/fat_zebra/refund_spec.rb +1 -1
- data/spec/support/payloads.rb +42 -0
- metadata +13 -4
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml +0 -52
@@ -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":"4d9dadee105e70205db41fa604955677","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
|
+
- Mon, 29 Apr 2019 09:24:24 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.561681'
|
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.506546'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- e01cdd7c6e5f3a3c931bde54
|
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":"408468","id":"071-P-FVTPUZKZ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"bpn5rkr0br5a017mwl88","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"4d9dadee105e70205db41fa604955677","currency":"AUD","transaction_id":"071-P-FVTPUZKZ","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:24+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PFVTPUZKZ","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Mon, 29 Apr 2019 09:24:24 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"id":"071-P-
|
58
|
+
string: '{"id":"071-P-FVTPUZKZ","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
|
+
- Mon, 29 Apr 2019 09:24:25 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-3941@c1d8236
|
89
|
+
X-Runtime:
|
90
|
+
- '0.089902'
|
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.069360'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 8a394d5f3fe37b742360e02b
|
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_expiry":"2030-02-28","card_token":"
|
99
|
+
string: '{"successful":true,"response":{"authorization":"408468","id":"071-P-FVTPUZKZ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
100
|
+
Savage","card_expiry":"2030-02-28","card_token":"bpn5rkr0br5a017mwl88","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Voided","reference":"4d9dadee105e70205db41fa604955677","currency":"AUD","transaction_id":"071-P-FVTPUZKZ","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:24+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071PFVTPUZKZ","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Mon, 29 Apr 2019 09:24:25 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":"224e5d5046a70c302a6491de13184348","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
|
+
- Mon, 29 Apr 2019 09:24:25 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.581282'
|
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.522886'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 31d2061454b38fc492f7fb84
|
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":"995933","id":"071-P-CNUUTBTJ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"g1fhfehlldr8611ie88z","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"224e5d5046a70c302a6491de13184348","currency":"AUD","transaction_id":"071-P-CNUUTBTJ","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:25+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PCNUUTBTJ","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Mon, 29 Apr 2019 09:24:25 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"id":"071-P-
|
58
|
+
string: '{"id":"071-P-CNUUTBTJ","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
|
+
- Mon, 29 Apr 2019 09:24:26 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-3941@c1d8236
|
89
|
+
X-Runtime:
|
90
|
+
- '0.168870'
|
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.078625'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 675798302305b3d0352dbee0
|
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_expiry":"2030-02-28","card_token":"
|
99
|
+
string: '{"successful":true,"response":{"authorization":"995933","id":"071-P-CNUUTBTJ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
100
|
+
Savage","card_expiry":"2030-02-28","card_token":"g1fhfehlldr8611ie88z","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Voided","reference":"224e5d5046a70c302a6491de13184348","currency":"AUD","transaction_id":"071-P-CNUUTBTJ","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:25+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071PCNUUTBTJ","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Mon, 29 Apr 2019 09:24:26 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":"21ef7b7aa0620228d7da7abdd2bd9fdb","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
|
+
- Mon, 29 Apr 2019 09:24:26 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.522228'
|
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.558360'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 861ddbdebb9bf81e3b6ef511
|
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":"743420","id":"071-P-YVIGEC5V","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"51tk9t0x4vnvfjhz12jk","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"21ef7b7aa0620228d7da7abdd2bd9fdb","currency":"AUD","transaction_id":"071-P-YVIGEC5V","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:26+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PYVIGEC5V","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Mon, 29 Apr 2019 09:24:26 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"id":"071-P-
|
58
|
+
string: '{"id":"071-P-YVIGEC5V","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
|
+
- Mon, 29 Apr 2019 09:24:26 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-3941@c1d8236
|
89
|
+
X-Runtime:
|
90
|
+
- '0.080494'
|
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.069130'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- a341893da212b2829b8a3d3d
|
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_expiry":"2030-02-28","card_token":"
|
99
|
+
string: '{"successful":true,"response":{"authorization":"743420","id":"071-P-YVIGEC5V","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
100
|
+
Savage","card_expiry":"2030-02-28","card_token":"51tk9t0x4vnvfjhz12jk","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Voided","reference":"21ef7b7aa0620228d7da7abdd2bd9fdb","currency":"AUD","transaction_id":"071-P-YVIGEC5V","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:26+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071PYVIGEC5V","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Mon, 29 Apr 2019 09:24:26 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":"a5139a07a3969624f201e41763b22564","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
|
+
- Mon, 29 Apr 2019 09:24:27 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.584047'
|
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.571340'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- a77036b4d1c37178249da278
|
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":"866089","id":"071-P-LB43MX6","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"onx9rww8siel2pu47ivk","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"a5139a07a3969624f201e41763b22564","currency":"AUD","transaction_id":"071-P-LB43MX6","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:27+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PLB43MX6","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Mon, 29 Apr 2019 09:24:27 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"id":"071-P-
|
58
|
+
string: '{"id":"071-P-LB43MX6","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
|
+
- Mon, 29 Apr 2019 09:24:27 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-3941@c1d8236
|
89
|
+
X-Runtime:
|
90
|
+
- '0.083912'
|
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.070981'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 19f346d0cfb1e3946852ea22
|
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_expiry":"2030-02-28","card_token":"
|
99
|
+
string: '{"successful":true,"response":{"authorization":"866089","id":"071-P-LB43MX6","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
100
|
+
Savage","card_expiry":"2030-02-28","card_token":"onx9rww8siel2pu47ivk","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Voided","reference":"a5139a07a3969624f201e41763b22564","currency":"AUD","transaction_id":"071-P-LB43MX6","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:27+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071PLB43MX6","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Mon, 29 Apr 2019 09:24:27 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":"1f31cdbea231b9bb5469219397d5db96","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
|
+
- Mon, 29 Apr 2019 09:20:20 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,27 +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-3941@c1d8236
|
39
39
|
X-Runtime:
|
40
|
-
- '0.
|
40
|
+
- '0.562177'
|
41
41
|
Pragma:
|
42
42
|
- no-cache
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
44
|
+
- 740d2234c05de79cd5aeb048
|
45
45
|
X-Backend:
|
46
46
|
- sbox-priv-gateway-a
|
47
47
|
body:
|
48
48
|
encoding: UTF-8
|
49
|
-
string: '{"successful":true,"response":{"authorization":"
|
50
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"574694","id":"071-P-PM5V3GS7","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"ssu89e7spa249rs5lfd6","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1f31cdbea231b9bb5469219397d5db96","currency":"AUD","transaction_id":"071-P-PM5V3GS7","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:20:20+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PPM5V3GS7","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
51
51
|
http_version:
|
52
|
-
recorded_at:
|
52
|
+
recorded_at: Mon, 29 Apr 2019 09:20:20 GMT
|
53
53
|
- request:
|
54
54
|
method: post
|
55
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-PM5V3GS7","amount":10000,"reference":"1f31cdbea231b9bb5469219397d5db96","test":true}'
|
59
59
|
headers:
|
60
60
|
Accept-Encoding:
|
61
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -73,7 +73,7 @@ http_interactions:
|
|
73
73
|
message: OK
|
74
74
|
headers:
|
75
75
|
Date:
|
76
|
-
-
|
76
|
+
- Mon, 29 Apr 2019 09:20:21 GMT
|
77
77
|
Content-Type:
|
78
78
|
- application/json; charset=utf-8
|
79
79
|
Transfer-Encoding:
|
@@ -85,19 +85,19 @@ http_interactions:
|
|
85
85
|
Cache-Control:
|
86
86
|
- no-store
|
87
87
|
X-Request-Version:
|
88
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3941@c1d8236
|
89
89
|
X-Runtime:
|
90
|
-
- '0.
|
90
|
+
- '0.159778'
|
91
91
|
Pragma:
|
92
92
|
- no-cache
|
93
93
|
X-Request-Id:
|
94
|
-
-
|
94
|
+
- 4f6ac198cc5a4c581edee8a8
|
95
95
|
X-Backend:
|
96
96
|
- sbox-priv-gateway-a
|
97
97
|
body:
|
98
98
|
encoding: UTF-8
|
99
|
-
string: '{"successful":true,"response":{"authorization":"
|
100
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1556529621","id":"071-R-F4V0DCE","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-F4V0DCE","reference":"1f31cdbea231b9bb5469219397d5db96","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:21+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071RF4V0DCE"},"errors":[],"test":true}'
|
101
101
|
http_version:
|
102
|
-
recorded_at:
|
102
|
+
recorded_at: Mon, 29 Apr 2019 09:20:21 GMT
|
103
103
|
recorded_with: VCR 3.0.3
|