fat_zebra 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +2 -2
- data/fat_zebra.gemspec +1 -1
- data/lib/fat_zebra.rb +1 -1
- data/lib/fat_zebra/authenticate.rb +64 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_4_1.yml +46 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml +91 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml +91 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml +91 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml +91 -0
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml +91 -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 +92 -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_Authorise/_jwt_token → FatZebra_Authenticate/_session}/returns_JWT_with_no_params.yml +8 -10
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_some_params.yml +44 -0
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml +44 -0
- data/spec/lib/fat_zebra/authenticate_spec.rb +144 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/support/payloads.rb +36 -31
- metadata +21 -15
- 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/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_some_params.yml +0 -46
- data/spec/lib/fat_zebra/authorise_spec.rb +0 -101
data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml
ADDED
@@ -0,0 +1,91 @@
|
|
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
|
+
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
|
+
- a8a68894679016b1b821d1b758276cfc
|
35
|
+
X-Runtime:
|
36
|
+
- '0.294279'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"token":"ad7udcmjocj8q9reg2o8","card_holder":"Matthew
|
42
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Banco
|
43
|
+
Del Pichincha, C.A.","card_country":"Ecuador","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 01 Nov 2019 04:37:54 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"card_token":"ad7udcmjocj8q9reg2o8","sca":{"enabled":true,"amount":100,"currency":"AUD","df_reference_id":"ab8572cf9b244e980791","mobile_phone":"1234567890","email":"dev@fatzebra.com.au","transaction_mode":"mobile","transaction_type":"C","order_number":"7314307f5460a124a675","billing":{"address1":"SOME
|
52
|
+
ADDRESS","city":"Sydney","country":"AUS","first_name":"John","last_name":"Smith","postal_code":"2000","state":"NSW"},"shipping":{"address1":"SOME
|
53
|
+
ADDRESS","state":"NSW","city":"Sydney","country":"AUS","address2":"SOME
|
54
|
+
ADDRESS","address3":"SOME ADDRESS","postal_code":"2000"},"extra":{"billing_phone":"1234567890","work_phone":"1234567890","billing_address2":"SOME
|
55
|
+
ADDRESS","billing_address3":"SOME ADDRESS","authentication_indicator":"01","product_code":"PHY"},"recurring":{"installment":2,"purchase_date":"20201101153754","recurring_end":"20201101","recurring_frequency":31}},"test":true}'
|
56
|
+
headers:
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- application/json
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
Authorization:
|
64
|
+
- Basic VEVTVDpURVNU
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 200
|
70
|
+
message: OK
|
71
|
+
headers:
|
72
|
+
Cache-Control:
|
73
|
+
- no-store
|
74
|
+
Pragma:
|
75
|
+
- no-cache
|
76
|
+
Content-Type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
X-Request-Version:
|
79
|
+
- 1.21.8
|
80
|
+
X-Request-Id:
|
81
|
+
- 822d011fafc2ae456c149adace8ad8e5
|
82
|
+
X-Runtime:
|
83
|
+
- '1.392089'
|
84
|
+
Transfer-Encoding:
|
85
|
+
- chunked
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: '{"successful":true,"response":{"ThreeDSVersion":"1.0.2","Enrolled":"U","ErrorDesc":null,"ErrorNo":"0","EciFlag":"00","OrderId":"8010913999415644","TransactionId":"RRQaqHd6ExcSumbMvcO0","TransactionType":null,"SignatureVerification":null,"CardBrand":"MASTERCARD","CardBin":"512345","DSTransactionId":null,"RawACSUrl":null,"ACSUrl":null,"StepUpUrl":null,"Cavv":null,"PAResStatus":null,"Payload":null,"Xid":null,"ReasonCode":null,"ReasonDesc":null,"ChallengeRequired":null,"StatusReason":null,"ACSTransactionId":null,"ThreeDSServerTransactionId":null},"errors":null,"test":true}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Fri, 01 Nov 2019 04:37:55 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,91 @@
|
|
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
|
+
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
|
+
- f59c3b0be7a7b8cfb20efb910dc114d0
|
35
|
+
X-Runtime:
|
36
|
+
- '0.638802'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"token":"t7iaem8t0djmxcqtkeil","card_holder":"Matthew
|
42
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Banco
|
43
|
+
Del Pichincha, C.A.","card_country":"Ecuador","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 01 Nov 2019 04:37:50 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"card_token":"INVALID","sca":{"enabled":true,"amount":100,"currency":"AUD","df_reference_id":"35ae2ae720b3874af884","mobile_phone":"1234567890","email":"dev@fatzebra.com.au","transaction_mode":"mobile","transaction_type":"C","order_number":"cada4376ef7118862969","billing":{"address1":"SOME
|
52
|
+
ADDRESS","city":"Sydney","country":"AUS","first_name":"John","last_name":"Smith","postal_code":"2000","state":"NSW"},"shipping":{"address1":"SOME
|
53
|
+
ADDRESS","state":"NSW","city":"Sydney","country":"AUS","address2":"SOME
|
54
|
+
ADDRESS","address3":"SOME ADDRESS","postal_code":"2000"},"extra":{"billing_phone":"1234567890","work_phone":"1234567890","billing_address2":"SOME
|
55
|
+
ADDRESS","billing_address3":"SOME ADDRESS","authentication_indicator":"01","product_code":"PHY"},"recurring":{"installment":2,"purchase_date":"20201101153750","recurring_end":"20201101","recurring_frequency":31}},"test":true}'
|
56
|
+
headers:
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- application/json
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
Authorization:
|
64
|
+
- Basic VEVTVDpURVNU
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 422
|
70
|
+
message: Unprocessable Entity
|
71
|
+
headers:
|
72
|
+
Cache-Control:
|
73
|
+
- no-store
|
74
|
+
Pragma:
|
75
|
+
- no-cache
|
76
|
+
Content-Type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
X-Request-Version:
|
79
|
+
- 1.21.8
|
80
|
+
X-Request-Id:
|
81
|
+
- ad1cb5ef5058f8cbd11f254686aec569
|
82
|
+
X-Runtime:
|
83
|
+
- '0.345566'
|
84
|
+
Transfer-Encoding:
|
85
|
+
- chunked
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: '{"successful":false,"response":null,"errors":"Card not found","test":true}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Fri, 01 Nov 2019 04:37:50 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,87 @@
|
|
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
|
+
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
|
+
- 7b775432c29782d1272fb8dc0b06c8c4
|
35
|
+
X-Runtime:
|
36
|
+
- '0.345672'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"token":"66ey2kj14nrvybz7b3gs","card_holder":"Matthew
|
42
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Banco
|
43
|
+
Del Pichincha, C.A.","card_country":"Ecuador","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 01 Nov 2019 04:37:51 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"card_token":"66ey2kj14nrvybz7b3gs","sca":{},"test":true}'
|
52
|
+
headers:
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
Accept:
|
56
|
+
- application/json
|
57
|
+
User-Agent:
|
58
|
+
- Ruby
|
59
|
+
Authorization:
|
60
|
+
- Basic VEVTVDpURVNU
|
61
|
+
Content-Type:
|
62
|
+
- application/json
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 422
|
66
|
+
message: Unprocessable Entity
|
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
|
+
- 308793f00505a51ce066df1aadadda61
|
78
|
+
X-Runtime:
|
79
|
+
- '0.033605'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"successful":false,"response":null,"errors":["Invalid input data"],"test":true}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Fri, 01 Nov 2019 04:37:51 GMT
|
87
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,92 @@
|
|
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
|
+
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
|
+
- 4e0457249cdad22cd821387f5662f06b
|
35
|
+
X-Runtime:
|
36
|
+
- '0.417234'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"token":"xv8rgcp86o9zogcgblys","card_holder":"Matthew
|
42
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Banco
|
43
|
+
Del Pichincha, C.A.","card_country":"Ecuador","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 01 Nov 2019 04:37:51 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"card_token":"xv8rgcp86o9zogcgblys","sca":{"enabled":true,"amount":100,"currency":"INVALID","df_reference_id":"ac494ee2467b55d9f498","mobile_phone":"1234567890","email":"dev@fatzebra.com.au","transaction_mode":"mobile","transaction_type":"C","order_number":"f932c8f5109b0dd30ee4","billing":{"address1":"SOME
|
52
|
+
ADDRESS","city":"Sydney","country":"AUS","first_name":"John","last_name":"Smith","postal_code":"2000","state":"NSW"},"shipping":{"address1":"SOME
|
53
|
+
ADDRESS","state":"NSW","city":"Sydney","country":"AUS","address2":"SOME
|
54
|
+
ADDRESS","address3":"SOME ADDRESS","postal_code":"2000"},"extra":{"billing_phone":"1234567890","work_phone":"1234567890","billing_address2":"SOME
|
55
|
+
ADDRESS","billing_address3":"SOME ADDRESS","authentication_indicator":"01","product_code":"PHY"},"recurring":{"installment":2,"purchase_date":"20201101153751","recurring_end":"20201101","recurring_frequency":31}},"test":true}'
|
56
|
+
headers:
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- application/json
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
Authorization:
|
64
|
+
- Basic VEVTVDpURVNU
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 422
|
70
|
+
message: Unprocessable Entity
|
71
|
+
headers:
|
72
|
+
Cache-Control:
|
73
|
+
- no-store
|
74
|
+
Pragma:
|
75
|
+
- no-cache
|
76
|
+
Content-Type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
X-Request-Version:
|
79
|
+
- 1.21.8
|
80
|
+
X-Request-Id:
|
81
|
+
- 750c8e82fb23f759e671af890167fd38
|
82
|
+
X-Runtime:
|
83
|
+
- '0.079170'
|
84
|
+
Transfer-Encoding:
|
85
|
+
- chunked
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: '{"successful":false,"response":null,"errors":"3DS lookup request process
|
89
|
+
failed: currency_code length must be 3","test":true}'
|
90
|
+
http_version:
|
91
|
+
recorded_at: Fri, 01 Nov 2019 04:37:51 GMT
|
92
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,92 @@
|
|
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
|
+
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
|
+
- b7ad00c08022ecdd0b0ed4048522f31f
|
35
|
+
X-Runtime:
|
36
|
+
- '0.336813'
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"successful":true,"response":{"token":"tyubxa3kxnai1uklhclr","card_holder":"Matthew
|
42
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Banco
|
43
|
+
Del Pichincha, C.A.","card_country":"Ecuador","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 01 Nov 2019 04:37:52 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"card_token":"tyubxa3kxnai1uklhclr","sca":{"enabled":true,"amount":"INVALID","currency":"AUD","df_reference_id":"7841a6586df869088266","mobile_phone":"1234567890","email":"dev@fatzebra.com.au","transaction_mode":"mobile","transaction_type":"C","order_number":"ac924e4c7b0985ab5071","billing":{"address1":"SOME
|
52
|
+
ADDRESS","city":"Sydney","country":"AUS","first_name":"John","last_name":"Smith","postal_code":"2000","state":"NSW"},"shipping":{"address1":"SOME
|
53
|
+
ADDRESS","state":"NSW","city":"Sydney","country":"AUS","address2":"SOME
|
54
|
+
ADDRESS","address3":"SOME ADDRESS","postal_code":"2000"},"extra":{"billing_phone":"1234567890","work_phone":"1234567890","billing_address2":"SOME
|
55
|
+
ADDRESS","billing_address3":"SOME ADDRESS","authentication_indicator":"01","product_code":"PHY"},"recurring":{"installment":2,"purchase_date":"20201101153752","recurring_end":"20201101","recurring_frequency":31}},"test":true}'
|
56
|
+
headers:
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- application/json
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
Authorization:
|
64
|
+
- Basic VEVTVDpURVNU
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 422
|
70
|
+
message: Unprocessable Entity
|
71
|
+
headers:
|
72
|
+
Cache-Control:
|
73
|
+
- no-store
|
74
|
+
Pragma:
|
75
|
+
- no-cache
|
76
|
+
Content-Type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
X-Request-Version:
|
79
|
+
- 1.21.8
|
80
|
+
X-Request-Id:
|
81
|
+
- 3fa4c4b8af2bcee85a9da54ebd0513d4
|
82
|
+
X-Runtime:
|
83
|
+
- '0.050493'
|
84
|
+
Transfer-Encoding:
|
85
|
+
- chunked
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: '{"successful":false,"response":null,"errors":"3DS lookup request process
|
89
|
+
failed: amount must be an integer","test":true}'
|
90
|
+
http_version:
|
91
|
+
recorded_at: Fri, 01 Nov 2019 04:37:52 GMT
|
92
|
+
recorded_with: VCR 3.0.3
|