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): keep eligibility intent alive and match prefixed redirect paths (#15285)
venkatakarthikm-maker02a0080df66d
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Commons.js b/cypress-tests/cypress/e2e/configs/Payment/Commons.jsindex 6512a5d0d0..94b2e713be 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Commons.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Commons.js@@ -4681,6 +4681,9 @@ export const connectorDetails = {Request: {currency: "USD",amount: 6500,+ // 15 min: the spec reuses this intent across several Superposition+ // updates, longer than the 60s profile expiry left by earlier specs.+ session_expiry: 900,},Response: {status: 200,diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.jsindex 6fad0b905b..7ff1f8f4ea 100644--- a/cypress-tests/cypress/support/commands.js+++ b/cypress-tests/cypress/support/commands.js@@ -12779,7 +12779,8 @@ Cypress.Commands.add("captureRedirectReturnUrl", (globalState) => {cy.intercept(/\/redirect\/(?:token\/[^/]+\/)?(?:response|complete)\//,(req) => {- if (!new URL(req.url).pathname.startsWith(`/payments/${paymentId}/`))+ // `includes`, not `startsWith`: the base URL can carry a prefix (e.g. /api)+ if (!new URL(req.url).pathname.includes(`/payments/${paymentId}/`))return;req.on("response", (response) => {const location = response.headers.location;