1
+ import { customerAcceptance } from "./Commons" ;
2
+
1
3
const successful3DSCardDetails = {
2
4
card_number : "4761739090000088" ,
3
5
card_exp_month : "12" ,
@@ -6,6 +8,24 @@ const successful3DSCardDetails = {
6
8
card_cvc : "123" ,
7
9
} ;
8
10
11
+ const paymentMethodData3DSResponse = {
12
+ card : {
13
+ last4 : "0088" ,
14
+ card_type : "DEBIT" ,
15
+ card_network : "Visa" ,
16
+ card_issuer : "INTL HDQTRS-CENTER OWNED" ,
17
+ card_issuing_country : "UNITEDSTATES" ,
18
+ card_isin : "476173" ,
19
+ card_extended_bin : null ,
20
+ card_exp_month : "12" ,
21
+ card_exp_year : "2034" ,
22
+ card_holder_name : "John Doe" ,
23
+ payment_checks : null ,
24
+ authentication_data : null ,
25
+ } ,
26
+ billing : null ,
27
+ } ;
28
+
9
29
export const connectorDetails = {
10
30
card_pm : {
11
31
PaymentIntent : {
@@ -34,6 +54,7 @@ export const connectorDetails = {
34
54
status : 200 ,
35
55
body : {
36
56
status : "requires_customer_action" ,
57
+ payment_method_data : paymentMethodData3DSResponse ,
37
58
} ,
38
59
} ,
39
60
} ,
@@ -52,6 +73,7 @@ export const connectorDetails = {
52
73
status : 200 ,
53
74
body : {
54
75
status : "requires_customer_action" ,
76
+ payment_method_data : paymentMethodData3DSResponse ,
55
77
} ,
56
78
} ,
57
79
} ,
@@ -192,5 +214,77 @@ export const connectorDetails = {
192
214
} ,
193
215
} ,
194
216
} ,
217
+ ZeroAuthMandate : {
218
+ Configs : {
219
+ TRIGGER_SKIP : true ,
220
+ } ,
221
+ Response : {
222
+ status : 200 ,
223
+ body : {
224
+ amount : 0 ,
225
+ status : "processing" ,
226
+ } ,
227
+ } ,
228
+ } ,
229
+ PaymentMethodIdMandate3DSAutoCapture : {
230
+ Configs : {
231
+ TRIGGER_SKIP : true ,
232
+ } ,
233
+ Request : {
234
+ payment_method : "card" ,
235
+ payment_method_data : {
236
+ card : successful3DSCardDetails ,
237
+ } ,
238
+ currency : "USD" ,
239
+ mandate_data : null ,
240
+ authentication_type : "three_ds" ,
241
+ customer_acceptance : customerAcceptance ,
242
+ } ,
243
+ Response : {
244
+ status : 200 ,
245
+ body : {
246
+ status : "requires_customer_action" ,
247
+ payment_method_data : paymentMethodData3DSResponse ,
248
+ } ,
249
+ } ,
250
+ } ,
251
+ PaymentMethodIdMandate3DSManualCapture : {
252
+ Configs : {
253
+ TRIGGER_SKIP : true ,
254
+ } ,
255
+ Request : {
256
+ payment_method : "card" ,
257
+ payment_method_data : {
258
+ card : successful3DSCardDetails ,
259
+ } ,
260
+ mandate_data : null ,
261
+ authentication_type : "three_ds" ,
262
+ customer_acceptance : customerAcceptance ,
263
+ } ,
264
+ Response : {
265
+ status : 200 ,
266
+ body : {
267
+ status : "requires_customer_action" ,
268
+ payment_method_data : paymentMethodData3DSResponse ,
269
+ } ,
270
+ } ,
271
+ } ,
272
+ ZeroAuthPaymentIntent : {
273
+ Configs : {
274
+ TRIGGER_SKIP : true ,
275
+ } ,
276
+ Request : {
277
+ amount : 0 ,
278
+ setup_future_usage : "off_session" ,
279
+ currency : "USD" ,
280
+ } ,
281
+ Response : {
282
+ status : 200 ,
283
+ body : {
284
+ status : "requires_payment_method" ,
285
+ setup_future_usage : "off_session" ,
286
+ } ,
287
+ } ,
288
+ } ,
195
289
} ,
196
290
} ;
0 commit comments