fat_zebra 3.0.0 → 3.0.1
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 -1
- data/fat_zebra.gemspec +4 -4
- data/lib/fat_zebra/api_helper.rb +95 -0
- data/lib/fat_zebra/api_operation/find.rb +18 -11
- data/lib/fat_zebra/api_operation/save.rb +2 -2
- data/lib/fat_zebra/api_operation/search.rb +19 -12
- data/lib/fat_zebra/api_operation/void.rb +1 -1
- data/lib/fat_zebra/api_resource.rb +7 -73
- data/lib/fat_zebra/bank_account.rb +1 -2
- data/lib/fat_zebra/batch.rb +5 -3
- data/lib/fat_zebra/card.rb +5 -4
- data/lib/fat_zebra/config.rb +31 -18
- data/lib/fat_zebra/customer.rb +2 -3
- data/lib/fat_zebra/direct_credit.rb +2 -3
- data/lib/fat_zebra/direct_debit.rb +2 -3
- data/lib/fat_zebra/errors.rb +22 -4
- data/lib/fat_zebra/fat_zebra_object.rb +4 -115
- data/lib/fat_zebra/object_helper.rb +118 -0
- data/lib/fat_zebra/payment_plan.rb +1 -2
- data/lib/fat_zebra/purchase.rb +3 -6
- data/lib/fat_zebra/refund.rb +2 -4
- data/lib/fat_zebra/request.rb +12 -8
- data/lib/fat_zebra/util.rb +17 -1
- data/lib/fat_zebra/version.rb +1 -1
- data/lib/fat_zebra/web_hook.rb +1 -2
- data/lib/fat_zebra.rb +2 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_3.yml +55 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_3.yml +65 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_3.yml +65 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_3.yml +118 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_7.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_4.yml +105 -0
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_5_1.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_7.yml +57 -0
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_2.yml +107 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_3.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_3.yml +108 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_5.yml +54 -0
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_2.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +107 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_5.yml +54 -0
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_2.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +107 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_4.yml +114 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_2.yml +164 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_4.yml +173 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_4.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_3.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +55 -0
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_4.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_1.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_2.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_3.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_4.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_3.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_3.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_4.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_1.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_2.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_3.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_4.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_4.yml +842 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_1.yml +828 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_2.yml +830 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_3.yml +832 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_4.yml +834 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_1.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_2.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_3.yml +107 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_4.yml +107 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +107 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +161 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +159 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_4.yml +55 -0
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_2.yml +105 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_3.yml +106 -0
- data/spec/lib/fat_zebra/bank_account_spec.rb +2 -2
- data/spec/lib/fat_zebra/batch_spec.rb +4 -4
- data/spec/lib/fat_zebra/card_spec.rb +2 -2
- data/spec/lib/fat_zebra/config_spec.rb +22 -4
- data/spec/lib/fat_zebra/customer_spec.rb +5 -5
- data/spec/lib/fat_zebra/direct_credit_spec.rb +4 -4
- data/spec/lib/fat_zebra/direct_debit_spec.rb +4 -4
- data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +3 -2
- data/spec/lib/fat_zebra/payment_plan_spec.rb +4 -4
- data/spec/lib/fat_zebra/purchase_spec.rb +16 -3
- data/spec/lib/fat_zebra/refund_spec.rb +5 -2
- data/spec/lib/fat_zebra/util_spec.rb +5 -0
- data/spec/lib/fat_zebra/web_hook_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- metadata +76 -19
@@ -0,0 +1,107 @@
|
|
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":"1ba4c2b14a906ea9bc306879d19497ab","customer_ip":"1.2.3.4","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
|
+
- Wed, 05 Jul 2017 05:45:14 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
|
+
X-Request-Version:
|
38
|
+
- 1.19.41
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
X-Request-Id:
|
42
|
+
- c0de0f7dce59de8b4bd3c1f73f8ab114
|
43
|
+
X-Runtime:
|
44
|
+
- '0.350883'
|
45
|
+
X-Rack-Cache:
|
46
|
+
- invalidate, pass
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"124620","id":"071-P-Y7ODMNYJ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1ba4c2b14a906ea9bc306879d19497ab","currency":"AUD","transaction_id":"071-P-Y7ODMNYJ","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:45:13+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PY7ODMNYJ","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Wed, 05 Jul 2017 05:45:14 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"id":"071-P-Y7ODMNYJ","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Wed, 05 Jul 2017 05:45:14 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
X-Rack-Cache:
|
88
|
+
- invalidate, pass
|
89
|
+
Cache-Control:
|
90
|
+
- no-store
|
91
|
+
X-Request-Version:
|
92
|
+
- 1.19.41
|
93
|
+
X-Runtime:
|
94
|
+
- '0.072552'
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 7605d094ea1cda5a0e22eef77f328e71
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"124620","id":"071-P-Y7ODMNYJ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":"Voided","reference":"1ba4c2b14a906ea9bc306879d19497ab","currency":"AUD","transaction_id":"071-P-Y7ODMNYJ","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:45:13+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071PY7ODMNYJ","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 05 Jul 2017 05:45:14 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,107 @@
|
|
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":"1b73279bd959f5b1c3806b60f6ab240d","customer_ip":"1.2.3.4","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
|
+
- Wed, 05 Jul 2017 05:43: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
|
+
X-Rack-Cache:
|
36
|
+
- invalidate, pass
|
37
|
+
Cache-Control:
|
38
|
+
- no-store
|
39
|
+
X-Request-Version:
|
40
|
+
- 1.19.41
|
41
|
+
X-Runtime:
|
42
|
+
- '0.314554'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 1398c5e3c1d94ea7457eedf56db395b3
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"491799","id":"071-P-ZSUWH3C9","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1b73279bd959f5b1c3806b60f6ab240d","currency":"AUD","transaction_id":"071-P-ZSUWH3C9","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:54+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PZSUWH3C9","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Wed, 05 Jul 2017 05:43:54 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"id":"071-P-ZSUWH3C9","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Wed, 05 Jul 2017 05:43:54 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.19.41
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 32b8e397e184aa181431a129368a73b9
|
95
|
+
X-Runtime:
|
96
|
+
- '0.067219'
|
97
|
+
X-Rack-Cache:
|
98
|
+
- invalidate, pass
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"491799","id":"071-P-ZSUWH3C9","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":"Voided","reference":"1b73279bd959f5b1c3806b60f6ab240d","currency":"AUD","transaction_id":"071-P-ZSUWH3C9","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:54+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071PZSUWH3C9","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 05 Jul 2017 05:43:54 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,107 @@
|
|
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":"14a26e031eef40fe9f42fb11ce31679c","customer_ip":"1.2.3.4","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
|
+
- Wed, 05 Jul 2017 05:43: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
|
+
X-Rack-Cache:
|
36
|
+
- invalidate, pass
|
37
|
+
Cache-Control:
|
38
|
+
- no-store
|
39
|
+
X-Request-Version:
|
40
|
+
- 1.19.41
|
41
|
+
X-Runtime:
|
42
|
+
- '0.352131'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- a01880ffdcbb4328f5df3f2e6a9e3fb9
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"503789","id":"071-P-C7WJ9J21","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"14a26e031eef40fe9f42fb11ce31679c","currency":"AUD","transaction_id":"071-P-C7WJ9J21","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:55+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PC7WJ9J21","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Wed, 05 Jul 2017 05:43:55 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"id":"071-P-C7WJ9J21","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Wed, 05 Jul 2017 05:43:55 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.19.41
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- b69db1161466b7ab8d356783bb3e0670
|
95
|
+
X-Runtime:
|
96
|
+
- '0.065807'
|
97
|
+
X-Rack-Cache:
|
98
|
+
- invalidate, pass
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"503789","id":"071-P-C7WJ9J21","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":"Voided","reference":"14a26e031eef40fe9f42fb11ce31679c","currency":"AUD","transaction_id":"071-P-C7WJ9J21","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:55+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071PC7WJ9J21","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 05 Jul 2017 05:43:55 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,107 @@
|
|
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":"140931b53c036451ca852d3a9ee43111","customer_ip":"1.2.3.4","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
|
+
- Wed, 05 Jul 2017 05:43: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
|
+
X-Rack-Cache:
|
36
|
+
- invalidate, pass
|
37
|
+
Cache-Control:
|
38
|
+
- no-store
|
39
|
+
X-Request-Version:
|
40
|
+
- 1.19.41
|
41
|
+
X-Runtime:
|
42
|
+
- '0.310277'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 7a6521c77c3293ec047f7f2df7eace03
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"306229","id":"071-P-7M5UKKNR","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"140931b53c036451ca852d3a9ee43111","currency":"AUD","transaction_id":"071-P-7M5UKKNR","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:55+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P7M5UKKNR","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Wed, 05 Jul 2017 05:43:55 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"id":"071-P-7M5UKKNR","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Wed, 05 Jul 2017 05:43:56 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.19.41
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 95411824915d9c8cbef4f9d22caf5701
|
95
|
+
X-Runtime:
|
96
|
+
- '0.060680'
|
97
|
+
X-Rack-Cache:
|
98
|
+
- invalidate, pass
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"306229","id":"071-P-7M5UKKNR","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":"Voided","reference":"140931b53c036451ca852d3a9ee43111","currency":"AUD","transaction_id":"071-P-7M5UKKNR","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:55+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071P7M5UKKNR","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 05 Jul 2017 05:43:56 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,107 @@
|
|
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":"50d48f48978ef91376a1018c8444347a","customer_ip":"1.2.3.4","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
|
+
- Wed, 05 Jul 2017 05:43:56 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
|
+
X-Rack-Cache:
|
36
|
+
- invalidate, pass
|
37
|
+
Cache-Control:
|
38
|
+
- no-store
|
39
|
+
X-Request-Version:
|
40
|
+
- 1.19.41
|
41
|
+
X-Runtime:
|
42
|
+
- '0.318057'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 71e721b26243625dbe9da33ee6e01ada
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"725054","id":"071-P-8YFBEISF","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"50d48f48978ef91376a1018c8444347a","currency":"AUD","transaction_id":"071-P-8YFBEISF","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:56+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P8YFBEISF","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Wed, 05 Jul 2017 05:43:56 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"id":"071-P-8YFBEISF","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Wed, 05 Jul 2017 05:43:56 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.19.41
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- c5e53ba41940165c89960b1bb1cbbe55
|
95
|
+
X-Runtime:
|
96
|
+
- '0.052348'
|
97
|
+
X-Rack-Cache:
|
98
|
+
- invalidate, pass
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"725054","id":"071-P-8YFBEISF","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":"Voided","reference":"50d48f48978ef91376a1018c8444347a","currency":"AUD","transaction_id":"071-P-8YFBEISF","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:56+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071P8YFBEISF","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 05 Jul 2017 05:43:56 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,107 @@
|
|
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":"3bca5a1d5b9af5fe850449d8a1cc0729","customer_ip":"1.2.3.4","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
|
+
- Wed, 05 Jul 2017 05:43:56 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
|
+
X-Rack-Cache:
|
36
|
+
- invalidate, pass
|
37
|
+
Cache-Control:
|
38
|
+
- no-store
|
39
|
+
X-Request-Version:
|
40
|
+
- 1.19.41
|
41
|
+
X-Runtime:
|
42
|
+
- '0.366374'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- e680bfb447207f136fec21c7e730a65a
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"847349","id":"071-P-3BX5J3QM","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"3bca5a1d5b9af5fe850449d8a1cc0729","currency":"AUD","transaction_id":"071-P-3BX5J3QM","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:56+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P3BX5J3QM","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Wed, 05 Jul 2017 05:43:56 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/void
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"id":"071-P-3BX5J3QM","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Wed, 05 Jul 2017 05:43:57 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.19.41
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 192f918722d3f831e19e7195af809a02
|
95
|
+
X-Runtime:
|
96
|
+
- '0.054216'
|
97
|
+
X-Rack-Cache:
|
98
|
+
- invalidate, pass
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"847349","id":"071-P-3BX5J3QM","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":"Voided","reference":"3bca5a1d5b9af5fe850449d8a1cc0729","currency":"AUD","transaction_id":"071-P-3BX5J3QM","settlement_date":"2017-07-05","transaction_date":"2017-07-05T15:43:56+10:00","response_code":"00","captured":true,"captured_amount":0,"rrn":"071P3BX5J3QM","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 05 Jul 2017 05:43:57 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|