Skip to content

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

ci(cypress): fix redsys connector (#10350)

likhinbopanna033169ac8685
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Redsys.js b/cypress-tests/cypress/e2e/configs/Payment/Redsys.js
index eaa268ee5a..fcc8a6394e 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Redsys.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Redsys.js
@@ -287,6 +287,9 @@ export const connectorDetails = {
},
},
ZeroAuthPaymentIntent: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
amount: 0,
setup_future_usage: "off_session",
@@ -467,5 +470,18 @@ export const connectorDetails = {
amount: 6000,
},
}),
+ PaymentWithBilling: {
+ Request: {
+ currency: "USD",
+ setup_future_usage: "on_session",
+ billing: Address,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_payment_method",
+ },
+ },
+ },
},
};
diff --git a/cypress-tests/cypress/support/redirectionHandler.js b/cypress-tests/cypress/support/redirectionHandler.js
index b4ce579bbe..11c8ad05b7 100644
--- a/cypress-tests/cypress/support/redirectionHandler.js
+++ b/cypress-tests/cypress/support/redirectionHandler.js
@@ -1188,6 +1188,14 @@ function threeDsRedirection(redirectionUrl, expectedUrl, connectorId) {
});
break;
case "redsys":
+ // Suppress cross-origin JavaScript errors from Redsys's website
+ cy.on("uncaught:exception", (err) => {
+ if (err.message.includes("$ is not defined")) {
+ return false; // Prevent test failure
+ }
+ return true;
+ });
+
cy.get("div.autenticada").click();
cy.get('input[value="Enviar"]').click();
break;