Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(cypress): fix Shift4 3DS redirect handling and Stax test config (#13937)
HS-QUALIBOT302896a83f6e
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stax.js b/cypress-tests/cypress/e2e/configs/Payment/Stax.jsindex 12a1fcacec..6930c2326e 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Stax.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Stax.js@@ -21,7 +21,7 @@ const successfulThreeDSCardDetails = {const failedCardDetails = {...successfulNo3DSCardDetails,- card_number: "4012888888881881", // Standard decline test card for stax - "Do Not Honor" response+ card_number: "6011000990139424", // Standard decline test card for stax - "Do Not Honor" response};export const fullNameRequiredField = {@@ -65,7 +65,7 @@ const payment_method_data_no3ds = {last4: "1111",card_type: "DEBIT",card_network: "Visa",- card_issuer: "Conotoxia Sp Z Oo",+ card_issuer: "CONOTOXIA SP Z OO",card_issuing_country: "POLAND",card_isin: "411111",card_extended_bin: null,@@ -215,6 +215,7 @@ export const connectorDetails = {},No3DSFailPayment: {Request: {+ amount: 9999,payment_method: "card",payment_method_data: {card: failedCardDetails,diff --git a/cypress-tests/cypress/support/redirectionHandler.js b/cypress-tests/cypress/support/redirectionHandler.jsindex 0a8f2fc4f4..8978649a57 100644--- a/cypress-tests/cypress/support/redirectionHandler.js+++ b/cypress-tests/cypress/support/redirectionHandler.js@@ -3047,6 +3047,21 @@ function threeDsRedirection(return;}+ // Shift4 3DS: clicking Submit on api.shift4.com's start page navigates+ // the top-level page to a different origin (dev.shift4.com). waitForRedirect's+ // cy.location("host") polling doesn't tolerate that real cross-origin+ // navigation happening mid-retry and throws a Cypress cross-origin error,+ // so bypass it entirely for this connector, like paypal/paybox above.+ if (connectorId === "shift4") {+ cy.get('input[type="submit"][value="Submit"]', {+ timeout: CONSTANTS.WAIT_TIME,+ })+ .should("be.visible")+ .click();+ verifyReturnUrl(redirectionUrl, expectedUrl, true);+ return;+ }+// For all other connectors, use the standard flowwaitForRedirect(redirectionUrl.href);