tns_payments 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tns_payments/request.rb +1 -1
- data/lib/tns_payments/version.rb +1 -1
- data/test/cassettes/test_amex_successful_purchase.yml +46 -46
- data/test/cassettes/test_available.yml +14 -14
- data/test/cassettes/test_card_enrolled_for_3ds.yml +46 -46
- data/test/cassettes/test_card_not_enrolled_for_3ds.yml +46 -46
- data/test/cassettes/test_deleting_tokenised_card.yml +93 -93
- data/test/cassettes/test_mastercard_successful_purchase.yml +46 -46
- data/test/cassettes/test_refund_successful_purchase.yml +61 -61
- data/test/cassettes/test_tokenise_creditcard_from_session_for_later_purchase.yml +62 -62
- data/test/cassettes/test_unsuccessful_purchase.yml +16 -16
- data/test/cassettes/test_unsupported_3ds_gateway.yml +47 -47
- data/test/cassettes/test_visa_successful_purchase.yml +46 -46
- data/test/integration/operations_test.rb +1 -1
- metadata +4 -4
data/lib/tns_payments/request.rb
CHANGED
data/lib/tns_payments/version.rb
CHANGED
@@ -3,110 +3,110 @@ recorded_with: VCR 2.9.3
|
|
3
3
|
http_interactions:
|
4
4
|
- request:
|
5
5
|
method: post
|
6
|
-
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
6
|
+
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_MERCHANT_ID>/session
|
7
7
|
body:
|
8
8
|
string: ""
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*"
|
12
|
-
Content-Type:
|
13
|
-
- Application/json;charset=UTF-8
|
14
12
|
Accept-Encoding:
|
15
13
|
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- Application/json;charset=UTF-8
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 201
|
19
19
|
message: Created
|
20
20
|
headers:
|
21
|
-
Content-Length:
|
22
|
-
- "149"
|
23
|
-
Content-Type:
|
24
|
-
- application/json;charset=UTF-8
|
25
|
-
Date:
|
26
|
-
- Mon, 11 Jan 2016 23:51:04 GMT
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
21
|
Expires:
|
30
22
|
- "0"
|
31
|
-
Set-Cookie:
|
32
|
-
- TS018aacab=01c9ad79a0777676190757f71bce1b77e026c4ec88a6e8088ae37b951e999fdf69ef2438b0; Path=/
|
33
23
|
Cache-Control:
|
34
24
|
- no-cache, no-store, must-revalidate
|
25
|
+
Date:
|
26
|
+
- Tue, 26 Jan 2016 06:50:26 GMT
|
27
|
+
Set-Cookie:
|
28
|
+
- TS018aacab=01c9ad79a0a34c90312490a24400f7f85040f04e86c34ed4c63dcbe2348298ae64b5f17ca1; Path=/
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Content-Length:
|
32
|
+
- "149"
|
33
|
+
Content-Type:
|
34
|
+
- application/json;charset=UTF-8
|
35
35
|
body:
|
36
|
-
string: "{\"merchant\":\"<TNS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"
|
36
|
+
string: "{\"merchant\":\"<TNS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"SESSION0002254906148H67477708N9\",\"updateStatus\":\"NO_UPDATE\",\"version\":\"5389003501\"}}"
|
37
37
|
http_version:
|
38
|
-
recorded_at:
|
38
|
+
recorded_at: Tue, 26 Jan 2016 06:50:26 GMT
|
39
39
|
- request:
|
40
40
|
method: put
|
41
|
-
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
41
|
+
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_MERCHANT_ID>/session/SESSION0002254906148H67477708N9
|
42
42
|
body:
|
43
43
|
string: "{\"sourceOfFunds\":{\"type\":\"CARD\",\"provided\":{\"card\":{\"number\":\"345678901234564\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"securityCode\":\"1234\"}}}}"
|
44
44
|
headers:
|
45
45
|
Accept:
|
46
46
|
- "*/*"
|
47
|
+
Accept-Encoding:
|
48
|
+
- gzip, deflate
|
47
49
|
Content-Length:
|
48
50
|
- "139"
|
49
51
|
Content-Type:
|
50
52
|
- Application/json;charset=UTF-8
|
51
|
-
Accept-Encoding:
|
52
|
-
- gzip, deflate
|
53
53
|
response:
|
54
54
|
status:
|
55
55
|
code: 200
|
56
56
|
message: OK
|
57
57
|
headers:
|
58
|
-
Content-Length:
|
59
|
-
- "337"
|
60
|
-
Content-Type:
|
61
|
-
- application/json;charset=UTF-8
|
62
|
-
Date:
|
63
|
-
- Mon, 11 Jan 2016 23:51:04 GMT
|
64
|
-
Pragma:
|
65
|
-
- no-cache
|
66
58
|
Expires:
|
67
59
|
- "0"
|
68
|
-
Set-Cookie:
|
69
|
-
- TS018aacab=01c9ad79a00b36c4299550473029df7107a8073c81d7d5bcee01337bec979dba1ac9e1adff; Path=/
|
70
60
|
Cache-Control:
|
71
61
|
- no-cache, no-store, must-revalidate
|
62
|
+
Date:
|
63
|
+
- Tue, 26 Jan 2016 06:50:27 GMT
|
64
|
+
Set-Cookie:
|
65
|
+
- TS018aacab=01c9ad79a01a3173d80339d50a60824d8d257b17133d89e06449ac37b732ec2413f7883edb; Path=/
|
66
|
+
Pragma:
|
67
|
+
- no-cache
|
68
|
+
Content-Length:
|
69
|
+
- "337"
|
70
|
+
Content-Type:
|
71
|
+
- application/json;charset=UTF-8
|
72
72
|
body:
|
73
|
-
string: "{\"merchant\":\"<TNS_MERCHANT_ID>\",\"session\":{\"id\":\"
|
73
|
+
string: "{\"merchant\":\"<TNS_MERCHANT_ID>\",\"session\":{\"id\":\"SESSION0002254906148H67477708N9\",\"updateStatus\":\"SUCCESS\",\"version\":\"62bb361802\"},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"AMEX\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"CREDIT\",\"number\":\"345678xxxxx4564\",\"scheme\":\"AMEX\",\"securityCode\":\"xxxx\"}},\"type\":\"CARD\"},\"version\":\"30\"}"
|
74
74
|
http_version:
|
75
|
-
recorded_at:
|
75
|
+
recorded_at: Tue, 26 Jan 2016 06:50:27 GMT
|
76
76
|
- request:
|
77
77
|
method: put
|
78
|
-
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
78
|
+
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_MERCHANT_ID>/order/10000001703/transaction/PAY
|
79
79
|
body:
|
80
|
-
string: "{\"apiOperation\":\"PAY\",\"order\":{\"amount\":\"100.00\",\"currency\":\"EUR\",\"reference\":\"PAY\"},\"transaction\":{\"reference\":\"PAY\"},\"sourceOfFunds\":{\"type\":\"CARD\"},\"session\":{\"id\":\"
|
80
|
+
string: "{\"apiOperation\":\"PAY\",\"order\":{\"amount\":\"100.00\",\"currency\":\"EUR\",\"reference\":\"PAY\"},\"transaction\":{\"reference\":\"PAY\"},\"sourceOfFunds\":{\"type\":\"CARD\"},\"session\":{\"id\":\"SESSION0002254906148H67477708N9\"}}"
|
81
81
|
headers:
|
82
82
|
Accept:
|
83
83
|
- "*/*"
|
84
|
+
Accept-Encoding:
|
85
|
+
- gzip, deflate
|
84
86
|
Content-Length:
|
85
87
|
- "202"
|
86
88
|
Content-Type:
|
87
89
|
- Application/json;charset=UTF-8
|
88
|
-
Accept-Encoding:
|
89
|
-
- gzip, deflate
|
90
90
|
response:
|
91
91
|
status:
|
92
92
|
code: 201
|
93
93
|
message: Created
|
94
94
|
headers:
|
95
|
-
Content-Length:
|
96
|
-
- "1658"
|
97
|
-
Content-Type:
|
98
|
-
- application/json;charset=UTF-8
|
99
|
-
Date:
|
100
|
-
- Mon, 11 Jan 2016 23:51:05 GMT
|
101
|
-
Pragma:
|
102
|
-
- no-cache
|
103
95
|
Expires:
|
104
96
|
- "0"
|
105
|
-
Set-Cookie:
|
106
|
-
- TS018aacab=01c9ad79a05005d6ce0661f0ff61ffd29ca1e182415e883508eb3c057212ebcb105ce187bc; Path=/
|
107
97
|
Cache-Control:
|
108
98
|
- no-cache, no-store, must-revalidate
|
99
|
+
Date:
|
100
|
+
- Tue, 26 Jan 2016 06:50:28 GMT
|
101
|
+
Set-Cookie:
|
102
|
+
- TS018aacab=01c9ad79a0ae07739869d735466639b3275070d42a91cd5bb8fc41e71a0a9fdb422eecd9c7; Path=/
|
103
|
+
Pragma:
|
104
|
+
- no-cache
|
105
|
+
Content-Length:
|
106
|
+
- "1658"
|
107
|
+
Content-Type:
|
108
|
+
- application/json;charset=UTF-8
|
109
109
|
body:
|
110
|
-
string: "{\"authorizationResponse\":{\"posData\":\"1605S0100130\",\"transactionIdentifier\":\"AmexTidTest\"},\"gatewayEntryPoint\":\"AUTO\",\"merchant\":\"<TNS_MERCHANT_ID>\",\"order\":{\"amount\":100.00,\"creationTime\":\"2016-01-
|
110
|
+
string: "{\"authorizationResponse\":{\"posData\":\"1605S0100130\",\"transactionIdentifier\":\"AmexTidTest\"},\"gatewayEntryPoint\":\"AUTO\",\"merchant\":\"<TNS_MERCHANT_ID>\",\"order\":{\"amount\":100.00,\"creationTime\":\"2016-01-26T06:50:27.770Z\",\"currency\":\"EUR\",\"id\":\"10000001703\",\"reference\":\"PAY\",\"status\":\"CAPTURED\",\"totalAuthorizedAmount\":100.00,\"totalCapturedAmount\":100.00,\"totalRefundedAmount\":0.00},\"response\":{\"acquirerCode\":\"000\",\"acquirerMessage\":\"Successful request\",\"cardSecurityCode\":{\"acquirerCode\":\"N\",\"gatewayCode\":\"NO_MATCH\"},\"gatewayCode\":\"APPROVED\"},\"result\":\"SUCCESS\",\"risk\":{\"response\":{\"gatewayCode\":\"ACCEPTED\",\"review\":{\"decision\":\"NOT_REQUIRED\"},\"rule\":[{\"data\":\"345678\",\"name\":\"MERCHANT_BIN_RANGE\",\"recommendation\":\"NO_ACTION\",\"type\":\"MERCHANT_RULE\"},{\"data\":\"N\",\"name\":\"MERCHANT_CSC\",\"recommendation\":\"NO_ACTION\",\"type\":\"MERCHANT_RULE\"},{\"name\":\"SUSPECT_CARD_LIST\",\"recommendation\":\"NO_ACTION\",\"type\":\"MERCHANT_RULE\"},{\"name\":\"TRUSTED_CARD_LIST\",\"recommendation\":\"NO_ACTION\",\"type\":\"MERCHANT_RULE\"},{\"data\":\"345678\",\"name\":\"MSO_BIN_RANGE\",\"recommendation\":\"NO_ACTION\",\"type\":\"MSO_RULE\"},{\"data\":\"N\",\"name\":\"MSO_CSC\",\"recommendation\":\"NO_ACTION\",\"type\":\"MSO_RULE\"}]}},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"AMEX\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"CREDIT\",\"number\":\"345678xxxxx4564\",\"scheme\":\"AMEX\"}},\"type\":\"CARD\"},\"timeOfRecord\":\"2016-01-26T06:50:27.958Z\",\"transaction\":{\"acquirer\":{\"batch\":1,\"id\":\"AMEXGWS\",\"merchantId\":\"9442891578\"},\"amount\":100.00,\"authorizationCode\":\"029661\",\"currency\":\"EUR\",\"frequency\":\"SINGLE\",\"id\":\"PAY\",\"receipt\":\"16012673\",\"reference\":\"PAY\",\"source\":\"MOTO\",\"terminal\":\"31208585\",\"type\":\"CAPTURE\"},\"version\":\"30\"}"
|
111
111
|
http_version:
|
112
|
-
recorded_at:
|
112
|
+
recorded_at: Tue, 26 Jan 2016 06:50:28 GMT
|
@@ -3,36 +3,36 @@ recorded_with: VCR 2.9.3
|
|
3
3
|
http_interactions:
|
4
4
|
- request:
|
5
5
|
method: get
|
6
|
-
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
6
|
+
uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/information
|
7
7
|
body:
|
8
8
|
string: ""
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*"
|
12
|
-
Content-Type:
|
13
|
-
- Application/json;charset=UTF-8
|
14
12
|
Accept-Encoding:
|
15
13
|
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- Application/json;charset=UTF-8
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
+
Expires:
|
22
|
+
- Tue, 26 Jan 2016 06:50:46 GMT
|
23
|
+
Cache-Control:
|
24
|
+
- public
|
25
|
+
Date:
|
26
|
+
- Tue, 26 Jan 2016 06:50:36 GMT
|
27
|
+
Set-Cookie:
|
28
|
+
- TS018aacab=01c9ad79a035d56cbad64b820839ccc7448100f6e07c58d094a02470d73963fb2ab0a51c91; Path=/
|
29
|
+
Last-Modified:
|
30
|
+
- Tue, 26 Jan 2016 06:50:26 GMT
|
21
31
|
Content-Length:
|
22
32
|
- "51"
|
23
33
|
Content-Type:
|
24
34
|
- application/json;charset=UTF-8
|
25
|
-
Date:
|
26
|
-
- Mon, 11 Jan 2016 23:51:09 GMT
|
27
|
-
Expires:
|
28
|
-
- Mon, 11 Jan 2016 23:51:19 GMT
|
29
|
-
Last-Modified:
|
30
|
-
- Mon, 11 Jan 2016 23:50:59 GMT
|
31
|
-
Set-Cookie:
|
32
|
-
- TS018aacab=01c9ad79a07ffbc3550c578a918bb93f79c52d36d38fc54e2eaac9a47f5486f5512724ce9c; Path=/
|
33
|
-
Cache-Control:
|
34
|
-
- public
|
35
35
|
body:
|
36
36
|
string: "{\"gatewayVersion\":\"5.24.5-1R\",\"status\":\"OPERATING\"}"
|
37
37
|
http_version:
|
38
|
-
recorded_at:
|
38
|
+
recorded_at: Tue, 26 Jan 2016 06:50:36 GMT
|
@@ -3,110 +3,110 @@ recorded_with: VCR 2.9.3
|
|
3
3
|
http_interactions:
|
4
4
|
- request:
|
5
5
|
method: post
|
6
|
-
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
6
|
+
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_3DS_MERCHANT_ID>/session
|
7
7
|
body:
|
8
8
|
string: ""
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*"
|
12
|
-
Content-Type:
|
13
|
-
- Application/json;charset=UTF-8
|
14
12
|
Accept-Encoding:
|
15
13
|
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- Application/json;charset=UTF-8
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 201
|
19
19
|
message: Created
|
20
20
|
headers:
|
21
|
-
Content-Length:
|
22
|
-
- "151"
|
23
|
-
Content-Type:
|
24
|
-
- application/json;charset=UTF-8
|
25
|
-
Date:
|
26
|
-
- Mon, 11 Jan 2016 23:51:11 GMT
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
21
|
Expires:
|
30
22
|
- "0"
|
31
|
-
Set-Cookie:
|
32
|
-
- TS018aacab=01c9ad79a029b5da654c68dc170cba39ea1d91c850daa6f3b9e6fbda7ceea955638c147083; Path=/
|
33
23
|
Cache-Control:
|
34
24
|
- no-cache, no-store, must-revalidate
|
25
|
+
Date:
|
26
|
+
- Tue, 26 Jan 2016 06:50:36 GMT
|
27
|
+
Set-Cookie:
|
28
|
+
- TS018aacab=01c9ad79a0de7004c00a0076598a321c1e10c11ae037610db5738e9ed1cb96b47cf772b22f; Path=/
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Content-Length:
|
32
|
+
- "151"
|
33
|
+
Content-Type:
|
34
|
+
- application/json;charset=UTF-8
|
35
35
|
body:
|
36
|
-
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"
|
36
|
+
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"SESSION0002534388191N03419336N7\",\"updateStatus\":\"NO_UPDATE\",\"version\":\"8365615a01\"}}"
|
37
37
|
http_version:
|
38
|
-
recorded_at:
|
38
|
+
recorded_at: Tue, 26 Jan 2016 06:50:36 GMT
|
39
39
|
- request:
|
40
40
|
method: put
|
41
|
-
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
41
|
+
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_3DS_MERCHANT_ID>/session/SESSION0002534388191N03419336N7
|
42
42
|
body:
|
43
43
|
string: "{\"sourceOfFunds\":{\"type\":\"CARD\",\"provided\":{\"card\":{\"number\":\"4508750015741019\",\"expiry\":{\"month\":\"05\",\"year\":\"17\"},\"securityCode\":\"123\"}}}}"
|
44
44
|
headers:
|
45
45
|
Accept:
|
46
46
|
- "*/*"
|
47
|
+
Accept-Encoding:
|
48
|
+
- gzip, deflate
|
47
49
|
Content-Length:
|
48
50
|
- "140"
|
49
51
|
Content-Type:
|
50
52
|
- Application/json;charset=UTF-8
|
51
|
-
Accept-Encoding:
|
52
|
-
- gzip, deflate
|
53
53
|
response:
|
54
54
|
status:
|
55
55
|
code: 200
|
56
56
|
message: OK
|
57
57
|
headers:
|
58
|
-
Content-Length:
|
59
|
-
- "338"
|
60
|
-
Content-Type:
|
61
|
-
- application/json;charset=UTF-8
|
62
|
-
Date:
|
63
|
-
- Mon, 11 Jan 2016 23:51:12 GMT
|
64
|
-
Pragma:
|
65
|
-
- no-cache
|
66
58
|
Expires:
|
67
59
|
- "0"
|
68
|
-
Set-Cookie:
|
69
|
-
- TS018aacab=01c9ad79a02b4240fa2d72a2c64687ed3be60fa49b0d89bafd246da63efe3077ab9d703c66; Path=/
|
70
60
|
Cache-Control:
|
71
61
|
- no-cache, no-store, must-revalidate
|
62
|
+
Date:
|
63
|
+
- Tue, 26 Jan 2016 06:50:37 GMT
|
64
|
+
Set-Cookie:
|
65
|
+
- TS018aacab=01c9ad79a02857a7d4b9eb63236ad490723a397f743e3e95b7dd669ab624bd8b3ece12d742; Path=/
|
66
|
+
Pragma:
|
67
|
+
- no-cache
|
68
|
+
Content-Length:
|
69
|
+
- "338"
|
70
|
+
Content-Type:
|
71
|
+
- application/json;charset=UTF-8
|
72
72
|
body:
|
73
|
-
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"session\":{\"id\":\"
|
73
|
+
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"session\":{\"id\":\"SESSION0002534388191N03419336N7\",\"updateStatus\":\"SUCCESS\",\"version\":\"2a2d57e902\"},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"VISA\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"DEBIT\",\"number\":\"450875xxxxxx1019\",\"scheme\":\"VISA\",\"securityCode\":\"xxx\"}},\"type\":\"CARD\"},\"version\":\"30\"}"
|
74
74
|
http_version:
|
75
|
-
recorded_at:
|
75
|
+
recorded_at: Tue, 26 Jan 2016 06:50:37 GMT
|
76
76
|
- request:
|
77
77
|
method: put
|
78
|
-
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
78
|
+
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_3DS_MERCHANT_ID>/3DSecureId/52acc1e71086da5229cb59a80d1edbfe9a1a7c25
|
79
79
|
body:
|
80
|
-
string: "{\"apiOperation\":\"CHECK_3DS_ENROLLMENT\",\"3DSecure\":{\"authenticationRedirect\":{\"pageGenerationMode\":\"CUSTOMIZED\",\"responseUrl\":\"http://google.com\"}},\"session\":{\"id\":\"
|
80
|
+
string: "{\"apiOperation\":\"CHECK_3DS_ENROLLMENT\",\"3DSecure\":{\"authenticationRedirect\":{\"pageGenerationMode\":\"CUSTOMIZED\",\"responseUrl\":\"http://google.com\"}},\"session\":{\"id\":\"SESSION0002534388191N03419336N7\"},\"order\":{\"amount\":\"100.00\",\"currency\":\"GBP\"}}"
|
81
81
|
headers:
|
82
82
|
Accept:
|
83
83
|
- "*/*"
|
84
|
+
Accept-Encoding:
|
85
|
+
- gzip, deflate
|
84
86
|
Content-Length:
|
85
87
|
- "243"
|
86
88
|
Content-Type:
|
87
89
|
- Application/json;charset=UTF-8
|
88
|
-
Accept-Encoding:
|
89
|
-
- gzip, deflate
|
90
90
|
response:
|
91
91
|
status:
|
92
92
|
code: 201
|
93
93
|
message: Created
|
94
94
|
headers:
|
95
|
-
Content-Length:
|
96
|
-
- "868"
|
97
|
-
Content-Type:
|
98
|
-
- application/json;charset=UTF-8
|
99
|
-
Date:
|
100
|
-
- Mon, 11 Jan 2016 23:51:12 GMT
|
101
|
-
Pragma:
|
102
|
-
- no-cache
|
103
95
|
Expires:
|
104
96
|
- "0"
|
105
|
-
Set-Cookie:
|
106
|
-
- TS018aacab=01c9ad79a09a2ee8278050933bb52a00b5836463b8cfa1be4533dd9ab1067ef26f3dff9b0e; Path=/
|
107
97
|
Cache-Control:
|
108
98
|
- no-cache, no-store, must-revalidate
|
99
|
+
Date:
|
100
|
+
- Tue, 26 Jan 2016 06:50:37 GMT
|
101
|
+
Set-Cookie:
|
102
|
+
- TS018aacab=01c9ad79a05bce4938679abb75266b8280c6ef8173d17968c4f4a38e49009ae9888177bb55; Path=/
|
103
|
+
Pragma:
|
104
|
+
- no-cache
|
105
|
+
Content-Length:
|
106
|
+
- "872"
|
107
|
+
Content-Type:
|
108
|
+
- application/json;charset=UTF-8
|
109
109
|
body:
|
110
|
-
string: "{\"3DSecure\":{\"authenticationRedirect\":{\"customized\":{\"acsUrl\":\"https://secure.ap.tnspayments.com:443/acs/VisaACS/
|
110
|
+
string: "{\"3DSecure\":{\"authenticationRedirect\":{\"customized\":{\"acsUrl\":\"https://secure.ap.tnspayments.com:443/acs/VisaACS/7d71cc4c-ea73-4755-8f16-2b96fee2277e\",\"paReq\":\"eAFVUdtOwkAUfCfhH5q+y17oBchhCRcVoigiJsa3TbuhNbSFbdHC7/gnfplnCxXdp87szvTMHBiUycb6UDqPs7Rvsxa1LZUGWRin6779srq56tgD0WzAKtJKTZ5VsNdKwFzluVwrKw5Rwzy/7Xmc2gIWw6XaCTj7CbRrcSA1RJkOIpkWAmSwG80ehMO7lDtAzhASpWcT0eZOt8t9Rk8HyImGVCZKXKPbIZQHa6p0Zt0XIZCKhyDbp4U+iA73gNQA9nojoqLY9ghRqERhhLpWkCVAzB2Qy1CLvRkvx3xlHAr3aZcvJQ8ey7vj+Pg6mqfr8j2Tn8e3Th+IeQGhLJTglHmUcc+iXs+lvbYPpOJBJmYicTtaWN9fGKZFKSY9kbA1/xqeQBUUyF8KsGeNi6jj1AhUuc1ShbbY6+83kMvo46lpNyiwR8elHd+llLm+wyjrmp6rC+MSY1XMp25lYwAQIyXnFWIt1YqR+bf6ZuMHqv+2dQ==\"}},\"summaryStatus\":\"CARD_ENROLLED\",\"xid\":\"5QqsRa2cOxKzCzXBMngxjoawzZ8=\"},\"3DSecureId\":\"52acc1e71086da5229cb59a80d1edbfe9a1a7c25\",\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"response\":{\"3DSecure\":{\"gatewayCode\":\"CARD_ENROLLED\"}}}"
|
111
111
|
http_version:
|
112
|
-
recorded_at:
|
112
|
+
recorded_at: Tue, 26 Jan 2016 06:50:37 GMT
|
@@ -3,110 +3,110 @@ recorded_with: VCR 2.9.3
|
|
3
3
|
http_interactions:
|
4
4
|
- request:
|
5
5
|
method: post
|
6
|
-
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
6
|
+
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_3DS_MERCHANT_ID>/session
|
7
7
|
body:
|
8
8
|
string: ""
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- "*/*"
|
12
|
-
Content-Type:
|
13
|
-
- Application/json;charset=UTF-8
|
14
12
|
Accept-Encoding:
|
15
13
|
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- Application/json;charset=UTF-8
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 201
|
19
19
|
message: Created
|
20
20
|
headers:
|
21
|
-
Content-Length:
|
22
|
-
- "151"
|
23
|
-
Content-Type:
|
24
|
-
- application/json;charset=UTF-8
|
25
|
-
Date:
|
26
|
-
- Mon, 11 Jan 2016 23:51:10 GMT
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
21
|
Expires:
|
30
22
|
- "0"
|
31
|
-
Set-Cookie:
|
32
|
-
- TS018aacab=01c9ad79a0f15bc1f946ec22d18c6d95739f3531081dfd0ea76b5ec2c2788c896cdf0314cb; Path=/
|
33
23
|
Cache-Control:
|
34
24
|
- no-cache, no-store, must-revalidate
|
25
|
+
Date:
|
26
|
+
- Tue, 26 Jan 2016 06:50:30 GMT
|
27
|
+
Set-Cookie:
|
28
|
+
- TS018aacab=01c9ad79a000c408ab393d9ae968c8539b771b3a91f41e2d05b2004ec19fce256dc9a45237; Path=/
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Content-Length:
|
32
|
+
- "151"
|
33
|
+
Content-Type:
|
34
|
+
- application/json;charset=UTF-8
|
35
35
|
body:
|
36
|
-
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"
|
36
|
+
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"SESSION0002457024972J02017450K7\",\"updateStatus\":\"NO_UPDATE\",\"version\":\"a333179201\"}}"
|
37
37
|
http_version:
|
38
|
-
recorded_at:
|
38
|
+
recorded_at: Tue, 26 Jan 2016 06:50:30 GMT
|
39
39
|
- request:
|
40
40
|
method: put
|
41
|
-
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
41
|
+
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_3DS_MERCHANT_ID>/session/SESSION0002457024972J02017450K7
|
42
42
|
body:
|
43
43
|
string: "{\"sourceOfFunds\":{\"type\":\"CARD\",\"provided\":{\"card\":{\"number\":\"4005550000000001\",\"expiry\":{\"month\":\"05\",\"year\":\"17\"},\"securityCode\":\"123\"}}}}"
|
44
44
|
headers:
|
45
45
|
Accept:
|
46
46
|
- "*/*"
|
47
|
+
Accept-Encoding:
|
48
|
+
- gzip, deflate
|
47
49
|
Content-Length:
|
48
50
|
- "140"
|
49
51
|
Content-Type:
|
50
52
|
- Application/json;charset=UTF-8
|
51
|
-
Accept-Encoding:
|
52
|
-
- gzip, deflate
|
53
53
|
response:
|
54
54
|
status:
|
55
55
|
code: 200
|
56
56
|
message: OK
|
57
57
|
headers:
|
58
|
-
Content-Length:
|
59
|
-
- "339"
|
60
|
-
Content-Type:
|
61
|
-
- application/json;charset=UTF-8
|
62
|
-
Date:
|
63
|
-
- Mon, 11 Jan 2016 23:51:10 GMT
|
64
|
-
Pragma:
|
65
|
-
- no-cache
|
66
58
|
Expires:
|
67
59
|
- "0"
|
68
|
-
Set-Cookie:
|
69
|
-
- TS018aacab=01c9ad79a0770a7b0d257d1a1289b57f4a3ea7c694e4bc14156f8bf1585296d21c1214f58e; Path=/
|
70
60
|
Cache-Control:
|
71
61
|
- no-cache, no-store, must-revalidate
|
62
|
+
Date:
|
63
|
+
- Tue, 26 Jan 2016 06:50:30 GMT
|
64
|
+
Set-Cookie:
|
65
|
+
- TS018aacab=01c9ad79a0288c071201f294879710f725f67d8f42b0ad66eb932fe5380822c75a73094dfd; Path=/
|
66
|
+
Pragma:
|
67
|
+
- no-cache
|
68
|
+
Content-Length:
|
69
|
+
- "339"
|
70
|
+
Content-Type:
|
71
|
+
- application/json;charset=UTF-8
|
72
72
|
body:
|
73
|
-
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"session\":{\"id\":\"
|
73
|
+
string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"session\":{\"id\":\"SESSION0002457024972J02017450K7\",\"updateStatus\":\"SUCCESS\",\"version\":\"93f1fe6902\"},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"VISA\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"CREDIT\",\"number\":\"400555xxxxxx0001\",\"scheme\":\"VISA\",\"securityCode\":\"xxx\"}},\"type\":\"CARD\"},\"version\":\"30\"}"
|
74
74
|
http_version:
|
75
|
-
recorded_at:
|
75
|
+
recorded_at: Tue, 26 Jan 2016 06:50:30 GMT
|
76
76
|
- request:
|
77
77
|
method: put
|
78
|
-
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/
|
78
|
+
uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/30/merchant/<TNS_3DS_MERCHANT_ID>/3DSecureId/2f304d5be2a9390013eeb52a5b5cb029d0978a51
|
79
79
|
body:
|
80
|
-
string: "{\"apiOperation\":\"CHECK_3DS_ENROLLMENT\",\"3DSecure\":{\"authenticationRedirect\":{\"pageGenerationMode\":\"CUSTOMIZED\",\"responseUrl\":\"http://google.com\"}},\"session\":{\"id\":\"
|
80
|
+
string: "{\"apiOperation\":\"CHECK_3DS_ENROLLMENT\",\"3DSecure\":{\"authenticationRedirect\":{\"pageGenerationMode\":\"CUSTOMIZED\",\"responseUrl\":\"http://google.com\"}},\"session\":{\"id\":\"SESSION0002457024972J02017450K7\"},\"order\":{\"amount\":\"100.00\",\"currency\":\"GBP\"}}"
|
81
81
|
headers:
|
82
82
|
Accept:
|
83
83
|
- "*/*"
|
84
|
+
Accept-Encoding:
|
85
|
+
- gzip, deflate
|
84
86
|
Content-Length:
|
85
87
|
- "243"
|
86
88
|
Content-Type:
|
87
89
|
- Application/json;charset=UTF-8
|
88
|
-
Accept-Encoding:
|
89
|
-
- gzip, deflate
|
90
90
|
response:
|
91
91
|
status:
|
92
92
|
code: 201
|
93
93
|
message: Created
|
94
94
|
headers:
|
95
|
-
Content-Length:
|
96
|
-
- "245"
|
97
|
-
Content-Type:
|
98
|
-
- application/json;charset=UTF-8
|
99
|
-
Date:
|
100
|
-
- Mon, 11 Jan 2016 23:51:11 GMT
|
101
|
-
Pragma:
|
102
|
-
- no-cache
|
103
95
|
Expires:
|
104
96
|
- "0"
|
105
|
-
Set-Cookie:
|
106
|
-
- TS018aacab=01c9ad79a0a260c065f3157c40cf6d24330185014ca69943d9611db0e0910a26c13bb73c9d; Path=/
|
107
97
|
Cache-Control:
|
108
98
|
- no-cache, no-store, must-revalidate
|
99
|
+
Date:
|
100
|
+
- Tue, 26 Jan 2016 06:50:31 GMT
|
101
|
+
Set-Cookie:
|
102
|
+
- TS018aacab=01c9ad79a025320264ce7a4eae5889dd1780b483559b5488d42f2c11198aa3dd6e78869123; Path=/
|
103
|
+
Pragma:
|
104
|
+
- no-cache
|
105
|
+
Content-Length:
|
106
|
+
- "245"
|
107
|
+
Content-Type:
|
108
|
+
- application/json;charset=UTF-8
|
109
109
|
body:
|
110
|
-
string: "{\"3DSecure\":{\"summaryStatus\":\"CARD_NOT_ENROLLED\",\"xid\":\"
|
110
|
+
string: "{\"3DSecure\":{\"summaryStatus\":\"CARD_NOT_ENROLLED\",\"xid\":\"4baabZ/7PTv07sScLX2b74m9fZQ=\"},\"3DSecureId\":\"2f304d5be2a9390013eeb52a5b5cb029d0978a51\",\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"response\":{\"3DSecure\":{\"gatewayCode\":\"NOT_ENROLLED_NO_ERROR_DETAILS\"}}}"
|
111
111
|
http_version:
|
112
|
-
recorded_at:
|
112
|
+
recorded_at: Tue, 26 Jan 2016 06:50:31 GMT
|