fat_zebra_multi 3.1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.rspec +0 -0
- data/.rubocop.yml +44 -0
- data/.travis.yml +10 -0
- data/Gemfile +4 -0
- data/README.md +104 -0
- data/Rakefile +11 -0
- data/fat_zebra_multi.gemspec +27 -0
- data/lib/fat_zebra.rb +65 -0
- data/lib/fat_zebra/api_helper.rb +91 -0
- data/lib/fat_zebra/api_operation/delete.rb +38 -0
- data/lib/fat_zebra/api_operation/find.rb +30 -0
- data/lib/fat_zebra/api_operation/save.rb +67 -0
- data/lib/fat_zebra/api_operation/search.rb +39 -0
- data/lib/fat_zebra/api_operation/void.rb +52 -0
- data/lib/fat_zebra/api_resource.rb +88 -0
- data/lib/fat_zebra/bank_account.rb +20 -0
- data/lib/fat_zebra/batch.rb +60 -0
- data/lib/fat_zebra/card.rb +23 -0
- data/lib/fat_zebra/config.rb +90 -0
- data/lib/fat_zebra/customer.rb +26 -0
- data/lib/fat_zebra/direct_credit.rb +26 -0
- data/lib/fat_zebra/direct_debit.rb +26 -0
- data/lib/fat_zebra/errors.rb +37 -0
- data/lib/fat_zebra/fat_zebra_object.rb +68 -0
- data/lib/fat_zebra/information.rb +29 -0
- data/lib/fat_zebra/object_helper.rb +119 -0
- data/lib/fat_zebra/payment_plan.rb +61 -0
- data/lib/fat_zebra/purchase.rb +96 -0
- data/lib/fat_zebra/refund.rb +27 -0
- data/lib/fat_zebra/request.rb +174 -0
- data/lib/fat_zebra/request/multipart/epilogue.rb +23 -0
- data/lib/fat_zebra/request/multipart/file_io.rb +40 -0
- data/lib/fat_zebra/request/multipart/param.rb +37 -0
- data/lib/fat_zebra/request/multipart/part.rb +28 -0
- data/lib/fat_zebra/request/multipart/stream.rb +57 -0
- data/lib/fat_zebra/util.rb +71 -0
- data/lib/fat_zebra/validation.rb +67 -0
- data/lib/fat_zebra/version.rb +3 -0
- data/lib/fat_zebra/web_hook.rb +22 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +53 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +53 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +164 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +164 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +164 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +112 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +112 -0
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +163 -0
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +54 -0
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +54 -0
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +105 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +105 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +105 -0
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +54 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +103 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +107 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +107 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +60 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +60 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +60 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +106 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +106 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +99 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +152 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +152 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +99 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +152 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +152 -0
- data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +54 -0
- data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +54 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +222 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +222 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +110 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +110 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +110 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +158 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +158 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +167 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +167 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +167 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +166 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +166 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +160 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +160 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +160 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +166 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +166 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +55 -0
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +55 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_4.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_3.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +652 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +652 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +652 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +155 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +155 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +155 -0
- 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 +153 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +153 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +153 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +153 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +53 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +53 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +53 -0
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +101 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +298 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +300 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +104 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +104 -0
- data/spec/cassettes/Multiple_accounts/The_basics/1_1_5.yml +59 -0
- data/spec/cassettes/Multiple_accounts/The_basics/1_1_6.yml +59 -0
- data/spec/fixtures/batch_test.csv +4 -0
- data/spec/lib/fat_zebra/api_resource_spec.rb +25 -0
- data/spec/lib/fat_zebra/bank_account_spec.rb +34 -0
- data/spec/lib/fat_zebra/batch_spec.rb +59 -0
- data/spec/lib/fat_zebra/card_spec.rb +41 -0
- data/spec/lib/fat_zebra/config_spec.rb +69 -0
- data/spec/lib/fat_zebra/customer_spec.rb +53 -0
- data/spec/lib/fat_zebra/direct_credit_spec.rb +74 -0
- data/spec/lib/fat_zebra/direct_debit_spec.rb +74 -0
- data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +117 -0
- data/spec/lib/fat_zebra/information_spec.rb +13 -0
- data/spec/lib/fat_zebra/multiple_accounts_spec.rb +69 -0
- data/spec/lib/fat_zebra/payment_plan_spec.rb +94 -0
- data/spec/lib/fat_zebra/purchase_spec.rb +105 -0
- data/spec/lib/fat_zebra/refund_spec.rb +95 -0
- data/spec/lib/fat_zebra/request_spec.rb +59 -0
- data/spec/lib/fat_zebra/util_spec.rb +43 -0
- data/spec/lib/fat_zebra/validation_spec.rb +22 -0
- data/spec/lib/fat_zebra/web_hook_spec.rb +50 -0
- data/spec/spec_helper.rb +68 -0
- data/spec/support/payloads.rb +43 -0
- data/vendor/cacert.pem +3390 -0
- metadata +338 -0
@@ -0,0 +1,115 @@
|
|
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":"9ebbb5aa3a1d9b306c4c34be7753df2d","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
|
+
- Tue, 08 May 2018 11:07:30 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.16.9-3186@7b619da
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
43
|
+
X-Request-Id:
|
44
|
+
- 8ae1ce09e336ccda06f086ca
|
45
|
+
X-Runtime:
|
46
|
+
- '0.557156'
|
47
|
+
X-Frame-Options:
|
48
|
+
- SAMEORIGIN
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
51
|
+
X-Backend:
|
52
|
+
- sbox-priv-gateway-a
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"successful":true,"response":{"authorization":"812131","id":"071-P-FRGFG2PH","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
56
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke81sqn","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"9ebbb5aa3a1d9b306c4c34be7753df2d","currency":"AUD","transaction_id":"071-P-FRGFG2PH","settlement_date":"2018-05-08","transaction_date":"2018-05-08T21:07:30.225+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PFRGFG2PH","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 08 May 2018 11:07:30 GMT
|
59
|
+
- request:
|
60
|
+
method: post
|
61
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: '{"transaction_id":"071-P-FRGFG2PH","amount":10000,"reference":"9ebbb5aa3a1d9b306c4c34be7753df2d","test":true}'
|
65
|
+
headers:
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
68
|
+
Accept:
|
69
|
+
- application/json
|
70
|
+
User-Agent:
|
71
|
+
- Ruby
|
72
|
+
Authorization:
|
73
|
+
- Basic VEVTVDpURVNU
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Date:
|
82
|
+
- Tue, 08 May 2018 11:07:30 GMT
|
83
|
+
Content-Type:
|
84
|
+
- application/json; charset=utf-8
|
85
|
+
Transfer-Encoding:
|
86
|
+
- chunked
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Status:
|
90
|
+
- 200 OK
|
91
|
+
Cache-Control:
|
92
|
+
- no-store
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.16.9-3186@7b619da
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Xss-Protection:
|
98
|
+
- 1; mode=block
|
99
|
+
X-Request-Id:
|
100
|
+
- 44d7ea0afef52be31f231d06
|
101
|
+
X-Runtime:
|
102
|
+
- '0.121555'
|
103
|
+
X-Frame-Options:
|
104
|
+
- SAMEORIGIN
|
105
|
+
X-Content-Type-Options:
|
106
|
+
- nosniff
|
107
|
+
X-Backend:
|
108
|
+
- sbox-priv-gateway-a
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: '{"successful":true,"response":{"authorization":"1525777650","id":"071-R-8UQJFFZ","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
112
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-8UQJFFZ","reference":"9ebbb5aa3a1d9b306c4c34be7753df2d","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:07:30.474+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071R8UQJFFZ"},"errors":[],"test":true}'
|
113
|
+
http_version:
|
114
|
+
recorded_at: Tue, 08 May 2018 11:07:30 GMT
|
115
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,164 @@
|
|
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":"70aa7bec819135204e721eb77730d785-0","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, 25 Jul 2018 03:20:52 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.16.9-3480@96677e4
|
39
|
+
X-Runtime:
|
40
|
+
- '0.547144'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- fc9d771dfd1c7cc616c32e9f
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"authorization":"845339","id":"071-P-L3B1MG56","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8vew0","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"70aa7bec819135204e721eb77730d785-0","currency":"AUD","transaction_id":"071-P-L3B1MG56","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:52+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PL3B1MG56","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:50 GMT
|
53
|
+
- request:
|
54
|
+
method: post
|
55
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"2ce2711cd9ec517b0d0b84cfec87728e-1","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
59
|
+
headers:
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- application/json
|
64
|
+
User-Agent:
|
65
|
+
- Ruby
|
66
|
+
Authorization:
|
67
|
+
- Basic VEVTVDpURVNU
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Date:
|
76
|
+
- Wed, 25 Jul 2018 03:20:53 GMT
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
Connection:
|
82
|
+
- keep-alive
|
83
|
+
Status:
|
84
|
+
- 200 OK
|
85
|
+
Cache-Control:
|
86
|
+
- no-store
|
87
|
+
X-Request-Version:
|
88
|
+
- 1.16.9-3480@96677e4
|
89
|
+
X-Runtime:
|
90
|
+
- '0.584053'
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- f2f536485d78c00788b46c9a
|
95
|
+
X-Backend:
|
96
|
+
- sbox-priv-gateway-a
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: '{"successful":true,"response":{"authorization":"712936","id":"071-P-GNTZ09FO","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
100
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke874ku","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2ce2711cd9ec517b0d0b84cfec87728e-1","currency":"AUD","transaction_id":"071-P-GNTZ09FO","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:53+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PGNTZ09FO","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:50 GMT
|
103
|
+
- request:
|
104
|
+
method: get
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&offset=0&test=true
|
106
|
+
body:
|
107
|
+
encoding: US-ASCII
|
108
|
+
string: ''
|
109
|
+
headers:
|
110
|
+
Accept-Encoding:
|
111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
+
Accept:
|
113
|
+
- application/json
|
114
|
+
User-Agent:
|
115
|
+
- Ruby
|
116
|
+
Host:
|
117
|
+
- gateway.sandbox.fatzebra.com.au
|
118
|
+
Authorization:
|
119
|
+
- Basic VEVTVDpURVNU
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
response:
|
123
|
+
status:
|
124
|
+
code: 200
|
125
|
+
message: OK
|
126
|
+
headers:
|
127
|
+
Date:
|
128
|
+
- Wed, 25 Jul 2018 03:20:54 GMT
|
129
|
+
Content-Type:
|
130
|
+
- application/json; charset=utf-8
|
131
|
+
Transfer-Encoding:
|
132
|
+
- chunked
|
133
|
+
Connection:
|
134
|
+
- keep-alive
|
135
|
+
Status:
|
136
|
+
- 200 OK
|
137
|
+
Cache-Control:
|
138
|
+
- no-store
|
139
|
+
X-Request-Version:
|
140
|
+
- 1.16.9-3480@96677e4
|
141
|
+
X-Runtime:
|
142
|
+
- '0.309727'
|
143
|
+
Pragma:
|
144
|
+
- no-cache
|
145
|
+
X-Request-Id:
|
146
|
+
- ddc3e4b192a026ea259cd3cd
|
147
|
+
X-Backend:
|
148
|
+
- sbox-priv-gateway-a
|
149
|
+
body:
|
150
|
+
encoding: UTF-8
|
151
|
+
string: '{"successful":true,"response":[{"authorization":"712936","id":"071-P-GNTZ09FO","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
152
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke874ku","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2ce2711cd9ec517b0d0b84cfec87728e-1","currency":"AUD","transaction_id":"071-P-GNTZ09FO","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:53+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PGNTZ09FO","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"845339","id":"071-P-L3B1MG56","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
153
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8vew0","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"70aa7bec819135204e721eb77730d785-0","currency":"AUD","transaction_id":"071-P-L3B1MG56","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:52+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PL3B1MG56","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"757699","id":"071-P-LGU7LH7B","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
154
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8fbtu","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"afc577b654d01e1504294ca5f42869e0","currency":"AUD","transaction_id":"071-P-LGU7LH7B","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:18+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PLGU7LH7B","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"488859","id":"071-P-6SF0VIU","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
155
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8w0w1","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"09a614e67f7d317500a9c35b2ccb3910","currency":"AUD","transaction_id":"071-P-6SF0VIU","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:17+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P6SF0VIU","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"847943","id":"071-P-F0NJD3SX","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
156
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8xeeo","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"98cadad8e947bff527d1ddded483008e","currency":"AUD","transaction_id":"071-P-F0NJD3SX","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:15+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PF0NJD3SX","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"274526","id":"071-P-CLRKEVFQ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
157
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8nae9","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"3174d503c1ef0ffd564f9561dfdd37c9","currency":"AUD","transaction_id":"071-P-CLRKEVFQ","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:14+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PCLRKEVFQ","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"692006","id":"071-P-HB9D4R4P","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
158
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke82jeo","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"4e145875f7e470089e610dbccf16500a","currency":"AUD","transaction_id":"071-P-HB9D4R4P","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:12+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PHB9D4R4P","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"917129","id":"071-P-YZZF970U","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
159
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8i5l5","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"fbb82fe2d179e0c2527dc51d9fa7d4d9","currency":"AUD","transaction_id":"071-P-YZZF970U","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:10+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PYZZF970U","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"509487","id":"071-P-9J14EOQ1","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
160
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8buv8","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"130723a837403535e78a26f86133e6c5","currency":"AUD","transaction_id":"071-P-9J14EOQ1","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:08+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P9J14EOQ1","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"747315","id":"071-P-4MD0OI2B","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
161
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8cm9l","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"720b4b2b973517dd99f8e4b6838597a0","currency":"AUD","transaction_id":"071-P-4MD0OI2B","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:07+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P4MD0OI2B","cvv_match":"M","metadata":{},"addendum_data":{}}],"errors":[],"test":true,"records":10,"total_records":869520,"page":0,"total_pages":86952}'
|
162
|
+
http_version:
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:51 GMT
|
164
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,164 @@
|
|
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":"2be321ad7910bc905466e28c32086dd4-0","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, 25 Jul 2018 03:20:55 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
X-Request-Version:
|
38
|
+
- 1.16.9-3480@96677e4
|
39
|
+
X-Runtime:
|
40
|
+
- '0.560859'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 0136b1adbd17e1cba91cce2a
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"authorization":"229739","id":"071-P-QIJ7O85O","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8mk4y","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2be321ad7910bc905466e28c32086dd4-0","currency":"AUD","transaction_id":"071-P-QIJ7O85O","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:54+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PQIJ7O85O","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:52 GMT
|
53
|
+
- request:
|
54
|
+
method: post
|
55
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"2f616bc0336de4f12977250329423776-1","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
59
|
+
headers:
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- application/json
|
64
|
+
User-Agent:
|
65
|
+
- Ruby
|
66
|
+
Authorization:
|
67
|
+
- Basic VEVTVDpURVNU
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Date:
|
76
|
+
- Wed, 25 Jul 2018 03:20:56 GMT
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
Connection:
|
82
|
+
- keep-alive
|
83
|
+
Status:
|
84
|
+
- 200 OK
|
85
|
+
Cache-Control:
|
86
|
+
- no-store
|
87
|
+
X-Request-Version:
|
88
|
+
- 1.16.9-3480@96677e4
|
89
|
+
X-Runtime:
|
90
|
+
- '0.555566'
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 76bd95c4513b14155d4c0d4d
|
95
|
+
X-Backend:
|
96
|
+
- sbox-priv-gateway-a
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: '{"successful":true,"response":{"authorization":"751040","id":"071-P-N04VZUPG","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
100
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8dg41","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2f616bc0336de4f12977250329423776-1","currency":"AUD","transaction_id":"071-P-N04VZUPG","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:56+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PN04VZUPG","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:53 GMT
|
103
|
+
- request:
|
104
|
+
method: get
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&offset=0&test=true
|
106
|
+
body:
|
107
|
+
encoding: US-ASCII
|
108
|
+
string: ''
|
109
|
+
headers:
|
110
|
+
Accept-Encoding:
|
111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
+
Accept:
|
113
|
+
- application/json
|
114
|
+
User-Agent:
|
115
|
+
- Ruby
|
116
|
+
Host:
|
117
|
+
- gateway.sandbox.fatzebra.com.au
|
118
|
+
Authorization:
|
119
|
+
- Basic VEVTVDpURVNU
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
response:
|
123
|
+
status:
|
124
|
+
code: 200
|
125
|
+
message: OK
|
126
|
+
headers:
|
127
|
+
Date:
|
128
|
+
- Wed, 25 Jul 2018 03:20:56 GMT
|
129
|
+
Content-Type:
|
130
|
+
- application/json; charset=utf-8
|
131
|
+
Transfer-Encoding:
|
132
|
+
- chunked
|
133
|
+
Connection:
|
134
|
+
- keep-alive
|
135
|
+
Status:
|
136
|
+
- 200 OK
|
137
|
+
Cache-Control:
|
138
|
+
- no-store
|
139
|
+
X-Request-Version:
|
140
|
+
- 1.16.9-3480@96677e4
|
141
|
+
X-Runtime:
|
142
|
+
- '0.310549'
|
143
|
+
Pragma:
|
144
|
+
- no-cache
|
145
|
+
X-Request-Id:
|
146
|
+
- b6cb8695ac3925bc7961d92d
|
147
|
+
X-Backend:
|
148
|
+
- sbox-priv-gateway-a
|
149
|
+
body:
|
150
|
+
encoding: UTF-8
|
151
|
+
string: '{"successful":true,"response":[{"authorization":"751040","id":"071-P-N04VZUPG","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
152
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8dg41","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2f616bc0336de4f12977250329423776-1","currency":"AUD","transaction_id":"071-P-N04VZUPG","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:56+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PN04VZUPG","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"229739","id":"071-P-QIJ7O85O","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
153
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8mk4y","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2be321ad7910bc905466e28c32086dd4-0","currency":"AUD","transaction_id":"071-P-QIJ7O85O","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:54+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PQIJ7O85O","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"712936","id":"071-P-GNTZ09FO","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
154
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke874ku","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2ce2711cd9ec517b0d0b84cfec87728e-1","currency":"AUD","transaction_id":"071-P-GNTZ09FO","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:53+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PGNTZ09FO","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"845339","id":"071-P-L3B1MG56","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
155
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8vew0","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"70aa7bec819135204e721eb77730d785-0","currency":"AUD","transaction_id":"071-P-L3B1MG56","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:52+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PL3B1MG56","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"757699","id":"071-P-LGU7LH7B","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
156
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8fbtu","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"afc577b654d01e1504294ca5f42869e0","currency":"AUD","transaction_id":"071-P-LGU7LH7B","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:18+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PLGU7LH7B","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"488859","id":"071-P-6SF0VIU","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
157
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8w0w1","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"09a614e67f7d317500a9c35b2ccb3910","currency":"AUD","transaction_id":"071-P-6SF0VIU","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:17+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P6SF0VIU","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"847943","id":"071-P-F0NJD3SX","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
158
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8xeeo","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"98cadad8e947bff527d1ddded483008e","currency":"AUD","transaction_id":"071-P-F0NJD3SX","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:15+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PF0NJD3SX","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"274526","id":"071-P-CLRKEVFQ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
159
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8nae9","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"3174d503c1ef0ffd564f9561dfdd37c9","currency":"AUD","transaction_id":"071-P-CLRKEVFQ","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:14+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PCLRKEVFQ","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"692006","id":"071-P-HB9D4R4P","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
160
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke82jeo","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"4e145875f7e470089e610dbccf16500a","currency":"AUD","transaction_id":"071-P-HB9D4R4P","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:12+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PHB9D4R4P","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"917129","id":"071-P-YZZF970U","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
161
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8i5l5","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"fbb82fe2d179e0c2527dc51d9fa7d4d9","currency":"AUD","transaction_id":"071-P-YZZF970U","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:10+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PYZZF970U","cvv_match":"M","metadata":{},"addendum_data":{}}],"errors":[],"test":true,"records":10,"total_records":869522,"page":0,"total_pages":86953}'
|
162
|
+
http_version:
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:54 GMT
|
164
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,164 @@
|
|
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":"e233e75ba027a0fc97d84c82b19fb61f-0","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, 25 Jul 2018 03:20:58 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.16.9-3480@96677e4
|
39
|
+
X-Runtime:
|
40
|
+
- '0.604213'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- e069c2d6020e644f042802eb
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"authorization":"923105","id":"071-P-20IJLHOM","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8bfah","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"e233e75ba027a0fc97d84c82b19fb61f-0","currency":"AUD","transaction_id":"071-P-20IJLHOM","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:57+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P20IJLHOM","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:55 GMT
|
53
|
+
- request:
|
54
|
+
method: post
|
55
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"f5acc413a70da9763d5c40b3637b2cd8-1","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
59
|
+
headers:
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- application/json
|
64
|
+
User-Agent:
|
65
|
+
- Ruby
|
66
|
+
Authorization:
|
67
|
+
- Basic VEVTVDpURVNU
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Date:
|
76
|
+
- Wed, 25 Jul 2018 03:20:59 GMT
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
Connection:
|
82
|
+
- keep-alive
|
83
|
+
Status:
|
84
|
+
- 200 OK
|
85
|
+
Cache-Control:
|
86
|
+
- no-store
|
87
|
+
X-Request-Version:
|
88
|
+
- 1.16.9-3480@96677e4
|
89
|
+
X-Runtime:
|
90
|
+
- '0.528841'
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 2b7de1f6bb4879d8a4b7b837
|
95
|
+
X-Backend:
|
96
|
+
- sbox-priv-gateway-a
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: '{"successful":true,"response":{"authorization":"167520","id":"071-P-7VBN6E18","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
100
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86h2g","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"f5acc413a70da9763d5c40b3637b2cd8-1","currency":"AUD","transaction_id":"071-P-7VBN6E18","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:58+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P7VBN6E18","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:56 GMT
|
103
|
+
- request:
|
104
|
+
method: get
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&offset=0&test=true
|
106
|
+
body:
|
107
|
+
encoding: US-ASCII
|
108
|
+
string: ''
|
109
|
+
headers:
|
110
|
+
Accept-Encoding:
|
111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
+
Accept:
|
113
|
+
- application/json
|
114
|
+
User-Agent:
|
115
|
+
- Ruby
|
116
|
+
Host:
|
117
|
+
- gateway.sandbox.fatzebra.com.au
|
118
|
+
Authorization:
|
119
|
+
- Basic VEVTVDpURVNU
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
response:
|
123
|
+
status:
|
124
|
+
code: 200
|
125
|
+
message: OK
|
126
|
+
headers:
|
127
|
+
Date:
|
128
|
+
- Wed, 25 Jul 2018 03:20:59 GMT
|
129
|
+
Content-Type:
|
130
|
+
- application/json; charset=utf-8
|
131
|
+
Transfer-Encoding:
|
132
|
+
- chunked
|
133
|
+
Connection:
|
134
|
+
- keep-alive
|
135
|
+
Status:
|
136
|
+
- 200 OK
|
137
|
+
Cache-Control:
|
138
|
+
- no-store
|
139
|
+
X-Request-Version:
|
140
|
+
- 1.16.9-3480@96677e4
|
141
|
+
X-Runtime:
|
142
|
+
- '0.300372'
|
143
|
+
Pragma:
|
144
|
+
- no-cache
|
145
|
+
X-Request-Id:
|
146
|
+
- 74fd0cb6aa5c5fdb74b45736
|
147
|
+
X-Backend:
|
148
|
+
- sbox-priv-gateway-a
|
149
|
+
body:
|
150
|
+
encoding: UTF-8
|
151
|
+
string: '{"successful":true,"response":[{"authorization":"167520","id":"071-P-7VBN6E18","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
152
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86h2g","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"f5acc413a70da9763d5c40b3637b2cd8-1","currency":"AUD","transaction_id":"071-P-7VBN6E18","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:58+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P7VBN6E18","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"923105","id":"071-P-20IJLHOM","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
153
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8bfah","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"e233e75ba027a0fc97d84c82b19fb61f-0","currency":"AUD","transaction_id":"071-P-20IJLHOM","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:57+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P20IJLHOM","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"751040","id":"071-P-N04VZUPG","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
154
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8dg41","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2f616bc0336de4f12977250329423776-1","currency":"AUD","transaction_id":"071-P-N04VZUPG","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:56+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PN04VZUPG","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"229739","id":"071-P-QIJ7O85O","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
155
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8mk4y","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2be321ad7910bc905466e28c32086dd4-0","currency":"AUD","transaction_id":"071-P-QIJ7O85O","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:54+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PQIJ7O85O","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"712936","id":"071-P-GNTZ09FO","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
156
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke874ku","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2ce2711cd9ec517b0d0b84cfec87728e-1","currency":"AUD","transaction_id":"071-P-GNTZ09FO","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:53+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PGNTZ09FO","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"845339","id":"071-P-L3B1MG56","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
157
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8vew0","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"70aa7bec819135204e721eb77730d785-0","currency":"AUD","transaction_id":"071-P-L3B1MG56","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:20:52+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PL3B1MG56","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"757699","id":"071-P-LGU7LH7B","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
158
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8fbtu","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"afc577b654d01e1504294ca5f42869e0","currency":"AUD","transaction_id":"071-P-LGU7LH7B","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:18+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PLGU7LH7B","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"488859","id":"071-P-6SF0VIU","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
159
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8w0w1","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"09a614e67f7d317500a9c35b2ccb3910","currency":"AUD","transaction_id":"071-P-6SF0VIU","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:17+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P6SF0VIU","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"847943","id":"071-P-F0NJD3SX","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
160
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8xeeo","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"98cadad8e947bff527d1ddded483008e","currency":"AUD","transaction_id":"071-P-F0NJD3SX","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:15+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PF0NJD3SX","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"274526","id":"071-P-CLRKEVFQ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
161
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8nae9","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"3174d503c1ef0ffd564f9561dfdd37c9","currency":"AUD","transaction_id":"071-P-CLRKEVFQ","settlement_date":"2018-07-25","transaction_date":"2018-07-25T13:17:14+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PCLRKEVFQ","cvv_match":"M","metadata":{},"addendum_data":{}}],"errors":[],"test":true,"records":10,"total_records":869524,"page":0,"total_pages":86953}'
|
162
|
+
http_version:
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:57 GMT
|
164
|
+
recorded_with: VCR 3.0.3
|