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

test(cypress): add Ilixium connector coverage (#13924)

venkatakarthikm-maker36e93fce1375
diff --git a/cypress-tests/cypress.config.js b/cypress-tests/cypress.config.js
index c79057f1f3..b2fad47685 100644
--- a/cypress-tests/cypress.config.js
+++ b/cypress-tests/cypress.config.js
@@ -35,6 +35,19 @@ const forwardedEnv = [
// Get timeout multiplier from shared utility
const timeoutMultiplier = getTimeoutMultiplier();
+// Named ONLY_SPECS/SKIP_SPECS rather than SPEC_PATTERN/EXCLUDE_SPEC_PATTERN:
+// Cypress auto-maps any CYPRESS_<X> env var directly onto the matching
+// top-level config key (specPattern, excludeSpecPattern) before this file
+// even runs, with the raw unsplit string, bypassing the split(",") below
+// entirely — so the env var name must not collide with a real config key.
+const excludeSpecPattern = process.env.CYPRESS_SKIP_SPECS
+ ? process.env.CYPRESS_SKIP_SPECS.split(",")
+ : [];
+
+const specPattern = process.env.CYPRESS_ONLY_SPECS
+ ? process.env.CYPRESS_ONLY_SPECS.split(",")
+ : "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}";
+
export default defineConfig({
env: forwardedEnv,
e2e: {
@@ -105,7 +118,8 @@ export default defineConfig({
},
experimentalRunAllSpecs: true,
- specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
+ specPattern,
+ excludeSpecPattern,
supportFile: "cypress/support/e2e.js",
reporter: "cypress-mochawesome-reporter",
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Ilixium.js b/cypress-tests/cypress/e2e/configs/Payment/Ilixium.js
new file mode 100644
index 0000000000..df8f4eca06
--- /dev/null
+++ b/cypress-tests/cypress/e2e/configs/Payment/Ilixium.js
@@ -0,0 +1,413 @@
+import { getCustomExchange } from "./Modifiers";
+
+const verifiedCardDetails = {
+ card_number: "9000100111111117",
+ card_exp_month: "06",
+ card_exp_year: "28",
+ card_holder_name: "John Doe",
+ card_cvc: "111",
+};
+
+const threeDsCardDetails = {
+ card_number: "9001100511111112",
+ card_exp_month: "06",
+ card_exp_year: "28",
+ card_holder_name: "John Doe",
+ card_cvc: "111",
+};
+
+const ilixiumMetadata = {
+ ilixium_date_of_birth: "01011990",
+};
+
+export const connectorDetails = {
+ card_pm: {
+ PaymentIntent: {
+ Request: {
+ currency: "USD",
+ amount: 1000,
+ customer_acceptance: null,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_payment_method",
+ },
+ },
+ },
+ No3DSManualCapture: {
+ Configs: {
+ DELAY: {
+ STATUS: true,
+ TIMEOUT: 5000,
+ },
+ },
+ Request: {
+ payment_method: "card",
+ payment_method_type: "credit",
+ amount: 1000,
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ "3DSManualCapture": getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_type: "credit",
+ amount: 1000,
+ payment_method_data: {
+ card: threeDsCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ authentication_type: "three_ds",
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_customer_action",
+ },
+ },
+ }),
+ "3DSAutoCapture": getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_type: "credit",
+ amount: 1000,
+ payment_method_data: {
+ card: threeDsCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ authentication_type: "three_ds",
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ No3DSAutoCapture: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ amount: 1000,
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ metadata: ilixiumMetadata,
+ },
+ // Creds we currently have only supports manual capture. Therefore mapped error code for auto capture.
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ PaymentConfirmWithShippingCost: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ customer_acceptance: null,
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ Capture: getCustomExchange({
+ Request: {
+ amount_to_capture: 1000,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ amount: 1000,
+ amount_capturable: 0,
+ amount_received: 1000,
+ },
+ },
+ }),
+ PartialCapture: getCustomExchange({
+ Request: {
+ amount_to_capture: 500,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "partially_captured",
+ amount: 1000,
+ amount_capturable: 0,
+ amount_received: 500,
+ },
+ },
+ }),
+ Void: {
+ Request: {},
+ Response: {
+ status: 200,
+ body: {
+ status: "cancelled",
+ },
+ },
+ },
+ No3DSFailPayment: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ SaveCardUseNo3DSAutoCapture: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ currency: "USD",
+ setup_future_usage: "on_session",
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ SaveCardUseNo3DSAutoCaptureOffSession: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ setup_future_usage: "off_session",
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ SaveCardUse3DSAutoCaptureOffSession: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: threeDsCardDetails,
+ },
+ setup_future_usage: "off_session",
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ SaveCardUseNo3DSManualCapture: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ currency: "USD",
+ setup_future_usage: "on_session",
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ }),
+ SaveCardUseNo3DSManualCaptureOffSession: getCustomExchange({
+ Configs: {
+ DELAY: {
+ STATUS: true,
+ TIMEOUT: 5000,
+ },
+ },
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ amount: 1000,
+ setup_future_usage: "off_session",
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ }),
+ SaveCardConfirmManualCaptureOffSession: getCustomExchange({
+ Configs: {
+ DELAY: {
+ STATUS: true,
+ TIMEOUT: 5000,
+ },
+ },
+ Request: {
+ setup_future_usage: "off_session",
+ },
+ Response: {
+ status: 400,
+ body: {
+ error: {
+ message:
+ "No eligible connector was found for the current payment method configuration",
+ type: "invalid_request",
+ },
+ },
+ },
+ }),
+ manualPaymentRefund: getCustomExchange({
+ Request: {
+ amount: 500,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ }),
+ manualPaymentPartialRefund: getCustomExchange({
+ Request: {
+ amount: 200,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ }),
+ SyncRefund: getCustomExchange({
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ }),
+ PaymentMethodIdMandateNo3DSAutoCapture: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ currency: "USD",
+ mandate_data: null,
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ PaymentMethodIdMandateNo3DSManualCapture: getCustomExchange({
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: verifiedCardDetails,
+ },
+ currency: "USD",
+ mandate_data: null,
+ metadata: ilixiumMetadata,
+ },
+ }),
+ PaymentMethodIdMandate3DSAutoCapture: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: threeDsCardDetails,
+ },
+ currency: "USD",
+ mandate_data: null,
+ metadata: ilixiumMetadata,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "failed",
+ error_message: "4",
+ error_code: "4",
+ },
+ },
+ }),
+ PaymentMethodIdMandate3DSManualCapture: getCustomExchange({
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: threeDsCardDetails,
+ },
+ currency: "USD",
+ mandate_data: null,
+ metadata: ilixiumMetadata,
+ },
+ }),
+ },
+};
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
index 2f7a464784..6539a6c75c 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
@@ -46,6 +46,7 @@ import { connectorDetails as globepayConnectorDetails } from "./Globepay.js";
import { connectorDetails as helcimConnectorDetails } from "./Helcim.js";
import { connectorDetails as hipayConnectorDetails } from "./Hipay.js";
import { connectorDetails as iatapayConnectorDetails } from "./Iatapay.js";
+import { connectorDetails as ilixiumConnectorDetails } from "./Ilixium.js";
import { connectorDetails as inespayConnectorDetails } from "./Inespay.js";
import { connectorDetails as itaubankConnectorDetails } from "./ItauBank.js";
import { connectorDetails as jpmorganConnectorDetails } from "./Jpmorgan.js";
@@ -139,6 +140,7 @@ const connectorDetails = {
helcim: helcimConnectorDetails,
hipay: hipayConnectorDetails,
iatapay: iatapayConnectorDetails,
+ ilixium: ilixiumConnectorDetails,
inespay: inespayConnectorDetails,
itaubank: itaubankConnectorDetails,
jpmorgan: jpmorganConnectorDetails,
@@ -534,6 +536,7 @@ export const CONNECTOR_LISTS = {
"forte",
"globalpay",
"gigadat",
+ "ilixium",
"jpmorgan",
"loonio",
"mifinity",
@@ -575,7 +578,7 @@ export const CONNECTOR_LISTS = {
// asserted as an expected error either — skip these save-card-confirm
// tests in 40-ExternalVault.cy.js until the connector-service side
// adds a fallback.
- EXTERNAL_VAULT: ["fiservcommercehub"],
+ EXTERNAL_VAULT: ["fiservcommercehub", "ilixium"],
// Connectors that never return a `connector_mandate_id` on the payments
// response. Recurring payments for them go through connector agnostic MIT,
// so the "connector_mandate_id must not be null" assertion is skipped
@@ -604,7 +607,12 @@ export const CONNECTOR_LISTS = {
DDC_RACE_CONDITION: ["worldpay"],
CONNECTOR_TESTING_DATA: ["adyen", "airwallex", "braintree", "noon"],
// ucs connectors
- UCS_CONNECTORS: ["authorizedotnet", "fiservcommercehub", "givepayments"],
+ UCS_CONNECTORS: [
+ "authorizedotnet",
+ "fiservcommercehub",
+ "givepayments",
+ "ilixium",
+ ],
OVERCAPTURE: ["adyen"],
IFRAME_REDIRECTION: [
"adyen",
diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.js
index 93f763ba2a..91b5ad0910 100644
--- a/cypress-tests/cypress/support/commands.js
+++ b/cypress-tests/cypress/support/commands.js
@@ -5980,30 +5980,39 @@ Cypress.Commands.add(
"handleRedirection",
(globalState, expectedRedirection) => {
const connectorId = globalState.get("connectorId");
- // Cassettes recorded from a non-3DS scenario won't carry a next_action
- // URL; fall back to example.com so replay can still burn the step-counter
- // slot and reach later assertions.
let nextActionUrl = globalState.get("nextActionUrl");
- if (!nextActionUrl) {
- cy.task(
- "cli_log",
- "handleRedirection: nextActionUrl missing — falling back to https://example.com"
- );
- nextActionUrl = "https://example.com";
- }
- if (isRecordMode()) {
- mockRecord3ds(
- globalState,
- nextActionUrl,
- expectedRedirection,
- handleRedirection
- );
+ if (isRecordMode() || isReplayMode()) {
+ // Cassettes recorded from a non-3DS scenario won't carry a next_action
+ // URL; fall back to example.com so replay can still burn the
+ // step-counter slot and reach later assertions.
+ if (!nextActionUrl) {
+ cy.task(
+ "cli_log",
+ "handleRedirection: nextActionUrl missing — falling back to https://example.com"
+ );
+ nextActionUrl = "https://example.com";
+ }
+
+ if (isRecordMode()) {
+ mockRecord3ds(
+ globalState,
+ nextActionUrl,
+ expectedRedirection,
+ handleRedirection
+ );
+ return;
+ }
+
+ mockReplay3ds(globalState, connectorId, nextActionUrl);
return;
}
- if (isReplayMode()) {
- mockReplay3ds(globalState, connectorId, nextActionUrl);
+ if (!nextActionUrl) {
+ cy.task(
+ "cli_log",
+ "handleRedirection: nextActionUrl missing — skipping (frictionless 3DS)"
+ );
return;
}