1
- const generateRandomAlphanumeric = ( length ) => {
2
- const characters =
3
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" ;
4
- let result = "" ;
5
- for ( let i = 0 ; i < length ; i ++ ) {
6
- result += characters . charAt ( Math . floor ( Math . random ( ) * characters . length ) ) ;
7
- }
8
- return result ;
9
- } ;
10
-
11
1
const successfulNo3DSCardDetails = {
12
2
card_number : "4111111111111111" ,
13
3
card_exp_month : "08" ,
@@ -84,7 +74,6 @@ export const connectorDetails = {
84
74
card_pm : {
85
75
PaymentIntent : {
86
76
Request : {
87
- payment_id : generateRandomAlphanumeric ( 16 ) ,
88
77
currency : "EUR" ,
89
78
amount : 6000 ,
90
79
customer_acceptance : null ,
@@ -100,7 +89,6 @@ export const connectorDetails = {
100
89
} ,
101
90
PaymentIntentOffSession : {
102
91
Request : {
103
- payment_id : generateRandomAlphanumeric ( 16 ) ,
104
92
currency : "EUR" ,
105
93
amount : 6000 ,
106
94
authentication_type : "no_three_ds" ,
@@ -119,9 +107,7 @@ export const connectorDetails = {
119
107
Configs : {
120
108
TRIGGER_SKIP : true ,
121
109
} ,
122
- Request : {
123
- payment_id : generateRandomAlphanumeric ( 16 ) ,
124
- } ,
110
+ Request : { } ,
125
111
Response : {
126
112
status : 200 ,
127
113
body : {
@@ -133,9 +119,7 @@ export const connectorDetails = {
133
119
Configs : {
134
120
TRIGGER_SKIP : true ,
135
121
} ,
136
- Request : {
137
- payment_id : generateRandomAlphanumeric ( 16 ) ,
138
- } ,
122
+ Request : { } ,
139
123
Response : {
140
124
status : 200 ,
141
125
body : {
@@ -148,7 +132,6 @@ export const connectorDetails = {
148
132
TRIGGER_SKIP : true ,
149
133
} ,
150
134
Request : {
151
- payment_id : generateRandomAlphanumeric ( 16 ) ,
152
135
payment_method : "card" ,
153
136
billing : billingAddress ,
154
137
payment_method_data : {
@@ -169,7 +152,6 @@ export const connectorDetails = {
169
152
TRIGGER_SKIP : true ,
170
153
} ,
171
154
Request : {
172
- payment_id : generateRandomAlphanumeric ( 16 ) ,
173
155
payment_method : "card" ,
174
156
billing : billingAddress ,
175
157
payment_method_data : {
@@ -187,7 +169,6 @@ export const connectorDetails = {
187
169
} ,
188
170
No3DSManualCapture : {
189
171
Request : {
190
- payment_id : generateRandomAlphanumeric ( 16 ) ,
191
172
payment_method : "card" ,
192
173
payment_method_data : {
193
174
card : successfulNo3DSCardDetails ,
@@ -204,7 +185,6 @@ export const connectorDetails = {
204
185
} ,
205
186
No3DSAutoCapture : {
206
187
Request : {
207
- payment_id : generateRandomAlphanumeric ( 16 ) ,
208
188
payment_method : "card" ,
209
189
payment_method_data : {
210
190
card : successfulNo3DSCardDetails ,
@@ -224,7 +204,6 @@ export const connectorDetails = {
224
204
TRIGGER_SKIP : true ,
225
205
} ,
226
206
Request : {
227
- payment_id : generateRandomAlphanumeric ( 16 ) ,
228
207
amount_to_capture : 6000 ,
229
208
} ,
230
209
Response : {
@@ -242,7 +221,6 @@ export const connectorDetails = {
242
221
TRIGGER_SKIP : true ,
243
222
} ,
244
223
Request : {
245
- payment_id : generateRandomAlphanumeric ( 16 ) ,
246
224
amount_to_capture : 2000 ,
247
225
} ,
248
226
Response : {
@@ -256,9 +234,7 @@ export const connectorDetails = {
256
234
} ,
257
235
} ,
258
236
Void : {
259
- Request : {
260
- payment_id : generateRandomAlphanumeric ( 16 ) ,
261
- } ,
237
+ Request : { } ,
262
238
Response : {
263
239
status : 200 ,
264
240
body : {
@@ -271,7 +247,6 @@ export const connectorDetails = {
271
247
TRIGGER_SKIP : true ,
272
248
} ,
273
249
Request : {
274
- payment_id : generateRandomAlphanumeric ( 16 ) ,
275
250
amount : 6000 ,
276
251
} ,
277
252
Response : {
@@ -286,7 +261,6 @@ export const connectorDetails = {
286
261
TRIGGER_SKIP : true ,
287
262
} ,
288
263
Request : {
289
- payment_id : generateRandomAlphanumeric ( 16 ) ,
290
264
amount : 2000 ,
291
265
} ,
292
266
Response : {
@@ -309,7 +283,6 @@ export const connectorDetails = {
309
283
TRIGGER_SKIP : true ,
310
284
} ,
311
285
Request : {
312
- payment_id : generateRandomAlphanumeric ( 16 ) ,
313
286
payment_method : "card" ,
314
287
payment_method_data : {
315
288
card : successfulThreeDSTestCardDetails ,
@@ -330,7 +303,6 @@ export const connectorDetails = {
330
303
TRIGGER_SKIP : true ,
331
304
} ,
332
305
Request : {
333
- payment_id : generateRandomAlphanumeric ( 16 ) ,
334
306
payment_method : "card" ,
335
307
payment_method_data : {
336
308
card : successfulThreeDSTestCardDetails ,
@@ -348,7 +320,6 @@ export const connectorDetails = {
348
320
} ,
349
321
MandateMultiUseNo3DSAutoCapture : {
350
322
Request : {
351
- payment_id : generateRandomAlphanumeric ( 16 ) ,
352
323
payment_method : "card" ,
353
324
payment_method_data : {
354
325
card : successfulNo3DSCardDetails ,
@@ -364,7 +335,6 @@ export const connectorDetails = {
364
335
} ,
365
336
MandateMultiUseNo3DSManualCapture : {
366
337
Request : {
367
- payment_id : generateRandomAlphanumeric ( 16 ) ,
368
338
payment_method : "card" ,
369
339
payment_method_data : {
370
340
card : successfulNo3DSCardDetails ,
@@ -380,7 +350,6 @@ export const connectorDetails = {
380
350
} ,
381
351
MandateSingleUse3DSAutoCapture : {
382
352
Request : {
383
- payment_id : generateRandomAlphanumeric ( 16 ) ,
384
353
payment_method : "card" ,
385
354
payment_method_data : {
386
355
card : successfulThreeDSTestCardDetails ,
@@ -398,7 +367,6 @@ export const connectorDetails = {
398
367
} ,
399
368
MandateSingleUse3DSManualCapture : {
400
369
Request : {
401
- payment_id : generateRandomAlphanumeric ( 16 ) ,
402
370
payment_method : "card" ,
403
371
payment_method_data : {
404
372
card : successfulThreeDSTestCardDetails ,
@@ -416,7 +384,6 @@ export const connectorDetails = {
416
384
} ,
417
385
MandateSingleUseNo3DSAutoCapture : {
418
386
Request : {
419
- payment_id : generateRandomAlphanumeric ( 16 ) ,
420
387
payment_method : "card" ,
421
388
payment_method_data : {
422
389
card : successfulNo3DSCardDetails ,
@@ -432,7 +399,6 @@ export const connectorDetails = {
432
399
} ,
433
400
MandateSingleUseNo3DSManualCapture : {
434
401
Request : {
435
- payment_id : generateRandomAlphanumeric ( 16 ) ,
436
402
payment_method : "card" ,
437
403
payment_method_data : {
438
404
card : successfulNo3DSCardDetails ,
@@ -451,7 +417,6 @@ export const connectorDetails = {
451
417
TRIGGER_SKIP : true ,
452
418
} ,
453
419
Request : {
454
- payment_id : generateRandomAlphanumeric ( 16 ) ,
455
420
amount : 6000 ,
456
421
} ,
457
422
Response : {
@@ -463,7 +428,6 @@ export const connectorDetails = {
463
428
} ,
464
429
ZeroAuthPaymentIntent : {
465
430
Request : {
466
- payment_id : generateRandomAlphanumeric ( 16 ) ,
467
431
amount : 0 ,
468
432
setup_future_usage : "off_session" ,
469
433
currency : "EUR" ,
@@ -478,7 +442,6 @@ export const connectorDetails = {
478
442
} ,
479
443
ZeroAuthMandate : {
480
444
Request : {
481
- payment_id : generateRandomAlphanumeric ( 16 ) ,
482
445
payment_method : "card" ,
483
446
payment_method_data : {
484
447
card : successfulNo3DSCardDetails ,
@@ -494,7 +457,6 @@ export const connectorDetails = {
494
457
} ,
495
458
ZeroAuthConfirmPayment : {
496
459
Request : {
497
- payment_id : generateRandomAlphanumeric ( 16 ) ,
498
460
payment_type : "setup_mandate" ,
499
461
payment_method : "card" ,
500
462
payment_method_type : "credit" ,
@@ -514,7 +476,6 @@ export const connectorDetails = {
514
476
TRIGGER_SKIP : true ,
515
477
} ,
516
478
Request : {
517
- payment_id : generateRandomAlphanumeric ( 16 ) ,
518
479
payment_method : "card" ,
519
480
payment_method_data : {
520
481
card : successfulThreeDSTestCardDetails ,
@@ -536,7 +497,6 @@ export const connectorDetails = {
536
497
TRIGGER_SKIP : true ,
537
498
} ,
538
499
Request : {
539
- payment_id : generateRandomAlphanumeric ( 16 ) ,
540
500
payment_method : "card" ,
541
501
payment_method_data : {
542
502
card : successfulThreeDSTestCardDetails ,
@@ -558,7 +518,6 @@ export const connectorDetails = {
558
518
TRIGGER_SKIP : true ,
559
519
} ,
560
520
Request : {
561
- payment_id : generateRandomAlphanumeric ( 16 ) ,
562
521
payment_method : "card" ,
563
522
payment_method_data : {
564
523
card : successfulThreeDSTestCardDetails ,
@@ -581,7 +540,6 @@ export const connectorDetails = {
581
540
TRIGGER_SKIP : true ,
582
541
} ,
583
542
Request : {
584
- payment_id : generateRandomAlphanumeric ( 16 ) ,
585
543
payment_method : "card" ,
586
544
payment_method_data : {
587
545
card : successfulThreeDSTestCardDetails ,
@@ -604,7 +562,6 @@ export const connectorDetails = {
604
562
TRIGGER_SKIP : true ,
605
563
} ,
606
564
Request : {
607
- payment_id : generateRandomAlphanumeric ( 16 ) ,
608
565
payment_method : "card" ,
609
566
payment_method_type : "debit" ,
610
567
payment_method_data : {
@@ -627,7 +584,6 @@ export const connectorDetails = {
627
584
TRIGGER_SKIP : true ,
628
585
} ,
629
586
Request : {
630
- payment_id : generateRandomAlphanumeric ( 16 ) ,
631
587
payment_method : "card" ,
632
588
currency : "EUR" ,
633
589
billing : billingAddress ,
@@ -650,7 +606,6 @@ export const connectorDetails = {
650
606
TRIGGER_SKIP : true ,
651
607
} ,
652
608
Request : {
653
- payment_id : generateRandomAlphanumeric ( 16 ) ,
654
609
payment_method : "card" ,
655
610
currency : "EUR" ,
656
611
billing : billingAddress ,
@@ -673,7 +628,6 @@ export const connectorDetails = {
673
628
TRIGGER_SKIP : true ,
674
629
} ,
675
630
Request : {
676
- payment_id : generateRandomAlphanumeric ( 16 ) ,
677
631
payment_method : "card" ,
678
632
currency : "EUR" ,
679
633
billing : billingAddress ,
0 commit comments