Skip to content

Commit 295192e

Browse files
Sayak BhattacharyaSayak Bhattacharya
authored andcommitted
fix: removed cypress changes
1 parent 4b65e2f commit 295192e

File tree

1 file changed

+3
-49
lines changed

1 file changed

+3
-49
lines changed

cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
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-
111
const successfulNo3DSCardDetails = {
122
card_number: "4111111111111111",
133
card_exp_month: "08",
@@ -84,7 +74,6 @@ export const connectorDetails = {
8474
card_pm: {
8575
PaymentIntent: {
8676
Request: {
87-
payment_id: generateRandomAlphanumeric(16),
8877
currency: "EUR",
8978
amount: 6000,
9079
customer_acceptance: null,
@@ -100,7 +89,6 @@ export const connectorDetails = {
10089
},
10190
PaymentIntentOffSession: {
10291
Request: {
103-
payment_id: generateRandomAlphanumeric(16),
10492
currency: "EUR",
10593
amount: 6000,
10694
authentication_type: "no_three_ds",
@@ -119,9 +107,7 @@ export const connectorDetails = {
119107
Configs: {
120108
TRIGGER_SKIP: true,
121109
},
122-
Request: {
123-
payment_id: generateRandomAlphanumeric(16),
124-
},
110+
Request: {},
125111
Response: {
126112
status: 200,
127113
body: {
@@ -133,9 +119,7 @@ export const connectorDetails = {
133119
Configs: {
134120
TRIGGER_SKIP: true,
135121
},
136-
Request: {
137-
payment_id: generateRandomAlphanumeric(16),
138-
},
122+
Request: {},
139123
Response: {
140124
status: 200,
141125
body: {
@@ -148,7 +132,6 @@ export const connectorDetails = {
148132
TRIGGER_SKIP: true,
149133
},
150134
Request: {
151-
payment_id: generateRandomAlphanumeric(16),
152135
payment_method: "card",
153136
billing: billingAddress,
154137
payment_method_data: {
@@ -169,7 +152,6 @@ export const connectorDetails = {
169152
TRIGGER_SKIP: true,
170153
},
171154
Request: {
172-
payment_id: generateRandomAlphanumeric(16),
173155
payment_method: "card",
174156
billing: billingAddress,
175157
payment_method_data: {
@@ -187,7 +169,6 @@ export const connectorDetails = {
187169
},
188170
No3DSManualCapture: {
189171
Request: {
190-
payment_id: generateRandomAlphanumeric(16),
191172
payment_method: "card",
192173
payment_method_data: {
193174
card: successfulNo3DSCardDetails,
@@ -204,7 +185,6 @@ export const connectorDetails = {
204185
},
205186
No3DSAutoCapture: {
206187
Request: {
207-
payment_id: generateRandomAlphanumeric(16),
208188
payment_method: "card",
209189
payment_method_data: {
210190
card: successfulNo3DSCardDetails,
@@ -224,7 +204,6 @@ export const connectorDetails = {
224204
TRIGGER_SKIP: true,
225205
},
226206
Request: {
227-
payment_id: generateRandomAlphanumeric(16),
228207
amount_to_capture: 6000,
229208
},
230209
Response: {
@@ -242,7 +221,6 @@ export const connectorDetails = {
242221
TRIGGER_SKIP: true,
243222
},
244223
Request: {
245-
payment_id: generateRandomAlphanumeric(16),
246224
amount_to_capture: 2000,
247225
},
248226
Response: {
@@ -256,9 +234,7 @@ export const connectorDetails = {
256234
},
257235
},
258236
Void: {
259-
Request: {
260-
payment_id: generateRandomAlphanumeric(16),
261-
},
237+
Request: {},
262238
Response: {
263239
status: 200,
264240
body: {
@@ -271,7 +247,6 @@ export const connectorDetails = {
271247
TRIGGER_SKIP: true,
272248
},
273249
Request: {
274-
payment_id: generateRandomAlphanumeric(16),
275250
amount: 6000,
276251
},
277252
Response: {
@@ -286,7 +261,6 @@ export const connectorDetails = {
286261
TRIGGER_SKIP: true,
287262
},
288263
Request: {
289-
payment_id: generateRandomAlphanumeric(16),
290264
amount: 2000,
291265
},
292266
Response: {
@@ -309,7 +283,6 @@ export const connectorDetails = {
309283
TRIGGER_SKIP: true,
310284
},
311285
Request: {
312-
payment_id: generateRandomAlphanumeric(16),
313286
payment_method: "card",
314287
payment_method_data: {
315288
card: successfulThreeDSTestCardDetails,
@@ -330,7 +303,6 @@ export const connectorDetails = {
330303
TRIGGER_SKIP: true,
331304
},
332305
Request: {
333-
payment_id: generateRandomAlphanumeric(16),
334306
payment_method: "card",
335307
payment_method_data: {
336308
card: successfulThreeDSTestCardDetails,
@@ -348,7 +320,6 @@ export const connectorDetails = {
348320
},
349321
MandateMultiUseNo3DSAutoCapture: {
350322
Request: {
351-
payment_id: generateRandomAlphanumeric(16),
352323
payment_method: "card",
353324
payment_method_data: {
354325
card: successfulNo3DSCardDetails,
@@ -364,7 +335,6 @@ export const connectorDetails = {
364335
},
365336
MandateMultiUseNo3DSManualCapture: {
366337
Request: {
367-
payment_id: generateRandomAlphanumeric(16),
368338
payment_method: "card",
369339
payment_method_data: {
370340
card: successfulNo3DSCardDetails,
@@ -380,7 +350,6 @@ export const connectorDetails = {
380350
},
381351
MandateSingleUse3DSAutoCapture: {
382352
Request: {
383-
payment_id: generateRandomAlphanumeric(16),
384353
payment_method: "card",
385354
payment_method_data: {
386355
card: successfulThreeDSTestCardDetails,
@@ -398,7 +367,6 @@ export const connectorDetails = {
398367
},
399368
MandateSingleUse3DSManualCapture: {
400369
Request: {
401-
payment_id: generateRandomAlphanumeric(16),
402370
payment_method: "card",
403371
payment_method_data: {
404372
card: successfulThreeDSTestCardDetails,
@@ -416,7 +384,6 @@ export const connectorDetails = {
416384
},
417385
MandateSingleUseNo3DSAutoCapture: {
418386
Request: {
419-
payment_id: generateRandomAlphanumeric(16),
420387
payment_method: "card",
421388
payment_method_data: {
422389
card: successfulNo3DSCardDetails,
@@ -432,7 +399,6 @@ export const connectorDetails = {
432399
},
433400
MandateSingleUseNo3DSManualCapture: {
434401
Request: {
435-
payment_id: generateRandomAlphanumeric(16),
436402
payment_method: "card",
437403
payment_method_data: {
438404
card: successfulNo3DSCardDetails,
@@ -451,7 +417,6 @@ export const connectorDetails = {
451417
TRIGGER_SKIP: true,
452418
},
453419
Request: {
454-
payment_id: generateRandomAlphanumeric(16),
455420
amount: 6000,
456421
},
457422
Response: {
@@ -463,7 +428,6 @@ export const connectorDetails = {
463428
},
464429
ZeroAuthPaymentIntent: {
465430
Request: {
466-
payment_id: generateRandomAlphanumeric(16),
467431
amount: 0,
468432
setup_future_usage: "off_session",
469433
currency: "EUR",
@@ -478,7 +442,6 @@ export const connectorDetails = {
478442
},
479443
ZeroAuthMandate: {
480444
Request: {
481-
payment_id: generateRandomAlphanumeric(16),
482445
payment_method: "card",
483446
payment_method_data: {
484447
card: successfulNo3DSCardDetails,
@@ -494,7 +457,6 @@ export const connectorDetails = {
494457
},
495458
ZeroAuthConfirmPayment: {
496459
Request: {
497-
payment_id: generateRandomAlphanumeric(16),
498460
payment_type: "setup_mandate",
499461
payment_method: "card",
500462
payment_method_type: "credit",
@@ -514,7 +476,6 @@ export const connectorDetails = {
514476
TRIGGER_SKIP: true,
515477
},
516478
Request: {
517-
payment_id: generateRandomAlphanumeric(16),
518479
payment_method: "card",
519480
payment_method_data: {
520481
card: successfulThreeDSTestCardDetails,
@@ -536,7 +497,6 @@ export const connectorDetails = {
536497
TRIGGER_SKIP: true,
537498
},
538499
Request: {
539-
payment_id: generateRandomAlphanumeric(16),
540500
payment_method: "card",
541501
payment_method_data: {
542502
card: successfulThreeDSTestCardDetails,
@@ -558,7 +518,6 @@ export const connectorDetails = {
558518
TRIGGER_SKIP: true,
559519
},
560520
Request: {
561-
payment_id: generateRandomAlphanumeric(16),
562521
payment_method: "card",
563522
payment_method_data: {
564523
card: successfulThreeDSTestCardDetails,
@@ -581,7 +540,6 @@ export const connectorDetails = {
581540
TRIGGER_SKIP: true,
582541
},
583542
Request: {
584-
payment_id: generateRandomAlphanumeric(16),
585543
payment_method: "card",
586544
payment_method_data: {
587545
card: successfulThreeDSTestCardDetails,
@@ -604,7 +562,6 @@ export const connectorDetails = {
604562
TRIGGER_SKIP: true,
605563
},
606564
Request: {
607-
payment_id: generateRandomAlphanumeric(16),
608565
payment_method: "card",
609566
payment_method_type: "debit",
610567
payment_method_data: {
@@ -627,7 +584,6 @@ export const connectorDetails = {
627584
TRIGGER_SKIP: true,
628585
},
629586
Request: {
630-
payment_id: generateRandomAlphanumeric(16),
631587
payment_method: "card",
632588
currency: "EUR",
633589
billing: billingAddress,
@@ -650,7 +606,6 @@ export const connectorDetails = {
650606
TRIGGER_SKIP: true,
651607
},
652608
Request: {
653-
payment_id: generateRandomAlphanumeric(16),
654609
payment_method: "card",
655610
currency: "EUR",
656611
billing: billingAddress,
@@ -673,7 +628,6 @@ export const connectorDetails = {
673628
TRIGGER_SKIP: true,
674629
},
675630
Request: {
676-
payment_id: generateRandomAlphanumeric(16),
677631
payment_method: "card",
678632
currency: "EUR",
679633
billing: billingAddress,

0 commit comments

Comments
 (0)