Skip to content

Commit b937cb7

Browse files
ci(cypress): fix worldpayxml, and deutschebank cypress test cases (#8193)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
1 parent 41291e5 commit b937cb7

File tree

6 files changed

+360
-35
lines changed

6 files changed

+360
-35
lines changed

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

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { customerAcceptance } from "./Commons";
2+
13
const successful3DSCardDetails = {
24
card_number: "4761739090000088",
35
card_exp_month: "12",
@@ -6,6 +8,24 @@ const successful3DSCardDetails = {
68
card_cvc: "123",
79
};
810

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+
929
export const connectorDetails = {
1030
card_pm: {
1131
PaymentIntent: {
@@ -34,6 +54,7 @@ export const connectorDetails = {
3454
status: 200,
3555
body: {
3656
status: "requires_customer_action",
57+
payment_method_data: paymentMethodData3DSResponse,
3758
},
3859
},
3960
},
@@ -52,6 +73,7 @@ export const connectorDetails = {
5273
status: 200,
5374
body: {
5475
status: "requires_customer_action",
76+
payment_method_data: paymentMethodData3DSResponse,
5577
},
5678
},
5779
},
@@ -192,5 +214,77 @@ export const connectorDetails = {
192214
},
193215
},
194216
},
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+
},
195289
},
196290
};

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,14 @@ export const CONNECTOR_LISTS = {
360360
"billwerk",
361361
"braintree",
362362
"facilitapay",
363-
"fiuu",
364363
"fiserv",
364+
"fiuu",
365365
"jpmorgan",
366366
"nexinets",
367367
"paypal",
368368
"stax",
369369
"wellsfargo",
370+
"worldpayxml",
370371
],
371372
// Add more exclusion lists
372373
},

0 commit comments

Comments
 (0)