fat_zebra 3.0.10 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.rubocop.yml +3 -5
- data/.travis.yml +3 -3
- data/README.md +5 -5
- data/fat_zebra.gemspec +5 -5
- data/lib/fat_zebra.rb +8 -0
- data/lib/fat_zebra/api_operation/search.rb +1 -1
- data/lib/fat_zebra/authenticate.rb +64 -0
- data/lib/fat_zebra/batch.rb +3 -1
- data/lib/fat_zebra/card.rb +1 -0
- data/lib/fat_zebra/direct_credit.rb +1 -1
- data/lib/fat_zebra/direct_debit.rb +1 -1
- data/lib/fat_zebra/paypal/authorization.rb +49 -0
- data/lib/fat_zebra/paypal/billing_agreement.rb +56 -0
- data/lib/fat_zebra/paypal/capture.rb +36 -0
- data/lib/fat_zebra/paypal/order.rb +22 -0
- data/lib/fat_zebra/paypal/refund.rb +22 -0
- data/lib/fat_zebra/refund.rb +4 -0
- data/lib/fat_zebra/validation.rb +4 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml +46 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml +90 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml +90 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml +90 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml +90 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml +90 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml +87 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml +92 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml +91 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_type_validation/1_3_4_1.yml +46 -0
- data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml +47 -0
- data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml +87 -0
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml +44 -0
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_amount.yml +44 -0
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml +44 -0
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml +46 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +7 -9
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +7 -9
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +32 -38
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +32 -38
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +32 -38
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +10 -14
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +10 -14
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +10 -14
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +10 -14
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +18 -24
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +18 -24
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +26 -34
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +8 -10
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +8 -10
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +8 -10
- data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +7 -9
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +7 -9
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +7 -9
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +7 -9
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +7 -9
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +7 -9
- data/spec/cassettes/FatZebra_Card/_find/1_3_1.yml +111 -0
- data/spec/cassettes/FatZebra_Card/_find/1_3_2.yml +111 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +14 -18
- data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +14 -18
- data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +14 -18
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +7 -9
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +8 -10
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +8 -10
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +8 -10
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +8 -10
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +8 -10
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +8 -10
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +16 -20
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +17 -21
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +17 -21
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +14 -20
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +14 -20
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +14 -20
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +17 -21
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +17 -21
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +7 -9
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +7 -9
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +7 -9
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +7 -9
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +6 -8
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +14 -18
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +15 -19
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +15 -19
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +22 -28
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +22 -28
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +7 -9
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +7 -9
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +7 -9
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +7 -9
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +6 -8
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +14 -18
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +15 -19
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +15 -19
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +22 -28
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +22 -28
- data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +7 -9
- data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +7 -9
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +48 -56
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +48 -56
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +20 -24
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +20 -24
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +20 -24
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +28 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +28 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +33 -39
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +33 -39
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +33 -39
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +34 -40
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +34 -40
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +28 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +28 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +28 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +34 -40
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +34 -40
- data/spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml +45 -0
- data/spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml +46 -0
- data/spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml +46 -0
- data/spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml +44 -0
- data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml +48 -0
- data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml +48 -0
- data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml +48 -0
- data/spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml +47 -0
- data/spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml +45 -0
- data/spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml +49 -0
- data/spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml +48 -0
- data/spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml +55 -0
- data/spec/cassettes/FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml +47 -0
- data/spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml +50 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +30 -22
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +30 -22
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml +30 -22
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +8 -10
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +10 -12
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +10 -12
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +31 -23
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +31 -23
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +31 -23
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_4.yml +31 -23
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +30 -22
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +30 -22
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_3.yml +30 -22
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +34 -40
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +34 -40
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +34 -40
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +523 -511
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +523 -511
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +523 -511
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +16 -20
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +16 -20
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +16 -20
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +16 -20
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +16 -20
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +16 -20
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +16 -20
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +16 -20
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +25 -31
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +25 -31
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +25 -31
- 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 +24 -30
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +24 -30
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +24 -30
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +24 -30
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +6 -8
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +6 -8
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +6 -8
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +13 -17
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +163 -43
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +165 -45
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +13 -17
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +13 -17
- data/spec/lib/fat_zebra/authenticate_spec.rb +187 -0
- data/spec/lib/fat_zebra/card_spec.rb +8 -0
- data/spec/lib/fat_zebra/direct_credit_spec.rb +14 -1
- data/spec/lib/fat_zebra/direct_debit_spec.rb +14 -1
- data/spec/lib/fat_zebra/payment_plan_spec.rb +1 -1
- data/spec/lib/fat_zebra/paypal/authorization_spec.rb +79 -0
- data/spec/lib/fat_zebra/paypal/billing_agreement_spec.rb +62 -0
- data/spec/lib/fat_zebra/paypal/capture_spec.rb +60 -0
- data/spec/lib/fat_zebra/paypal/order_spec.rb +35 -0
- data/spec/lib/fat_zebra/paypal/refund_spec.rb +36 -0
- data/spec/lib/fat_zebra/purchase_spec.rb +3 -3
- data/spec/lib/fat_zebra/refund_spec.rb +37 -17
- data/spec/spec_helper.rb +0 -1
- data/spec/support/payloads.rb +135 -0
- metadata +59 -15
- data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +0 -275
- data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +0 -275
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"c6a2fc0a3af60097d7785a246464cc83","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Tue, 08 May 2018 11:07:29 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -32,32 +32,36 @@ http_interactions:
|
|
32
32
|
- keep-alive
|
33
33
|
Status:
|
34
34
|
- 200 OK
|
35
|
-
X-Rack-Cache:
|
36
|
-
- invalidate, pass
|
37
35
|
Cache-Control:
|
38
36
|
- no-store
|
39
37
|
X-Request-Version:
|
40
|
-
- 1.16.9-
|
41
|
-
X-Runtime:
|
42
|
-
- '0.574003'
|
38
|
+
- 1.16.9-3186@7b619da
|
43
39
|
Pragma:
|
44
40
|
- no-cache
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
45
43
|
X-Request-Id:
|
46
|
-
-
|
44
|
+
- aee5c82669d43710eeccaca6
|
45
|
+
X-Runtime:
|
46
|
+
- '0.531728'
|
47
|
+
X-Frame-Options:
|
48
|
+
- SAMEORIGIN
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
47
51
|
X-Backend:
|
48
52
|
- sbox-priv-gateway-a
|
49
53
|
body:
|
50
54
|
encoding: UTF-8
|
51
|
-
string: '{"successful":true,"response":{"authorization":"
|
52
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
55
|
+
string: '{"successful":true,"response":{"authorization":"410528","id":"071-P-U2XVH8XR","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
56
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8b9e8","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"c6a2fc0a3af60097d7785a246464cc83","currency":"AUD","transaction_id":"071-P-U2XVH8XR","settlement_date":"2018-05-08","transaction_date":"2018-05-08T21:07:29.371+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PU2XVH8XR","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
57
|
http_version:
|
54
|
-
recorded_at:
|
58
|
+
recorded_at: Tue, 08 May 2018 11:07:29 GMT
|
55
59
|
- request:
|
56
60
|
method: post
|
57
61
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
58
62
|
body:
|
59
63
|
encoding: UTF-8
|
60
|
-
string: '{"transaction_id":"071-P-
|
64
|
+
string: '{"transaction_id":"071-P-U2XVH8XR","amount":10000,"reference":"c6a2fc0a3af60097d7785a246464cc83","test":true}'
|
61
65
|
headers:
|
62
66
|
Accept-Encoding:
|
63
67
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -75,7 +79,7 @@ http_interactions:
|
|
75
79
|
message: OK
|
76
80
|
headers:
|
77
81
|
Date:
|
78
|
-
-
|
82
|
+
- Tue, 08 May 2018 11:07:29 GMT
|
79
83
|
Content-Type:
|
80
84
|
- application/json; charset=utf-8
|
81
85
|
Transfer-Encoding:
|
@@ -84,24 +88,28 @@ http_interactions:
|
|
84
88
|
- keep-alive
|
85
89
|
Status:
|
86
90
|
- 200 OK
|
87
|
-
X-Rack-Cache:
|
88
|
-
- invalidate, pass
|
89
91
|
Cache-Control:
|
90
92
|
- no-store
|
91
93
|
X-Request-Version:
|
92
|
-
- 1.16.9-
|
93
|
-
X-Runtime:
|
94
|
-
- '0.131395'
|
94
|
+
- 1.16.9-3186@7b619da
|
95
95
|
Pragma:
|
96
96
|
- no-cache
|
97
|
+
X-Xss-Protection:
|
98
|
+
- 1; mode=block
|
97
99
|
X-Request-Id:
|
98
|
-
-
|
100
|
+
- 83ed191c6c3e8102167d13b6
|
101
|
+
X-Runtime:
|
102
|
+
- '0.149309'
|
103
|
+
X-Frame-Options:
|
104
|
+
- SAMEORIGIN
|
105
|
+
X-Content-Type-Options:
|
106
|
+
- nosniff
|
99
107
|
X-Backend:
|
100
108
|
- sbox-priv-gateway-a
|
101
109
|
body:
|
102
110
|
encoding: UTF-8
|
103
|
-
string: '{"successful":true,"response":{"authorization":
|
104
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
111
|
+
string: '{"successful":true,"response":{"authorization":"1525777649","id":"071-R-1RP3UD72","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-1RP3UD72","reference":"c6a2fc0a3af60097d7785a246464cc83","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:07:29.613+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071R1RP3UD72"},"errors":[],"test":true}'
|
105
113
|
http_version:
|
106
|
-
recorded_at:
|
114
|
+
recorded_at: Tue, 08 May 2018 11:07:29 GMT
|
107
115
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"9ebbb5aa3a1d9b306c4c34be7753df2d","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Tue, 08 May 2018 11:07:30 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -32,32 +32,36 @@ http_interactions:
|
|
32
32
|
- keep-alive
|
33
33
|
Status:
|
34
34
|
- 200 OK
|
35
|
-
X-Rack-Cache:
|
36
|
-
- invalidate, pass
|
37
35
|
Cache-Control:
|
38
36
|
- no-store
|
39
37
|
X-Request-Version:
|
40
|
-
- 1.16.9-
|
41
|
-
X-Runtime:
|
42
|
-
- '0.553570'
|
38
|
+
- 1.16.9-3186@7b619da
|
43
39
|
Pragma:
|
44
40
|
- no-cache
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
45
43
|
X-Request-Id:
|
46
|
-
-
|
44
|
+
- 8ae1ce09e336ccda06f086ca
|
45
|
+
X-Runtime:
|
46
|
+
- '0.557156'
|
47
|
+
X-Frame-Options:
|
48
|
+
- SAMEORIGIN
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
47
51
|
X-Backend:
|
48
52
|
- sbox-priv-gateway-a
|
49
53
|
body:
|
50
54
|
encoding: UTF-8
|
51
|
-
string: '{"successful":true,"response":{"authorization":"
|
52
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
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}'
|
53
57
|
http_version:
|
54
|
-
recorded_at:
|
58
|
+
recorded_at: Tue, 08 May 2018 11:07:30 GMT
|
55
59
|
- request:
|
56
60
|
method: post
|
57
61
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
58
62
|
body:
|
59
63
|
encoding: UTF-8
|
60
|
-
string: '{"transaction_id":"071-P-
|
64
|
+
string: '{"transaction_id":"071-P-FRGFG2PH","amount":10000,"reference":"9ebbb5aa3a1d9b306c4c34be7753df2d","test":true}'
|
61
65
|
headers:
|
62
66
|
Accept-Encoding:
|
63
67
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -75,7 +79,7 @@ http_interactions:
|
|
75
79
|
message: OK
|
76
80
|
headers:
|
77
81
|
Date:
|
78
|
-
-
|
82
|
+
- Tue, 08 May 2018 11:07:30 GMT
|
79
83
|
Content-Type:
|
80
84
|
- application/json; charset=utf-8
|
81
85
|
Transfer-Encoding:
|
@@ -84,24 +88,28 @@ http_interactions:
|
|
84
88
|
- keep-alive
|
85
89
|
Status:
|
86
90
|
- 200 OK
|
87
|
-
X-Rack-Cache:
|
88
|
-
- invalidate, pass
|
89
91
|
Cache-Control:
|
90
92
|
- no-store
|
91
93
|
X-Request-Version:
|
92
|
-
- 1.16.9-
|
93
|
-
X-Runtime:
|
94
|
-
- '0.146359'
|
94
|
+
- 1.16.9-3186@7b619da
|
95
95
|
Pragma:
|
96
96
|
- no-cache
|
97
|
+
X-Xss-Protection:
|
98
|
+
- 1; mode=block
|
97
99
|
X-Request-Id:
|
98
|
-
-
|
100
|
+
- 44d7ea0afef52be31f231d06
|
101
|
+
X-Runtime:
|
102
|
+
- '0.121555'
|
103
|
+
X-Frame-Options:
|
104
|
+
- SAMEORIGIN
|
105
|
+
X-Content-Type-Options:
|
106
|
+
- nosniff
|
99
107
|
X-Backend:
|
100
108
|
- sbox-priv-gateway-a
|
101
109
|
body:
|
102
110
|
encoding: UTF-8
|
103
|
-
string: '{"successful":true,"response":{"authorization":
|
104
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
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}'
|
105
113
|
http_version:
|
106
|
-
recorded_at:
|
114
|
+
recorded_at: Tue, 08 May 2018 11:07:30 GMT
|
107
115
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"70aa7bec819135204e721eb77730d785-0","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
- Wed,
|
26
|
+
- Wed, 25 Jul 2018 03:20:52 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -32,32 +32,30 @@ http_interactions:
|
|
32
32
|
- keep-alive
|
33
33
|
Status:
|
34
34
|
- 200 OK
|
35
|
-
X-Rack-Cache:
|
36
|
-
- invalidate, pass
|
37
35
|
Cache-Control:
|
38
36
|
- no-store
|
39
37
|
X-Request-Version:
|
40
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3480@96677e4
|
41
39
|
X-Runtime:
|
42
|
-
- '0.
|
40
|
+
- '0.547144'
|
43
41
|
Pragma:
|
44
42
|
- no-cache
|
45
43
|
X-Request-Id:
|
46
|
-
-
|
44
|
+
- fc9d771dfd1c7cc616c32e9f
|
47
45
|
X-Backend:
|
48
46
|
- sbox-priv-gateway-a
|
49
47
|
body:
|
50
48
|
encoding: UTF-8
|
51
|
-
string: '{"successful":true,"response":{"authorization":"
|
52
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
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}'
|
53
51
|
http_version:
|
54
|
-
recorded_at: Wed,
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:50 GMT
|
55
53
|
- request:
|
56
54
|
method: post
|
57
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
58
56
|
body:
|
59
57
|
encoding: UTF-8
|
60
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
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}'
|
61
59
|
headers:
|
62
60
|
Accept-Encoding:
|
63
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -75,7 +73,7 @@ http_interactions:
|
|
75
73
|
message: OK
|
76
74
|
headers:
|
77
75
|
Date:
|
78
|
-
- Wed,
|
76
|
+
- Wed, 25 Jul 2018 03:20:53 GMT
|
79
77
|
Content-Type:
|
80
78
|
- application/json; charset=utf-8
|
81
79
|
Transfer-Encoding:
|
@@ -84,29 +82,27 @@ http_interactions:
|
|
84
82
|
- keep-alive
|
85
83
|
Status:
|
86
84
|
- 200 OK
|
87
|
-
X-Rack-Cache:
|
88
|
-
- invalidate, pass
|
89
85
|
Cache-Control:
|
90
86
|
- no-store
|
91
87
|
X-Request-Version:
|
92
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3480@96677e4
|
93
89
|
X-Runtime:
|
94
|
-
- '0.
|
90
|
+
- '0.584053'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
93
|
X-Request-Id:
|
98
|
-
-
|
94
|
+
- f2f536485d78c00788b46c9a
|
99
95
|
X-Backend:
|
100
96
|
- sbox-priv-gateway-a
|
101
97
|
body:
|
102
98
|
encoding: UTF-8
|
103
|
-
string: '{"successful":true,"response":{"authorization":"
|
104
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
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}'
|
105
101
|
http_version:
|
106
|
-
recorded_at: Wed,
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:50 GMT
|
107
103
|
- request:
|
108
104
|
method: get
|
109
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&offset=0&test=true
|
110
106
|
body:
|
111
107
|
encoding: US-ASCII
|
112
108
|
string: ''
|
@@ -129,7 +125,7 @@ http_interactions:
|
|
129
125
|
message: OK
|
130
126
|
headers:
|
131
127
|
Date:
|
132
|
-
- Wed,
|
128
|
+
- Wed, 25 Jul 2018 03:20:54 GMT
|
133
129
|
Content-Type:
|
134
130
|
- application/json; charset=utf-8
|
135
131
|
Transfer-Encoding:
|
@@ -138,33 +134,31 @@ http_interactions:
|
|
138
134
|
- keep-alive
|
139
135
|
Status:
|
140
136
|
- 200 OK
|
141
|
-
X-Rack-Cache:
|
142
|
-
- miss
|
143
137
|
Cache-Control:
|
144
|
-
- no-store
|
138
|
+
- no-store
|
145
139
|
X-Request-Version:
|
146
|
-
- 1.16.9-
|
140
|
+
- 1.16.9-3480@96677e4
|
147
141
|
X-Runtime:
|
148
|
-
- '0.
|
142
|
+
- '0.309727'
|
149
143
|
Pragma:
|
150
144
|
- no-cache
|
151
145
|
X-Request-Id:
|
152
|
-
-
|
146
|
+
- ddc3e4b192a026ea259cd3cd
|
153
147
|
X-Backend:
|
154
148
|
- sbox-priv-gateway-a
|
155
149
|
body:
|
156
150
|
encoding: UTF-8
|
157
|
-
string: '{"successful":true,"response":[{"authorization":"
|
158
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
159
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
160
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
161
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
162
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
163
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
164
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
165
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
166
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
167
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
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}'
|
168
162
|
http_version:
|
169
|
-
recorded_at: Wed,
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:51 GMT
|
170
164
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"2be321ad7910bc905466e28c32086dd4-0","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
- Wed,
|
26
|
+
- Wed, 25 Jul 2018 03:20:55 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -32,32 +32,30 @@ http_interactions:
|
|
32
32
|
- keep-alive
|
33
33
|
Status:
|
34
34
|
- 200 OK
|
35
|
-
X-Rack-Cache:
|
36
|
-
- invalidate, pass
|
37
35
|
Cache-Control:
|
38
36
|
- no-store
|
39
37
|
X-Request-Version:
|
40
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3480@96677e4
|
41
39
|
X-Runtime:
|
42
|
-
- '0.
|
40
|
+
- '0.560859'
|
43
41
|
Pragma:
|
44
42
|
- no-cache
|
45
43
|
X-Request-Id:
|
46
|
-
-
|
44
|
+
- 0136b1adbd17e1cba91cce2a
|
47
45
|
X-Backend:
|
48
46
|
- sbox-priv-gateway-a
|
49
47
|
body:
|
50
48
|
encoding: UTF-8
|
51
|
-
string: '{"successful":true,"response":{"authorization":"
|
52
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
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}'
|
53
51
|
http_version:
|
54
|
-
recorded_at: Wed,
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:52 GMT
|
55
53
|
- request:
|
56
54
|
method: post
|
57
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
58
56
|
body:
|
59
57
|
encoding: UTF-8
|
60
|
-
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"
|
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}'
|
61
59
|
headers:
|
62
60
|
Accept-Encoding:
|
63
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -75,7 +73,7 @@ http_interactions:
|
|
75
73
|
message: OK
|
76
74
|
headers:
|
77
75
|
Date:
|
78
|
-
- Wed,
|
76
|
+
- Wed, 25 Jul 2018 03:20:56 GMT
|
79
77
|
Content-Type:
|
80
78
|
- application/json; charset=utf-8
|
81
79
|
Transfer-Encoding:
|
@@ -84,29 +82,27 @@ http_interactions:
|
|
84
82
|
- keep-alive
|
85
83
|
Status:
|
86
84
|
- 200 OK
|
87
|
-
X-Rack-Cache:
|
88
|
-
- invalidate, pass
|
89
85
|
Cache-Control:
|
90
86
|
- no-store
|
91
87
|
X-Request-Version:
|
92
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3480@96677e4
|
93
89
|
X-Runtime:
|
94
|
-
- '0.
|
90
|
+
- '0.555566'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
93
|
X-Request-Id:
|
98
|
-
-
|
94
|
+
- 76bd95c4513b14155d4c0d4d
|
99
95
|
X-Backend:
|
100
96
|
- sbox-priv-gateway-a
|
101
97
|
body:
|
102
98
|
encoding: UTF-8
|
103
|
-
string: '{"successful":true,"response":{"authorization":"
|
104
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
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}'
|
105
101
|
http_version:
|
106
|
-
recorded_at: Wed,
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:53 GMT
|
107
103
|
- request:
|
108
104
|
method: get
|
109
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&offset=0&test=true
|
110
106
|
body:
|
111
107
|
encoding: US-ASCII
|
112
108
|
string: ''
|
@@ -129,7 +125,7 @@ http_interactions:
|
|
129
125
|
message: OK
|
130
126
|
headers:
|
131
127
|
Date:
|
132
|
-
- Wed,
|
128
|
+
- Wed, 25 Jul 2018 03:20:56 GMT
|
133
129
|
Content-Type:
|
134
130
|
- application/json; charset=utf-8
|
135
131
|
Transfer-Encoding:
|
@@ -138,33 +134,31 @@ http_interactions:
|
|
138
134
|
- keep-alive
|
139
135
|
Status:
|
140
136
|
- 200 OK
|
141
|
-
X-Rack-Cache:
|
142
|
-
- miss
|
143
137
|
Cache-Control:
|
144
|
-
- no-store
|
138
|
+
- no-store
|
145
139
|
X-Request-Version:
|
146
|
-
- 1.16.9-
|
140
|
+
- 1.16.9-3480@96677e4
|
147
141
|
X-Runtime:
|
148
|
-
- '0.
|
142
|
+
- '0.310549'
|
149
143
|
Pragma:
|
150
144
|
- no-cache
|
151
145
|
X-Request-Id:
|
152
|
-
-
|
146
|
+
- b6cb8695ac3925bc7961d92d
|
153
147
|
X-Backend:
|
154
148
|
- sbox-priv-gateway-a
|
155
149
|
body:
|
156
150
|
encoding: UTF-8
|
157
|
-
string: '{"successful":true,"response":[{"authorization":"
|
158
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
159
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
160
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
161
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
162
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
163
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
164
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
165
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
166
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
167
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
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}'
|
168
162
|
http_version:
|
169
|
-
recorded_at: Wed,
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:54 GMT
|
170
164
|
recorded_with: VCR 3.0.3
|