fat_zebra 2.0.13 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.rubocop.yml +42 -0
- data/.travis.yml +9 -2
- data/Gemfile +1 -1
- data/{README.markdown → README.md} +19 -20
- data/Rakefile +2 -12
- data/fat_zebra.gemspec +27 -0
- data/lib/fat_zebra/api_operation/delete.rb +38 -0
- data/lib/fat_zebra/api_operation/find.rb +23 -0
- data/lib/fat_zebra/api_operation/save.rb +62 -0
- data/lib/fat_zebra/api_operation/search.rb +32 -0
- data/lib/fat_zebra/api_operation/void.rb +52 -0
- data/lib/fat_zebra/api_resource.rb +135 -0
- data/lib/fat_zebra/bank_account.rb +21 -0
- data/lib/fat_zebra/batch.rb +56 -0
- data/lib/fat_zebra/card.rb +22 -0
- data/lib/fat_zebra/config.rb +65 -25
- data/lib/fat_zebra/customer.rb +27 -0
- data/lib/fat_zebra/direct_credit.rb +27 -0
- data/lib/fat_zebra/direct_debit.rb +27 -0
- data/lib/fat_zebra/errors.rb +18 -4
- data/lib/fat_zebra/fat_zebra_object.rb +179 -0
- data/lib/fat_zebra/information.rb +25 -0
- data/lib/fat_zebra/payment_plan.rb +62 -0
- data/lib/fat_zebra/purchase.rb +99 -0
- data/lib/fat_zebra/refund.rb +25 -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 +55 -0
- data/lib/fat_zebra/request.rb +162 -0
- data/lib/fat_zebra/util.rb +70 -0
- data/lib/fat_zebra/validation.rb +47 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/lib/fat_zebra/web_hook.rb +23 -0
- data/lib/fat_zebra.rb +51 -55
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +57 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +57 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/validations/1_1_3_1.yml +57 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +172 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +172 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +172 -0
- data/spec/cassettes/FatZebra_Batch/_create/1_1_1.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/1_1_2.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/validations/1_1_3_1.yml +57 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +109 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +109 -0
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +160 -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 +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/validations/1_1_7_1.yml +56 -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 +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/validations/1_1_7_1.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_delete/1_4_1.yml +113 -0
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +113 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_2_1.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_2_2.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_3_1.yml +114 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_3_2.yml +114 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +114 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +114 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/1_1_5_1.yml +59 -0
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +109 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +107 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +107 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +160 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +160 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/1_1_5_1.yml +59 -0
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +109 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +107 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +107 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +160 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +160 -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_7_1.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_7_2.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +118 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +118 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +118 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/validations/1_1_4_1.yml +55 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +175 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +175 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +175 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_1.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_2.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +178 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_1.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_2.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_3.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_1.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_2.yml +165 -0
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_3.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_1.yml +54 -0
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_2.yml +54 -0
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_3.yml +54 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +613 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +615 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +617 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +163 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +163 -0
- data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +281 -0
- data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +281 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +165 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +165 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +165 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +57 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +57 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +57 -0
- data/spec/cassettes/FatZebra_WebHook/_create/validations/1_1_4_1.yml +56 -0
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +111 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +222 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +224 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +112 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +112 -0
- data/spec/fixtures/batch_test.csv +4 -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 +52 -0
- data/spec/lib/fat_zebra/customer_spec.rb +53 -0
- data/spec/lib/fat_zebra/direct_credit_spec.rb +53 -0
- data/spec/lib/fat_zebra/direct_debit_spec.rb +53 -0
- data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +116 -0
- data/spec/lib/fat_zebra/information_spec.rb +13 -0
- data/spec/lib/fat_zebra/payment_plan_spec.rb +94 -0
- data/spec/lib/fat_zebra/purchase_spec.rb +92 -0
- data/spec/lib/fat_zebra/refund_spec.rb +72 -0
- data/spec/lib/fat_zebra/util_spec.rb +24 -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 +49 -3
- data/spec/support/payloads.rb +43 -0
- metadata +238 -65
- data/FatZebra.gemspec +0 -31
- data/lib/fat_zebra/constants.rb +0 -2
- data/lib/fat_zebra/gateway.rb +0 -292
- data/lib/fat_zebra/models/base.rb +0 -33
- data/lib/fat_zebra/models/card.rb +0 -49
- data/lib/fat_zebra/models/purchase.rb +0 -185
- data/lib/fat_zebra/models/refund.rb +0 -46
- data/lib/fat_zebra/models/response.rb +0 -33
- data/lib/rest-client/request_ext.rb +0 -15
- data/spec/config_spec.rb +0 -37
- data/spec/gateway_spec.rb +0 -120
- data/spec/models/purchase_spec.rb +0 -55
- data/spec/models/refund_spec.rb +0 -9
- data/spec/models/response_spec.rb +0 -25
@@ -0,0 +1,111 @@
|
|
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":"62b412f6f078c179a9f717c253f8af8f","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '214'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
Authorization:
|
21
|
+
- Basic VEVTVDpURVNU
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Wed, 21 Jun 2017 05:02:58 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Rack-Cache:
|
38
|
+
- invalidate, pass
|
39
|
+
Cache-Control:
|
40
|
+
- no-store
|
41
|
+
X-Request-Version:
|
42
|
+
- 1.19.41
|
43
|
+
X-Runtime:
|
44
|
+
- '0.294009'
|
45
|
+
Pragma:
|
46
|
+
- no-cache
|
47
|
+
X-Request-Id:
|
48
|
+
- c7e66443143a4b335fd1e351a957fc38
|
49
|
+
X-Backend:
|
50
|
+
- sbox-priv-gateway-a
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"successful":true,"response":{"authorization":"489792","id":"071-P-M5NDMBFF","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
54
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"62b412f6f078c179a9f717c253f8af8f","currency":"AUD","transaction_id":"071-P-M5NDMBFF","settlement_date":"2017-06-21","transaction_date":"2017-06-21T15:02:58+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PM5NDMBFF","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Wed, 21 Jun 2017 05:02:58 GMT
|
57
|
+
- request:
|
58
|
+
method: post
|
59
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"transaction_id":"071-P-M5NDMBFF","amount":10000,"reference":"62b412f6f078c179a9f717c253f8af8f","test":true}'
|
63
|
+
headers:
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip, deflate
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Content-Length:
|
71
|
+
- '109'
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
Authorization:
|
75
|
+
- Basic VEVTVDpURVNU
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Date:
|
82
|
+
- Wed, 21 Jun 2017 05:02:58 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.19.41
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- ded4415b1fc0dd16e0da3c6ea6d4954c
|
99
|
+
X-Runtime:
|
100
|
+
- '0.182360'
|
101
|
+
X-Rack-Cache:
|
102
|
+
- invalidate, pass
|
103
|
+
X-Backend:
|
104
|
+
- sbox-priv-gateway-a
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: '{"successful":true,"response":{"authorization":1498021378,"id":"071-R-CT2MQ4TL","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
108
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-CT2MQ4TL","reference":"62b412f6f078c179a9f717c253f8af8f","currency":"AUD","successful":true,"transaction_date":"2017-06-21T15:02:58+10:00","response_code":"00","settlement_date":"2017-06-22","metadata":{},"standalone":false,"rrn":"071RCT2MQ4TL"},"errors":[],"test":true}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Wed, 21 Jun 2017 05:02:58 GMT
|
111
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,170 @@
|
|
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":"affa1cea2ae40ead9b6e78957c714ef9-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
|
+
- Mon, 03 Jul 2017 02:39:00 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
X-Request-Version:
|
38
|
+
- 1.19.41
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
X-Request-Id:
|
42
|
+
- 6b151701de6918369b83c096ff462147
|
43
|
+
X-Runtime:
|
44
|
+
- '0.325148'
|
45
|
+
X-Rack-Cache:
|
46
|
+
- invalidate, pass
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"806387","id":"071-P-N5R4KOYV","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"affa1cea2ae40ead9b6e78957c714ef9-0","currency":"AUD","transaction_id":"071-P-N5R4KOYV","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:00+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PN5R4KOYV","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 03 Jul 2017 02:39:00 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"1312857a1f777e99c328c8cd807347d1-1","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Mon, 03 Jul 2017 02:39:01 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.19.41
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 0685b20911daca98c8c034baee39a653
|
95
|
+
X-Runtime:
|
96
|
+
- '0.366856'
|
97
|
+
X-Rack-Cache:
|
98
|
+
- invalidate, pass
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"556428","id":"071-P-PK4XOABE","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1312857a1f777e99c328c8cd807347d1-1","currency":"AUD","transaction_id":"071-P-PK4XOABE","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:01+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PPK4XOABE","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 03 Jul 2017 02:39:01 GMT
|
107
|
+
- request:
|
108
|
+
method: get
|
109
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&offets=0&test=true
|
110
|
+
body:
|
111
|
+
encoding: US-ASCII
|
112
|
+
string: ''
|
113
|
+
headers:
|
114
|
+
Accept-Encoding:
|
115
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
116
|
+
Accept:
|
117
|
+
- application/json
|
118
|
+
User-Agent:
|
119
|
+
- Ruby
|
120
|
+
Host:
|
121
|
+
- gateway.sandbox.fatzebra.com.au
|
122
|
+
Authorization:
|
123
|
+
- Basic VEVTVDpURVNU
|
124
|
+
Content-Type:
|
125
|
+
- application/json
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 200
|
129
|
+
message: OK
|
130
|
+
headers:
|
131
|
+
Date:
|
132
|
+
- Mon, 03 Jul 2017 02:39:01 GMT
|
133
|
+
Content-Type:
|
134
|
+
- application/json; charset=utf-8
|
135
|
+
Transfer-Encoding:
|
136
|
+
- chunked
|
137
|
+
Connection:
|
138
|
+
- keep-alive
|
139
|
+
Status:
|
140
|
+
- 200 OK
|
141
|
+
X-Rack-Cache:
|
142
|
+
- miss
|
143
|
+
Cache-Control:
|
144
|
+
- no-store, private
|
145
|
+
X-Request-Version:
|
146
|
+
- 1.19.41
|
147
|
+
X-Runtime:
|
148
|
+
- '0.048571'
|
149
|
+
Pragma:
|
150
|
+
- no-cache
|
151
|
+
X-Request-Id:
|
152
|
+
- d3a21f84976a09b94933f846bc457978
|
153
|
+
X-Backend:
|
154
|
+
- sbox-priv-gateway-a
|
155
|
+
body:
|
156
|
+
encoding: UTF-8
|
157
|
+
string: '{"successful":true,"response":[{"authorization":"556428","id":"071-P-PK4XOABE","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
158
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1312857a1f777e99c328c8cd807347d1-1","currency":"AUD","transaction_id":"071-P-PK4XOABE","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:01+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PPK4XOABE","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"806387","id":"071-P-N5R4KOYV","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
159
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"affa1cea2ae40ead9b6e78957c714ef9-0","currency":"AUD","transaction_id":"071-P-N5R4KOYV","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:00+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PN5R4KOYV","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"444810","id":"071-P-VC0VTDF9","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
160
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"f8a568bab94fb62b7498c0a52eb49471","currency":"AUD","transaction_id":"071-P-VC0VTDF9","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:19+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PVC0VTDF9","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"620000","id":"071-P-7EM3MYY5","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
161
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"bec8b3b8af367476b605a7c434d76c81","currency":"AUD","transaction_id":"071-P-7EM3MYY5","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:18+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P7EM3MYY5","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"928679","id":"071-P-4MPUE60J","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
162
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"22a9faabcb581b70f2b0e619488fd19e","currency":"AUD","transaction_id":"071-P-4MPUE60J","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:17+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P4MPUE60J","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"886486","id":"071-P-A2RBM0TP","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
163
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1a0eed90fa035d330f374c184432731c","currency":"AUD","transaction_id":"071-P-A2RBM0TP","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:16+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PA2RBM0TP","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"157926","id":"071-P-U6RJW1P","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
164
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2374511c409014bdd9359046e403f494","currency":"AUD","transaction_id":"071-P-U6RJW1P","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:15+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PU6RJW1P","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"790337","id":"071-P-Y8JRLA3","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
165
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"fed3af6d171ce519a67774ed2ef31994","currency":"AUD","transaction_id":"071-P-Y8JRLA3","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:14+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PY8JRLA3","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"763738","id":"071-P-8PE3DDD7","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
166
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"ede1405f65658f1d2578f29caa6a5376","currency":"AUD","transaction_id":"071-P-8PE3DDD7","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:13+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P8PE3DDD7","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"726113","id":"071-P-1RKV3E3T","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
167
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"039773fde745ad798a943910391d099d","currency":"AUD","transaction_id":"071-P-1RKV3E3T","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:12+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P1RKV3E3T","cvv_match":"M","metadata":{},"addendum_data":{}}],"errors":[],"test":true,"records":10,"total_records":310,"page":1,"total_pages":31}'
|
168
|
+
http_version:
|
169
|
+
recorded_at: Mon, 03 Jul 2017 02:39:01 GMT
|
170
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,170 @@
|
|
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":"bfe2f0f43e2f6811161ae7a009b3c840-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
|
+
- Mon, 03 Jul 2017 02:39:01 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
X-Request-Version:
|
38
|
+
- 1.19.41
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
X-Request-Id:
|
42
|
+
- 270317cc0406b66f45d0d3bd81c1679a
|
43
|
+
X-Runtime:
|
44
|
+
- '0.342290'
|
45
|
+
X-Rack-Cache:
|
46
|
+
- invalidate, pass
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"authorization":"138504","id":"071-P-4AXUY9Q4","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
52
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"bfe2f0f43e2f6811161ae7a009b3c840-0","currency":"AUD","transaction_id":"071-P-4AXUY9Q4","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:01+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P4AXUY9Q4","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 03 Jul 2017 02:39:01 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"73a34343849d71bca9ab1a11225a3139-1","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Mon, 03 Jul 2017 02:39:02 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
X-Rack-Cache:
|
88
|
+
- invalidate, pass
|
89
|
+
Cache-Control:
|
90
|
+
- no-store
|
91
|
+
X-Request-Version:
|
92
|
+
- 1.19.41
|
93
|
+
X-Runtime:
|
94
|
+
- '0.334440'
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- da1480f7882ebb4ae18f0f0f86f88e29
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"authorization":"512407","id":"071-P-P7OX5AF6","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
104
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"73a34343849d71bca9ab1a11225a3139-1","currency":"AUD","transaction_id":"071-P-P7OX5AF6","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:02+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PP7OX5AF6","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 03 Jul 2017 02:39:02 GMT
|
107
|
+
- request:
|
108
|
+
method: get
|
109
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases?from=2017/07/03&limit=10&offets=0&test=true
|
110
|
+
body:
|
111
|
+
encoding: US-ASCII
|
112
|
+
string: ''
|
113
|
+
headers:
|
114
|
+
Accept-Encoding:
|
115
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
116
|
+
Accept:
|
117
|
+
- application/json
|
118
|
+
User-Agent:
|
119
|
+
- Ruby
|
120
|
+
Host:
|
121
|
+
- gateway.sandbox.fatzebra.com.au
|
122
|
+
Authorization:
|
123
|
+
- Basic VEVTVDpURVNU
|
124
|
+
Content-Type:
|
125
|
+
- application/json
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 200
|
129
|
+
message: OK
|
130
|
+
headers:
|
131
|
+
Date:
|
132
|
+
- Mon, 03 Jul 2017 02:39:02 GMT
|
133
|
+
Content-Type:
|
134
|
+
- application/json; charset=utf-8
|
135
|
+
Transfer-Encoding:
|
136
|
+
- chunked
|
137
|
+
Connection:
|
138
|
+
- keep-alive
|
139
|
+
Status:
|
140
|
+
- 200 OK
|
141
|
+
X-Rack-Cache:
|
142
|
+
- miss
|
143
|
+
Cache-Control:
|
144
|
+
- no-store, private
|
145
|
+
X-Request-Version:
|
146
|
+
- 1.19.41
|
147
|
+
X-Runtime:
|
148
|
+
- '0.041367'
|
149
|
+
Pragma:
|
150
|
+
- no-cache
|
151
|
+
X-Request-Id:
|
152
|
+
- 298468ab4c8a2f87b5799b9398ddcb87
|
153
|
+
X-Backend:
|
154
|
+
- sbox-priv-gateway-a
|
155
|
+
body:
|
156
|
+
encoding: UTF-8
|
157
|
+
string: '{"successful":true,"response":[{"authorization":"512407","id":"071-P-P7OX5AF6","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
158
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"73a34343849d71bca9ab1a11225a3139-1","currency":"AUD","transaction_id":"071-P-P7OX5AF6","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:02+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PP7OX5AF6","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"138504","id":"071-P-4AXUY9Q4","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
159
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"bfe2f0f43e2f6811161ae7a009b3c840-0","currency":"AUD","transaction_id":"071-P-4AXUY9Q4","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:01+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P4AXUY9Q4","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"556428","id":"071-P-PK4XOABE","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
160
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1312857a1f777e99c328c8cd807347d1-1","currency":"AUD","transaction_id":"071-P-PK4XOABE","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:01+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PPK4XOABE","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"806387","id":"071-P-N5R4KOYV","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
161
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"affa1cea2ae40ead9b6e78957c714ef9-0","currency":"AUD","transaction_id":"071-P-N5R4KOYV","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:39:00+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PN5R4KOYV","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"444810","id":"071-P-VC0VTDF9","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
162
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"f8a568bab94fb62b7498c0a52eb49471","currency":"AUD","transaction_id":"071-P-VC0VTDF9","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:19+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PVC0VTDF9","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"620000","id":"071-P-7EM3MYY5","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
163
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"bec8b3b8af367476b605a7c434d76c81","currency":"AUD","transaction_id":"071-P-7EM3MYY5","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:18+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P7EM3MYY5","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"928679","id":"071-P-4MPUE60J","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
164
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"22a9faabcb581b70f2b0e619488fd19e","currency":"AUD","transaction_id":"071-P-4MPUE60J","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:17+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P4MPUE60J","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"886486","id":"071-P-A2RBM0TP","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
165
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1a0eed90fa035d330f374c184432731c","currency":"AUD","transaction_id":"071-P-A2RBM0TP","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:16+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PA2RBM0TP","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"157926","id":"071-P-U6RJW1P","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
166
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2374511c409014bdd9359046e403f494","currency":"AUD","transaction_id":"071-P-U6RJW1P","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:15+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PU6RJW1P","cvv_match":"M","metadata":{},"addendum_data":{}},{"authorization":"790337","id":"071-P-Y8JRLA3","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
167
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"fed3af6d171ce519a67774ed2ef31994","currency":"AUD","transaction_id":"071-P-Y8JRLA3","settlement_date":"2017-07-03","transaction_date":"2017-07-03T12:37:14+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PY8JRLA3","cvv_match":"M","metadata":{},"addendum_data":{}}],"errors":[],"test":true,"records":10,"total_records":312,"page":1,"total_pages":32}'
|
168
|
+
http_version:
|
169
|
+
recorded_at: Mon, 03 Jul 2017 02:39:02 GMT
|
170
|
+
recorded_with: VCR 3.0.3
|