fat_zebra_multi 3.2.0.1 → 3.2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +3 -3
- data/README.md +5 -4
- data/fat_zebra_multi.gemspec +4 -3
- data/lib/fat_zebra/authenticate.rb +64 -0
- data/lib/fat_zebra/card.rb +1 -0
- 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/util.rb +1 -1
- data/lib/fat_zebra/version.rb +1 -1
- data/lib/fat_zebra.rb +8 -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_Card/_find/1_3_1.yml +111 -0
- data/spec/cassettes/FatZebra_Card/_find/1_3_2.yml +111 -0
- data/spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml +45 -0
- data/spec/cassettes/{FatZebra_Authorise/_jwt_token/returns_JWT_with_no_params.yml → FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml} +5 -5
- 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_Authorise/_jwt_token/returns_JWT_with_some_params.yml → FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml} +6 -5
- data/spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml +50 -0
- 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/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/spec_helper.rb +0 -1
- data/spec/support/payloads.rb +129 -36
- metadata +65 -18
- data/lib/fat_zebra/authorise.rb +0 -49
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_1.yml +0 -48
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_2.yml +0 -48
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_1.yml +0 -48
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_2.yml +0 -48
- data/spec/cassettes/FatZebra_Authorise/_authorise/with_invalid_input/1_2_1_1.yml +0 -50
- data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_given_params.yml +0 -46
- data/spec/lib/fat_zebra/authorise_spec.rb +0 -101
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"currency":"AUD","amount":100,"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
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Request-Version:
|
32
|
+
- 1.21.8
|
33
|
+
X-Request-Id:
|
34
|
+
- f4d377e827607ded10629269ce56e58f
|
35
|
+
X-Runtime:
|
36
|
+
- '0.048153'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"jwt":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYyMTI3NzMsImlhdCI6MTU3NjE5ODM3MywiaXNzIjoiNWRjM2VhMzVhZmE4MGQyZWEwZWUxMGU3IiwianRpIjoiYTRmYjk0MmQtZmYyNS00YmE1LTg0OGQtZWY4ZTk5N2E4OWQyIiwiT3JnVW5pdElkIjoiNWRiMTVhMzQwMDViOTMwZmM0MGM4OWVlIiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUGF5bG9hZCI6eyJPcmRlckRldGFpbHMiOnsiQ3VycmVuY3lDb2RlIjoiMDM2IiwiQW1vdW50IjoiMTAwIn19fQ.XnYWuD5aZ3G5J5es3H8TBJkqAwR8ZYUMbggbIc4mguc"},"errors":[],"test":true}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Fri, 13 Dec 2019 00:52:53 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/decode_session?test=true&token=eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYyMTI3NzMsImlhdCI6MTU3NjE5ODM3MywiaXNzIjoiNWRjM2VhMzVhZmE4MGQyZWEwZWUxMGU3IiwianRpIjoiYTRmYjk0MmQtZmYyNS00YmE1LTg0OGQtZWY4ZTk5N2E4OWQyIiwiT3JnVW5pdElkIjoiNWRiMTVhMzQwMDViOTMwZmM0MGM4OWVlIiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUGF5bG9hZCI6eyJPcmRlckRldGFpbHMiOnsiQ3VycmVuY3lDb2RlIjoiMDM2IiwiQW1vdW50IjoiMTAwIn19fQ.XnYWuD5aZ3G5J5es3H8TBJkqAwR8ZYUMbggbIc4mguc
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- application/json
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
Host:
|
58
|
+
- gateway.sandbox.fatzebra.com.au
|
59
|
+
Authorization:
|
60
|
+
- Basic VEVTVDpURVNU
|
61
|
+
Content-Type:
|
62
|
+
- application/json
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Cache-Control:
|
69
|
+
- no-store
|
70
|
+
Pragma:
|
71
|
+
- no-cache
|
72
|
+
Content-Type:
|
73
|
+
- application/json; charset=utf-8
|
74
|
+
X-Request-Version:
|
75
|
+
- 1.21.8
|
76
|
+
X-Request-Id:
|
77
|
+
- ccb35eb7239627765e7be3908aa68345
|
78
|
+
X-Runtime:
|
79
|
+
- '0.029515'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"successful":true,"response":{"processor_transaction_id":null,"consumer_session_id":null,"reference_id":null,"type":null,"action_code":null,"error_number":null,"error_description":null},"errors":[],"test":true}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Fri, 13 Dec 2019 00:52:53 GMT
|
87
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"currency":"AUD","amount":100,"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
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Request-Version:
|
32
|
+
- 1.21.8
|
33
|
+
X-Request-Id:
|
34
|
+
- ce903d72b1cd571ea126ba6192706cfc
|
35
|
+
X-Runtime:
|
36
|
+
- '0.030447'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"jwt":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYyMTI3NzYsImlhdCI6MTU3NjE5ODM3NiwiaXNzIjoiNWRjM2VhMzVhZmE4MGQyZWEwZWUxMGU3IiwianRpIjoiN2MyOGUxNjctMTA4Yy00Y2M1LWI5YzAtZTExYWUxNDE4MzcyIiwiT3JnVW5pdElkIjoiNWRiMTVhMzQwMDViOTMwZmM0MGM4OWVlIiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUGF5bG9hZCI6eyJPcmRlckRldGFpbHMiOnsiQ3VycmVuY3lDb2RlIjoiMDM2IiwiQW1vdW50IjoiMTAwIn19fQ.JKEs6y5ntnUoHlM-f-2tJAthRpuXhrB3DMsPzdDDYHA"},"errors":[],"test":true}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Fri, 13 Dec 2019 00:52:56 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"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
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Request-Version:
|
32
|
+
- 1.21.8
|
33
|
+
X-Request-Id:
|
34
|
+
- f8699db95ab7438ea25dc80ee560467a
|
35
|
+
X-Runtime:
|
36
|
+
- '0.032563'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"jwt":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYyMTI3NzYsImlhdCI6MTU3NjE5ODM3NiwiaXNzIjoiNWRjM2VhMzVhZmE4MGQyZWEwZWUxMGU3IiwianRpIjoiZWIyYWFiZjQtY2E3Yy00NTk3LTk5NjQtMGVmOTAxNDQzMjUwIiwiT3JnVW5pdElkIjoiNWRiMTVhMzQwMDViOTMwZmM0MGM4OWVlIiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUGF5bG9hZCI6eyJPcmRlckRldGFpbHMiOnsiQ3VycmVuY3lDb2RlIjoiMDM2In19fQ.ZfDGDc_NQWQLhCdaCwz-lg94KTuH-B1HrcT95SeGNys"},"errors":[],"test":true}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Fri, 13 Dec 2019 00:52:56 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"currency":"AUD","amount":"INVALID","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: 422
|
23
|
+
message: Unprocessable Entity
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Request-Version:
|
32
|
+
- 1.21.8
|
33
|
+
X-Request-Id:
|
34
|
+
- 452a31b97f48c753edb5e0d323075739
|
35
|
+
X-Runtime:
|
36
|
+
- '0.033447'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":false,"response":null,"errors":["Amount is invalid"],"test":true}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Fri, 13 Dec 2019 00:52:56 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"currency":"INVALID","amount":100,"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: 422
|
23
|
+
message: Unprocessable Entity
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Request-Version:
|
32
|
+
- 1.21.8
|
33
|
+
X-Request-Id:
|
34
|
+
- 267a96eede70c812d9d7603b2c500400
|
35
|
+
X-Runtime:
|
36
|
+
- '0.022172'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":false,"response":null,"errors":["INVALID is not valid
|
42
|
+
for this merchant. Permitted currencies: USD, EUR, GBP, AUD, CAD, JPY, CHF,
|
43
|
+
HKD, NZD, SGD, and JPY"],"test":true}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 13 Dec 2019 00:52:56 GMT
|
46
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,111 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Wed, 10 Jun 2020 06:59:24 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.21.8
|
39
|
+
X-Runtime:
|
40
|
+
- '0.319736'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- f6b8f8d29b19d3ad76bfe293
|
45
|
+
X-Backend:
|
46
|
+
- gateway
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=31536000; includeSubDomains
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"token":"awy21sdeq8og9wxwk2dl","card_holder":"Matthew
|
52
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
|
53
|
+
First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Wed, 10 Jun 2020 06:59:24 GMT
|
56
|
+
- request:
|
57
|
+
method: get
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards/awy21sdeq8og9wxwk2dl?test=true
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ''
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Host:
|
70
|
+
- gateway.sandbox.fatzebra.com.au
|
71
|
+
Authorization:
|
72
|
+
- Basic VEVTVDpURVNU
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message: OK
|
79
|
+
headers:
|
80
|
+
Date:
|
81
|
+
- Wed, 10 Jun 2020 06:59:24 GMT
|
82
|
+
Content-Type:
|
83
|
+
- application/json; charset=utf-8
|
84
|
+
Transfer-Encoding:
|
85
|
+
- chunked
|
86
|
+
Connection:
|
87
|
+
- keep-alive
|
88
|
+
Status:
|
89
|
+
- 200 OK
|
90
|
+
Cache-Control:
|
91
|
+
- no-store
|
92
|
+
X-Request-Version:
|
93
|
+
- 1.21.8
|
94
|
+
X-Runtime:
|
95
|
+
- '0.013428'
|
96
|
+
Pragma:
|
97
|
+
- no-cache
|
98
|
+
X-Request-Id:
|
99
|
+
- 7287ce40a99b0454d28eb1fc
|
100
|
+
X-Backend:
|
101
|
+
- gateway
|
102
|
+
Strict-Transport-Security:
|
103
|
+
- max-age=31536000; includeSubDomains
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"successful":true,"response":{"token":"awy21sdeq8og9wxwk2dl","card_holder":"Matthew
|
107
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
|
108
|
+
First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Wed, 10 Jun 2020 06:59:24 GMT
|
111
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,111 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Wed, 10 Jun 2020 06:59:24 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.21.8
|
39
|
+
X-Runtime:
|
40
|
+
- '0.315215'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- e7dcee7439ed04a0b1eea668
|
45
|
+
X-Backend:
|
46
|
+
- gateway
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=31536000; includeSubDomains
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"token":"o723qqzihmdogtbe1yz7","card_holder":"Matthew
|
52
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
|
53
|
+
First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Wed, 10 Jun 2020 06:59:25 GMT
|
56
|
+
- request:
|
57
|
+
method: get
|
58
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards/o723qqzihmdogtbe1yz7?test=true
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ''
|
62
|
+
headers:
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
Host:
|
70
|
+
- gateway.sandbox.fatzebra.com.au
|
71
|
+
Authorization:
|
72
|
+
- Basic VEVTVDpURVNU
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message: OK
|
79
|
+
headers:
|
80
|
+
Date:
|
81
|
+
- Wed, 10 Jun 2020 06:59:25 GMT
|
82
|
+
Content-Type:
|
83
|
+
- application/json; charset=utf-8
|
84
|
+
Transfer-Encoding:
|
85
|
+
- chunked
|
86
|
+
Connection:
|
87
|
+
- keep-alive
|
88
|
+
Status:
|
89
|
+
- 200 OK
|
90
|
+
Cache-Control:
|
91
|
+
- no-store
|
92
|
+
X-Request-Version:
|
93
|
+
- 1.21.8
|
94
|
+
X-Runtime:
|
95
|
+
- '0.013891'
|
96
|
+
Pragma:
|
97
|
+
- no-cache
|
98
|
+
X-Request-Id:
|
99
|
+
- 67099342b9cfd39845f5a7fa
|
100
|
+
X-Backend:
|
101
|
+
- gateway
|
102
|
+
Strict-Transport-Security:
|
103
|
+
- max-age=31536000; includeSubDomains
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"successful":true,"response":{"token":"o723qqzihmdogtbe1yz7","card_holder":"Matthew
|
107
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
|
108
|
+
First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Wed, 10 Jun 2020 06:59:25 GMT
|
111
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-3AM3CXFFKMFYI3QM/capture
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":200,"final_Capture":false,"note_to_payer":"test capture $2","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
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Request-Version:
|
32
|
+
- 1.21.8
|
33
|
+
X-Request-Id:
|
34
|
+
- f417482028fb56c5853115e2355ab566
|
35
|
+
X-Runtime:
|
36
|
+
- '9.242708'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"id":"071-PPC-1VD9NBDKP4EFQUYW","amount":200,"decimal_amount":2.0,"captured_amount":200,"successful":true,"message":"Approved","reference":"ref_12345_420768","captured":true,"currency":"AUD","transaction_id":"071-PPC-1VD9NBDKP4EFQUYW","transaction_date":"2020-08-07T14:01:30+10:00","response_code":"00","invoice_id":"071-PPC-1VD9NBDKP4EFQUYW","paypal_fee":35,"seller_receivable_net_amount":165,"note_to_payer":"test
|
42
|
+
capture $2","is_final_capture":false,"refunded_amount":0,"balance_available_for_refund":200,"balance_available_for_capture":13400,"authorization":"071-PPA-3AM3CXFFKMFYI3QM","order":"071-PPO-QMNDDIFZMCX0LA0G"},"errors":[],"test":true}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Fri, 07 Aug 2020 04:01:39 GMT
|
45
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-3AM3CXFFKMFYI3QM?test=true
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -33,14 +33,14 @@ http_interactions:
|
|
33
33
|
X-Request-Version:
|
34
34
|
- 1.21.8
|
35
35
|
X-Request-Id:
|
36
|
-
-
|
36
|
+
- 8b0862c2a71babb0067cf4d3a565a9f0
|
37
37
|
X-Runtime:
|
38
|
-
- '0.
|
38
|
+
- '0.063998'
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '{"successful":true,"response":{"
|
43
|
+
string: '{"successful":true,"response":{"id":"071-PPA-3AM3CXFFKMFYI3QM","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-3AM3CXFFKMFYI3QM","transaction_date":"2020-08-06T23:17:27+10:00","message":"Approved","response_code":"00","reference":"ref_12345_420768","refunded_amount":0,"balance_available_for_capture":13800,"order":"071-PPO-QMNDDIFZMCX0LA0G"},"errors":[],"test":true}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Thu, 06 Aug 2020 13:39:51 GMT
|
46
46
|
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations?from=2020/08/05&limit=10&offset=0&test=true
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
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
|
+
Host:
|
17
|
+
- gateway.sandbox.fatzebra.com.au
|
18
|
+
Authorization:
|
19
|
+
- Basic VEVTVDpURVNU
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Cache-Control:
|
28
|
+
- no-store
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
X-Request-Version:
|
34
|
+
- 1.21.8
|
35
|
+
X-Request-Id:
|
36
|
+
- fabf10d0564100be367e755ef180cfc0
|
37
|
+
X-Runtime:
|
38
|
+
- '0.054100'
|
39
|
+
Transfer-Encoding:
|
40
|
+
- chunked
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"successful":true,"response":[{"id":"071-PPA-3AM3CXFFKMFYI3QM","amount":12000,"decimal_amount":120.0,"captured_amount":200,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-3AM3CXFFKMFYI3QM","transaction_date":"2020-08-06T23:17:27+10:00","message":"Approved","response_code":"00","reference":"ref_12345_420768","refunded_amount":0,"balance_available_for_capture":13600,"order":"071-PPO-QMNDDIFZMCX0LA0G"},{"id":"071-PPA-QPIVKACDAHBNH3LO","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-QPIVKACDAHBNH3LO","transaction_date":"2020-08-06T23:40:58+10:00","message":"Approved","response_code":"00","reference":"ref_12345_108143","refunded_amount":0,"balance_available_for_capture":13800,"order":"071-PPO-TKJOIWAQBL0FUXIY"}],"errors":[],"test":true,"records":2,"total_records":2,"page":1,"total_pages":1}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Thu, 06 Aug 2020 13:43:13 GMT
|
46
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-XB5CXLVNIGCNTB8V/void
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"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
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Request-Version:
|
32
|
+
- 1.21.8
|
33
|
+
X-Request-Id:
|
34
|
+
- 3908f81cedc5655b6e7fde76af30806a
|
35
|
+
X-Runtime:
|
36
|
+
- '4.634585'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"id":"071-PPA-XB5CXLVNIGCNTB8V","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-XB5CXLVNIGCNTB8V","transaction_date":"2020-08-07T15:25:39+10:00","message":"Approved","response_code":"00","reference":"ref_12345_157326","refunded_amount":0,"balance_available_for_capture":0,"order":"071-PPO-HUETI12NMEFQSRZX"},"errors":[],"test":true}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Fri, 07 Aug 2020 05:28:14 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|