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,53 @@
|
|
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":"07b568aeff956496dafd612fd8c82b16","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
|
+
- Mon, 29 Apr 2019 09:24:16 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.573585'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 944cb9e4b5f3187c99f8a5b4
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"authorization":"100942","id":"071-P-CL9BQJRX","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"pwxilmo454d29l9bh88p","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"07b568aeff956496dafd612fd8c82b16","currency":"AUD","transaction_id":"071-P-CL9BQJRX","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:16+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PCL9BQJRX","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 29 Apr 2019 09:24:16 GMT
|
53
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,53 @@
|
|
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":"216d24ee115042b18ca3ec751fddae3b","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
|
+
- Mon, 29 Apr 2019 09:24:17 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.570520'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 14a05d8434b8ab802d774ccc
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"authorization":"881501","id":"071-P-1H3CDQ2K","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"so97afnjk6iohmd7blae","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"216d24ee115042b18ca3ec751fddae3b","currency":"AUD","transaction_id":"071-P-1H3CDQ2K","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:24:17+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P1H3CDQ2K","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 29 Apr 2019 09:24:17 GMT
|
53
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,55 @@
|
|
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":"64a668464b54bd43e670c6603b6a1430","customer_ip":"1.2.3.4","currency":"XXX","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
|
+
- Mon, 29 Apr 2019 09:24:20 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.422949'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 794525c02e58989c04525dfc
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":false,"response":{"authorization":null,"id":"071-P-YO4NZUU","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"1ri596z2qflb20p6prly","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":null,"reference":"64a668464b54bd43e670c6603b6a1430","currency":"XXX","transaction_id":"071-P-YO4NZUU","settlement_date":null,"transaction_date":null,"response_code":"99","captured":false,"captured_amount":null,"rrn":null,"cvv_match":"U","metadata":{},"addendum_data":{}},"errors":["Currency
|
51
|
+
XXX is not valid for this merchant. Permitted currencies: USD, EUR, GBP, AUD,
|
52
|
+
CAD, JPY, CHF, HKD, NZD, SGD, and JPY"],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:24:20 GMT
|
55
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,55 @@
|
|
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":"5f5575ebbb1b9c410ea0410cea23f9e2","customer_ip":"1.2.3.4","currency":"XXX","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
|
+
- Mon, 29 Apr 2019 09:24:20 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-3941@c1d8236
|
39
|
+
X-Runtime:
|
40
|
+
- '0.437976'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 38a408b894c4098c23507ea4
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":false,"response":{"authorization":null,"id":"071-P-5HF0IZH","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"8ikhzx7b8j89ruxmclu5","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":null,"reference":"5f5575ebbb1b9c410ea0410cea23f9e2","currency":"XXX","transaction_id":"071-P-5HF0IZH","settlement_date":null,"transaction_date":null,"response_code":"99","captured":false,"captured_amount":null,"rrn":null,"cvv_match":"U","metadata":{},"addendum_data":{}},"errors":["Currency
|
51
|
+
XXX is not valid for this merchant. Permitted currencies: USD, EUR, GBP, AUD,
|
52
|
+
CAD, JPY, CHF, HKD, NZD, SGD, and JPY"],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:24:21 GMT
|
55
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,117 @@
|
|
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":"141facfb3d225f9bfff17c619f924e07","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:20 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
|
+
- 5f2bcb4a8fd24fdec98bde10
|
45
|
+
X-Runtime:
|
46
|
+
- '0.541332'
|
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":"549687","id":"071-P-YY1BRYOB","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
56
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke85e12","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"141facfb3d225f9bfff17c619f924e07","currency":"AUD","transaction_id":"071-P-YY1BRYOB","settlement_date":"2018-05-08","transaction_date":"2018-05-08T21:07:20.415+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PYY1BRYOB","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 08 May 2018 11:07:20 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/141facfb3d225f9bfff17c619f924e07?test=true
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
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
|
+
Host:
|
73
|
+
- gateway.sandbox.fatzebra.com.au
|
74
|
+
Authorization:
|
75
|
+
- Basic VEVTVDpURVNU
|
76
|
+
Content-Type:
|
77
|
+
- application/json
|
78
|
+
response:
|
79
|
+
status:
|
80
|
+
code: 200
|
81
|
+
message: OK
|
82
|
+
headers:
|
83
|
+
Date:
|
84
|
+
- Tue, 08 May 2018 11:07:20 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json; charset=utf-8
|
87
|
+
Transfer-Encoding:
|
88
|
+
- chunked
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Status:
|
92
|
+
- 200 OK
|
93
|
+
Cache-Control:
|
94
|
+
- no-store
|
95
|
+
X-Request-Version:
|
96
|
+
- 1.16.9-3186@7b619da
|
97
|
+
Pragma:
|
98
|
+
- no-cache
|
99
|
+
X-Xss-Protection:
|
100
|
+
- 1; mode=block
|
101
|
+
X-Request-Id:
|
102
|
+
- c5160598bd624028af8a6250
|
103
|
+
X-Runtime:
|
104
|
+
- '0.022355'
|
105
|
+
X-Frame-Options:
|
106
|
+
- SAMEORIGIN
|
107
|
+
X-Content-Type-Options:
|
108
|
+
- nosniff
|
109
|
+
X-Backend:
|
110
|
+
- sbox-priv-gateway-a
|
111
|
+
body:
|
112
|
+
encoding: UTF-8
|
113
|
+
string: '{"successful":true,"response":{"authorization":"549687","id":"071-P-YY1BRYOB","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
114
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke85e12","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"141facfb3d225f9bfff17c619f924e07","currency":"AUD","transaction_id":"071-P-YY1BRYOB","settlement_date":"2018-05-08","transaction_date":"2018-05-08T21:07:20.415+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PYY1BRYOB","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
115
|
+
http_version:
|
116
|
+
recorded_at: Tue, 08 May 2018 11:07:20 GMT
|
117
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,117 @@
|
|
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":"5fcc72968fec97615f0ca98661d23e11","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:21 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
|
+
- bc0010da34ca394eaf626338
|
45
|
+
X-Runtime:
|
46
|
+
- '0.571826'
|
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":"456775","id":"071-P-XWQOZDKT","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
56
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8ld74","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"5fcc72968fec97615f0ca98661d23e11","currency":"AUD","transaction_id":"071-P-XWQOZDKT","settlement_date":"2018-05-08","transaction_date":"2018-05-08T21:07:21.152+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PXWQOZDKT","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 08 May 2018 11:07:21 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/5fcc72968fec97615f0ca98661d23e11?test=true
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
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
|
+
Host:
|
73
|
+
- gateway.sandbox.fatzebra.com.au
|
74
|
+
Authorization:
|
75
|
+
- Basic VEVTVDpURVNU
|
76
|
+
Content-Type:
|
77
|
+
- application/json
|
78
|
+
response:
|
79
|
+
status:
|
80
|
+
code: 200
|
81
|
+
message: OK
|
82
|
+
headers:
|
83
|
+
Date:
|
84
|
+
- Tue, 08 May 2018 11:07:21 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json; charset=utf-8
|
87
|
+
Transfer-Encoding:
|
88
|
+
- chunked
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Status:
|
92
|
+
- 200 OK
|
93
|
+
Cache-Control:
|
94
|
+
- no-store
|
95
|
+
X-Request-Version:
|
96
|
+
- 1.16.9-3186@7b619da
|
97
|
+
Pragma:
|
98
|
+
- no-cache
|
99
|
+
X-Xss-Protection:
|
100
|
+
- 1; mode=block
|
101
|
+
X-Request-Id:
|
102
|
+
- 7568039c819ef52e145cb54a
|
103
|
+
X-Runtime:
|
104
|
+
- '0.019689'
|
105
|
+
X-Frame-Options:
|
106
|
+
- SAMEORIGIN
|
107
|
+
X-Content-Type-Options:
|
108
|
+
- nosniff
|
109
|
+
X-Backend:
|
110
|
+
- sbox-priv-gateway-a
|
111
|
+
body:
|
112
|
+
encoding: UTF-8
|
113
|
+
string: '{"successful":true,"response":{"authorization":"456775","id":"071-P-XWQOZDKT","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
114
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8ld74","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"5fcc72968fec97615f0ca98661d23e11","currency":"AUD","transaction_id":"071-P-XWQOZDKT","settlement_date":"2018-05-08","transaction_date":"2018-05-08T21:07:21.152+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PXWQOZDKT","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
115
|
+
http_version:
|
116
|
+
recorded_at: Tue, 08 May 2018 11:07:21 GMT
|
117
|
+
recorded_with: VCR 3.0.3
|