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): add PayPal card 3DS redirection handler and enable 3DS tests (#13390)
HS-QUALIBOTda31aafd33f7
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Paypal.js b/cypress-tests/cypress/e2e/configs/Payment/Paypal.jsindex 8a1ec4b450..be8a926c45 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Paypal.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Paypal.js@@ -107,9 +107,6 @@ export const connectorDetails = {},},"3DSManualCapture": {- Configs: {- TRIGGER_SKIP: true,- },Request: {payment_method: "card",payment_method_data: {@@ -127,9 +124,6 @@ export const connectorDetails = {},},"3DSAutoCapture": {- Configs: {- TRIGGER_SKIP: true,- },Request: {payment_method: "card",payment_method_data: {diff --git a/cypress-tests/cypress/support/redirectionHandler.js b/cypress-tests/cypress/support/redirectionHandler.jsindex b027dfd60a..7b196208de 100644--- a/cypress-tests/cypress/support/redirectionHandler.js+++ b/cypress-tests/cypress/support/redirectionHandler.js@@ -2984,6 +2984,19 @@ function threeDsRedirection(return;}+ // PayPal card 3DS: Hyperswitch redirect page auto-submits a form to+ // sandbox.paypal.com/webapps/helios which processes the 3DS challenge.+ // In sandbox mode, the test card auto-approves and PayPal redirects back+ // to the return URL without requiring browser-side user interaction.+ // Using cy.origin() here causes a cross-origin crash because the sandbox+ // auto-redirect fires before the origin block can execute.+ if (connectorId === "paypal") {+ cy.visit(redirectionUrl.href, { failOnStatusCode: false });+ cy.url({ timeout: CONSTANTS.TIMEOUT }).should("include", expectedUrl.host);+ verifyReturnUrl(redirectionUrl, expectedUrl, true);+ return;+ }+// For all other connectors, use the standard flowwaitForRedirect(redirectionUrl.href);