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 Finix cypress test cases (#10135)

Vasanth843eaed5fb13
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Finix.js b/cypress-tests/cypress/e2e/configs/Payment/Finix.js
index cdaa4718ed..1d8dcae672 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Finix.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Finix.js
@@ -40,10 +40,10 @@ const failedNo3DSCardDetails = {
const payment_method_data_no3ds = {
card: {
last4: "1111",
- card_type: null,
- card_network: null,
- card_issuer: null,
- card_issuing_country: null,
+ card_type: "CREDIT",
+ card_network: "Visa",
+ card_issuer: "JP Morgan",
+ card_issuing_country: "INDIA",
card_isin: "411111",
card_extended_bin: null,
card_exp_month: "10",
@@ -481,8 +481,9 @@ export const connectorDetails = {
status: 200,
body: {
status: "failed",
- error_code: "card_declined",
- error_message: "Card was declined",
+ error_code: "DO_NOT_HONOR",
+ error_message:
+ "The card was declined for an unknown reason. The cardholder needs to contact their issuing bank for more information.",
unified_code: "UE_9000",
unified_message: "Something went wrong",
},
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
index c5bfceeefa..812bc3dc19 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
@@ -407,6 +407,7 @@ export const CONNECTOR_LISTS = {
"stax",
"wellsfargo",
"worldpayxml",
+ "finix",
],
// Add more exclusion lists
},