tns_payments 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,38 @@
1
+ ---
2
+ recorded_with: VCR 2.9.3
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/information
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Content-Type:
13
+ - Application/json;charset=UTF-8
14
+ Accept-Encoding:
15
+ - gzip, deflate
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Content-Length:
22
+ - "51"
23
+ Content-Type:
24
+ - 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
+ body:
36
+ string: "{\"gatewayVersion\":\"5.24.5-1R\",\"status\":\"OPERATING\"}"
37
+ http_version:
38
+ recorded_at: Mon, 11 Jan 2016 23:51:10 GMT
@@ -0,0 +1,112 @@
1
+ ---
2
+ recorded_with: VCR 2.9.3
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_3DS_MERCHANT_ID>/session
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Content-Type:
13
+ - Application/json;charset=UTF-8
14
+ Accept-Encoding:
15
+ - gzip, deflate
16
+ response:
17
+ status:
18
+ code: 201
19
+ message: Created
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
+ Expires:
30
+ - "0"
31
+ Set-Cookie:
32
+ - TS018aacab=01c9ad79a029b5da654c68dc170cba39ea1d91c850daa6f3b9e6fbda7ceea955638c147083; Path=/
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ body:
36
+ string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"SESSION0002652865288J0824240H65\",\"updateStatus\":\"NO_UPDATE\",\"version\":\"6fdc04df01\"}}"
37
+ http_version:
38
+ recorded_at: Mon, 11 Jan 2016 23:51:12 GMT
39
+ - request:
40
+ method: put
41
+ uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_3DS_MERCHANT_ID>/session/SESSION0002652865288J0824240H65
42
+ body:
43
+ string: "{\"sourceOfFunds\":{\"type\":\"CARD\",\"provided\":{\"card\":{\"number\":\"4508750015741019\",\"expiry\":{\"month\":\"05\",\"year\":\"17\"},\"securityCode\":\"123\"}}}}"
44
+ headers:
45
+ Accept:
46
+ - "*/*"
47
+ Content-Length:
48
+ - "140"
49
+ Content-Type:
50
+ - Application/json;charset=UTF-8
51
+ Accept-Encoding:
52
+ - gzip, deflate
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
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
+ Expires:
67
+ - "0"
68
+ Set-Cookie:
69
+ - TS018aacab=01c9ad79a02b4240fa2d72a2c64687ed3be60fa49b0d89bafd246da63efe3077ab9d703c66; Path=/
70
+ Cache-Control:
71
+ - no-cache, no-store, must-revalidate
72
+ body:
73
+ string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"session\":{\"id\":\"SESSION0002652865288J0824240H65\",\"updateStatus\":\"SUCCESS\",\"version\":\"739704e802\"},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"VISA\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"DEBIT\",\"number\":\"450875xxxxxx1019\",\"scheme\":\"VISA\",\"securityCode\":\"xxx\"}},\"type\":\"CARD\"},\"version\":\"32\"}"
74
+ http_version:
75
+ recorded_at: Mon, 11 Jan 2016 23:51:13 GMT
76
+ - request:
77
+ method: put
78
+ uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_3DS_MERCHANT_ID>/3DSecureId/b08fff87998d20605f134b632cb8fa3398008116
79
+ body:
80
+ string: "{\"apiOperation\":\"CHECK_3DS_ENROLLMENT\",\"3DSecure\":{\"authenticationRedirect\":{\"pageGenerationMode\":\"CUSTOMIZED\",\"responseUrl\":\"http://google.com\"}},\"session\":{\"id\":\"SESSION0002652865288J0824240H65\"},\"order\":{\"amount\":\"100.00\",\"currency\":\"GBP\"}}"
81
+ headers:
82
+ Accept:
83
+ - "*/*"
84
+ Content-Length:
85
+ - "243"
86
+ Content-Type:
87
+ - Application/json;charset=UTF-8
88
+ Accept-Encoding:
89
+ - gzip, deflate
90
+ response:
91
+ status:
92
+ code: 201
93
+ message: Created
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
+ Expires:
104
+ - "0"
105
+ Set-Cookie:
106
+ - TS018aacab=01c9ad79a09a2ee8278050933bb52a00b5836463b8cfa1be4533dd9ab1067ef26f3dff9b0e; Path=/
107
+ Cache-Control:
108
+ - no-cache, no-store, must-revalidate
109
+ body:
110
+ string: "{\"3DSecure\":{\"authenticationRedirect\":{\"customized\":{\"acsUrl\":\"https://secure.ap.tnspayments.com:443/acs/VisaACS/34744c32-e862-4051-91ba-b73194062a69\",\"paReq\":\"eAFVUdtugkAUfDfxHwivppzdFYqY4xovbbW3mGrjM4WNkAjoig1+T/+kX9azoLXlaWeWmT0zB4dVtrU+lT6kRT6wucNsS+VREaf5ZmC/r+5vevZQtlu4SrRS06WKjlpJfFGHQ7hRVhqThns+933PtSUuRm9qL/HsJ8nOEQgXSDIdJWFeSgyj/Xj+Kl0RMOEinCFmSs+nsivcIBA+Z82H0NCYh5mSd+R2isOTNVO6sJ7LGKHmMSqOealPsiduES4Aj3ork7Lc9QEUKUmYkM6JigzB3CFch1oczXgHylelsfSS9Qesik4+fYR9kE6h4pN1J1s+bYsBgvkD47BUUjB+yzjnluj2Pd7nFLjmMczMRPJhvLC+vyiMwxglbUjcmbdGDaiDIvylkHrWtIhLnAtCVe2KXJEtPfN7RriOPpmZdqOSenQ91vM9xmhBLmc8MD3XF8Ylpaq4z7zaxgAEI4XzCqmWesXE/Ft9u/UDKJS0+g==\"}},\"summaryStatus\":\"CARD_ENROLLED\",\"xid\":\"5hWb/To+nDJ/q9iD/x1CW+mSKlo=\"},\"3DSecureId\":\"b08fff87998d20605f134b632cb8fa3398008116\",\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"response\":{\"3DSecure\":{\"gatewayCode\":\"CARD_ENROLLED\"}}}"
111
+ http_version:
112
+ recorded_at: Mon, 11 Jan 2016 23:51:13 GMT
@@ -0,0 +1,112 @@
1
+ ---
2
+ recorded_with: VCR 2.9.3
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_3DS_MERCHANT_ID>/session
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Content-Type:
13
+ - Application/json;charset=UTF-8
14
+ Accept-Encoding:
15
+ - gzip, deflate
16
+ response:
17
+ status:
18
+ code: 201
19
+ message: Created
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
+ Expires:
30
+ - "0"
31
+ Set-Cookie:
32
+ - TS018aacab=01c9ad79a0f15bc1f946ec22d18c6d95739f3531081dfd0ea76b5ec2c2788c896cdf0314cb; Path=/
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ body:
36
+ string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"SESSION0002191533352I7905086J67\",\"updateStatus\":\"NO_UPDATE\",\"version\":\"a8eaa74601\"}}"
37
+ http_version:
38
+ recorded_at: Mon, 11 Jan 2016 23:51:11 GMT
39
+ - request:
40
+ method: put
41
+ uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_3DS_MERCHANT_ID>/session/SESSION0002191533352I7905086J67
42
+ body:
43
+ string: "{\"sourceOfFunds\":{\"type\":\"CARD\",\"provided\":{\"card\":{\"number\":\"4005550000000001\",\"expiry\":{\"month\":\"05\",\"year\":\"17\"},\"securityCode\":\"123\"}}}}"
44
+ headers:
45
+ Accept:
46
+ - "*/*"
47
+ Content-Length:
48
+ - "140"
49
+ Content-Type:
50
+ - Application/json;charset=UTF-8
51
+ Accept-Encoding:
52
+ - gzip, deflate
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
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
+ Expires:
67
+ - "0"
68
+ Set-Cookie:
69
+ - TS018aacab=01c9ad79a0770a7b0d257d1a1289b57f4a3ea7c694e4bc14156f8bf1585296d21c1214f58e; Path=/
70
+ Cache-Control:
71
+ - no-cache, no-store, must-revalidate
72
+ body:
73
+ string: "{\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"session\":{\"id\":\"SESSION0002191533352I7905086J67\",\"updateStatus\":\"SUCCESS\",\"version\":\"db2cb52202\"},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"VISA\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"CREDIT\",\"number\":\"400555xxxxxx0001\",\"scheme\":\"VISA\",\"securityCode\":\"xxx\"}},\"type\":\"CARD\"},\"version\":\"32\"}"
74
+ http_version:
75
+ recorded_at: Mon, 11 Jan 2016 23:51:11 GMT
76
+ - request:
77
+ method: put
78
+ uri: https://merchant.<TNS_3DS_MERCHANT_ID>:<TNS_3DS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_3DS_MERCHANT_ID>/3DSecureId/ead98e0e365d07598a35ba682210564193928571
79
+ body:
80
+ string: "{\"apiOperation\":\"CHECK_3DS_ENROLLMENT\",\"3DSecure\":{\"authenticationRedirect\":{\"pageGenerationMode\":\"CUSTOMIZED\",\"responseUrl\":\"http://google.com\"}},\"session\":{\"id\":\"SESSION0002191533352I7905086J67\"},\"order\":{\"amount\":\"100.00\",\"currency\":\"GBP\"}}"
81
+ headers:
82
+ Accept:
83
+ - "*/*"
84
+ Content-Length:
85
+ - "243"
86
+ Content-Type:
87
+ - Application/json;charset=UTF-8
88
+ Accept-Encoding:
89
+ - gzip, deflate
90
+ response:
91
+ status:
92
+ code: 201
93
+ message: Created
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
+ Expires:
104
+ - "0"
105
+ Set-Cookie:
106
+ - TS018aacab=01c9ad79a0a260c065f3157c40cf6d24330185014ca69943d9611db0e0910a26c13bb73c9d; Path=/
107
+ Cache-Control:
108
+ - no-cache, no-store, must-revalidate
109
+ body:
110
+ string: "{\"3DSecure\":{\"summaryStatus\":\"CARD_NOT_ENROLLED\",\"xid\":\"a5rNJDbJGpGHlIiwUbyVwU7YTDo=\"},\"3DSecureId\":\"ead98e0e365d07598a35ba682210564193928571\",\"merchant\":\"<TNS_3DS_MERCHANT_ID>\",\"response\":{\"3DSecure\":{\"gatewayCode\":\"NOT_ENROLLED_NO_ERROR_DETAILS\"}}}"
111
+ http_version:
112
+ recorded_at: Mon, 11 Jan 2016 23:51:12 GMT
@@ -0,0 +1,223 @@
1
+ ---
2
+ recorded_with: VCR 2.9.3
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_MERCHANT_ID>/session
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Content-Type:
13
+ - Application/json;charset=UTF-8
14
+ Accept-Encoding:
15
+ - gzip, deflate
16
+ response:
17
+ status:
18
+ code: 201
19
+ message: Created
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:07 GMT
27
+ Pragma:
28
+ - no-cache
29
+ Expires:
30
+ - "0"
31
+ Set-Cookie:
32
+ - TS018aacab=01c9ad79a0d2909370b4731bf1b1bc5a6844774c9363226d64a3578af6d373c1ec758730ce; Path=/
33
+ Cache-Control:
34
+ - no-cache, no-store, must-revalidate
35
+ body:
36
+ string: "{\"merchant\":\"<TNS_MERCHANT_ID>\",\"result\":\"SUCCESS\",\"session\":{\"id\":\"SESSION0002495472387G6028156L06\",\"updateStatus\":\"NO_UPDATE\",\"version\":\"2e8d2b2001\"}}"
37
+ http_version:
38
+ recorded_at: Mon, 11 Jan 2016 23:51:08 GMT
39
+ - request:
40
+ method: put
41
+ uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_MERCHANT_ID>/session/SESSION0002495472387G6028156L06
42
+ body:
43
+ string: "{\"sourceOfFunds\":{\"type\":\"CARD\",\"provided\":{\"card\":{\"number\":\"4005550000000001\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"securityCode\":\"123\"}}}}"
44
+ headers:
45
+ Accept:
46
+ - "*/*"
47
+ Content-Length:
48
+ - "139"
49
+ Content-Type:
50
+ - Application/json;charset=UTF-8
51
+ Accept-Encoding:
52
+ - gzip, deflate
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
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:07 GMT
64
+ Pragma:
65
+ - no-cache
66
+ Expires:
67
+ - "0"
68
+ Set-Cookie:
69
+ - TS018aacab=01c9ad79a07ea1e6f1bfe0788b1a03ed52ea0ab75b6afa5caa929dab297e6d78d4ae98a1b0; Path=/
70
+ Cache-Control:
71
+ - no-cache, no-store, must-revalidate
72
+ body:
73
+ string: "{\"merchant\":\"<TNS_MERCHANT_ID>\",\"session\":{\"id\":\"SESSION0002495472387G6028156L06\",\"updateStatus\":\"SUCCESS\",\"version\":\"0abbb96a02\"},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"VISA\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"CREDIT\",\"number\":\"400555xxxxxx0001\",\"scheme\":\"VISA\",\"securityCode\":\"xxx\"}},\"type\":\"CARD\"},\"version\":\"32\"}"
74
+ http_version:
75
+ recorded_at: Mon, 11 Jan 2016 23:51:09 GMT
76
+ - request:
77
+ method: post
78
+ uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_MERCHANT_ID>/token
79
+ body:
80
+ string: "{\"session\":{\"id\":\"SESSION0002495472387G6028156L06\"},\"sourceOfFunds\":{\"type\":\"CARD\"}}"
81
+ headers:
82
+ Accept:
83
+ - "*/*"
84
+ Content-Length:
85
+ - "84"
86
+ Content-Type:
87
+ - Application/json;charset=UTF-8
88
+ Accept-Encoding:
89
+ - gzip, deflate
90
+ response:
91
+ status:
92
+ code: 201
93
+ message: Created
94
+ headers:
95
+ Content-Length:
96
+ - "495"
97
+ Content-Type:
98
+ - application/json;charset=UTF-8
99
+ Date:
100
+ - Mon, 11 Jan 2016 23:51:08 GMT
101
+ Pragma:
102
+ - no-cache
103
+ Expires:
104
+ - "0"
105
+ Set-Cookie:
106
+ - TS018aacab=01c9ad79a0795c6f3fb6c5d146220029228af1beaf40e33192893b404de1ae68c823eb7c42; Path=/
107
+ Cache-Control:
108
+ - no-cache, no-store, must-revalidate
109
+ body:
110
+ string: "{\"repositoryId\":\"TESTSUELDO\",\"response\":{\"gatewayCode\":\"BASIC_VERIFICATION_SUCCESSFUL\"},\"result\":\"SUCCESS\",\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"VISA\",\"expiry\":\"0517\",\"fundingMethod\":\"CREDIT\",\"issuer\":\"JPMORGAN CHASE BANK, N.A.\",\"number\":\"400555xxxxxx0001\",\"scheme\":\"VISA\"}},\"type\":\"CARD\"},\"status\":\"VALID\",\"token\":\"9719104881011566\",\"usage\":{\"lastUpdated\":\"2016-01-11T23:51:08.298Z\",\"lastUpdatedBy\":\"<TNS_MERCHANT_ID>\",\"lastUsed\":\"2016-01-11T23:51:08.298Z\"},\"verificationStrategy\":\"BASIC\"}"
111
+ http_version:
112
+ recorded_at: Mon, 11 Jan 2016 23:51:09 GMT
113
+ - request:
114
+ method: put
115
+ uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_MERCHANT_ID>/order/10000001606/transaction/PAY
116
+ body:
117
+ string: "{\"apiOperation\":\"PAY\",\"order\":{\"amount\":\"100.00\",\"currency\":\"EUR\",\"reference\":\"PAY\"},\"transaction\":{\"reference\":\"PAY\"},\"sourceOfFunds\":{\"type\":\"CARD\",\"token\":\"9719104881011566\"}}"
118
+ headers:
119
+ Accept:
120
+ - "*/*"
121
+ Content-Length:
122
+ - "178"
123
+ Content-Type:
124
+ - Application/json;charset=UTF-8
125
+ Accept-Encoding:
126
+ - gzip, deflate
127
+ response:
128
+ status:
129
+ code: 201
130
+ message: Created
131
+ headers:
132
+ Content-Length:
133
+ - "1403"
134
+ Content-Type:
135
+ - application/json;charset=UTF-8
136
+ Date:
137
+ - Mon, 11 Jan 2016 23:51:09 GMT
138
+ Pragma:
139
+ - no-cache
140
+ Expires:
141
+ - "0"
142
+ Set-Cookie:
143
+ - TS018aacab=01c9ad79a0bbf11fe2568b18a7d82c491586818d25a09bb67b1832f871a1fc37009ed91953; Path=/
144
+ Cache-Control:
145
+ - no-cache, no-store, must-revalidate
146
+ body:
147
+ string: "{\"gatewayEntryPoint\":\"WEB_SERVICES_API\",\"merchant\":\"<TNS_MERCHANT_ID>\",\"order\":{\"amount\":100.00,\"creationTime\":\"2016-01-11T23:51:08.777Z\",\"currency\":\"EUR\",\"id\":\"10000001606\",\"reference\":\"PAY\",\"status\":\"CAPTURED\",\"totalAuthorizedAmount\":100.00,\"totalCapturedAmount\":100.00,\"totalRefundedAmount\":0.00},\"response\":{\"acquirerCode\":\"00\",\"acquirerMessage\":\"Approved\",\"gatewayCode\":\"APPROVED\"},\"result\":\"SUCCESS\",\"risk\":{\"response\":{\"gatewayCode\":\"ACCEPTED\",\"review\":{\"decision\":\"NOT_REQUIRED\"},\"rule\":[{\"data\":\"400555\",\"name\":\"MERCHANT_BIN_RANGE\",\"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\":\"400555\",\"name\":\"MSO_BIN_RANGE\",\"recommendation\":\"NO_ACTION\",\"type\":\"MSO_RULE\"}]}},\"sourceOfFunds\":{\"provided\":{\"card\":{\"brand\":\"VISA\",\"expiry\":{\"month\":\"5\",\"year\":\"17\"},\"fundingMethod\":\"CREDIT\",\"issuer\":\"JPMORGAN CHASE BANK, N.A.\",\"number\":\"400555xxxxxx0001\",\"scheme\":\"VISA\"}},\"token\":\"9719104881011566\",\"type\":\"CARD\"},\"timeOfRecord\":\"2016-01-11T23:51:08.777Z\",\"transaction\":{\"acquirer\":{\"batch\":1,\"id\":\"AIB\",\"merchantId\":\"011855511\"},\"amount\":100.00,\"authorizationCode\":\"029330\",\"currency\":\"EUR\",\"frequency\":\"SINGLE\",\"id\":\"PAY\",\"receipt\":\"AAAAC5BM6Y\",\"reference\":\"PAY\",\"source\":\"MOTO\",\"terminal\":\"31208585\",\"type\":\"PAYMENT\"},\"version\":\"32\"}"
148
+ http_version:
149
+ recorded_at: Mon, 11 Jan 2016 23:51:10 GMT
150
+ - request:
151
+ method: delete
152
+ uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_MERCHANT_ID>/token/9719104881011566
153
+ body:
154
+ string: ""
155
+ headers:
156
+ Accept:
157
+ - "*/*"
158
+ Content-Type:
159
+ - Application/json;charset=UTF-8
160
+ Accept-Encoding:
161
+ - gzip, deflate
162
+ response:
163
+ status:
164
+ code: 200
165
+ message: OK
166
+ headers:
167
+ Content-Length:
168
+ - "20"
169
+ Content-Type:
170
+ - application/json;charset=UTF-8
171
+ Date:
172
+ - Mon, 11 Jan 2016 23:51:09 GMT
173
+ Pragma:
174
+ - no-cache
175
+ Expires:
176
+ - "0"
177
+ Set-Cookie:
178
+ - TS018aacab=01c9ad79a08551ea62994318e00f2ecb8e8ae28cd34648d8e5b3acfb35000d6c1dab6fc091; Path=/
179
+ Cache-Control:
180
+ - no-cache, no-store, must-revalidate
181
+ body:
182
+ string: "{\"result\":\"SUCCESS\"}"
183
+ http_version:
184
+ recorded_at: Mon, 11 Jan 2016 23:51:10 GMT
185
+ - request:
186
+ method: put
187
+ uri: https://merchant.<TNS_MERCHANT_ID>:<TNS_API_KEY>@secure.ap.tnspayments.com/api/rest/version/32/merchant/<TNS_MERCHANT_ID>/order/10000001607/transaction/PAY
188
+ body:
189
+ string: "{\"apiOperation\":\"PAY\",\"order\":{\"amount\":\"100.00\",\"currency\":\"EUR\",\"reference\":\"PAY\"},\"transaction\":{\"reference\":\"PAY\"},\"sourceOfFunds\":{\"type\":\"CARD\",\"token\":\"9719104881011566\"}}"
190
+ headers:
191
+ Accept:
192
+ - "*/*"
193
+ Content-Length:
194
+ - "178"
195
+ Content-Type:
196
+ - Application/json;charset=UTF-8
197
+ Accept-Encoding:
198
+ - gzip, deflate
199
+ response:
200
+ status:
201
+ code: 400
202
+ message: Bad Request
203
+ headers:
204
+ Content-Length:
205
+ - "86"
206
+ Content-Type:
207
+ - application/json;charset=UTF-8
208
+ Date:
209
+ - Mon, 11 Jan 2016 23:51:09 GMT
210
+ Pragma:
211
+ - no-cache
212
+ Expires:
213
+ - "0"
214
+ Set-Cookie:
215
+ - TS018aacab=01c9ad79a0d0065a0e664034c530b697cef75238311391fe53ca6dfaed320a36f82431d720; Path=/
216
+ Cache-Control:
217
+ - no-cache, no-store, must-revalidate
218
+ X-Cnection:
219
+ - close
220
+ body:
221
+ string: "{\"error\":{\"cause\":\"INVALID_REQUEST\",\"explanation\":\"Token not found\"},\"result\":\"ERROR\"}"
222
+ http_version:
223
+ recorded_at: Mon, 11 Jan 2016 23:51:10 GMT