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 fiuu connector (#10604)

likhinbopanna3d9327d80728
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Commons.js b/cypress-tests/cypress/e2e/configs/Payment/Commons.js
index ff01a26ae3..20b94b41f0 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Commons.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Commons.js
@@ -11,6 +11,32 @@ export const customerAcceptance = {
},
};
+export const cardCreditEnabled = [
+ {
+ payment_method: "card",
+ payment_method_types: [
+ {
+ payment_method_type: "credit",
+ card_networks: [
+ "Visa",
+ "Mastercard",
+ "AmericanExpress",
+ "Discover",
+ "JCB",
+ "DinersClub",
+ "UnionPay",
+ "RuPay",
+ "Interac",
+ ],
+ minimum_amount: 0,
+ maximum_amount: 68607706,
+ recurring_enabled: false,
+ installment_payment_enabled: true,
+ },
+ ],
+ },
+];
+
const successfulNo3DSCardDetails = {
card_number: "4111111111111111",
card_exp_month: "08",
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
index 8d9aef9def..9d805a0461 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
@@ -1,15 +1,15 @@
-import { customerAcceptance } from "./Commons";
+import { cardRequiredField, customerAcceptance } from "./Commons";
const successfulNo3DSCardDetails = {
card_number: "5105105105105100",
card_exp_month: "12",
card_exp_year: "2030",
card_holder_name: "joseph Doe",
- card_cvc: "123",
+ card_cvc: "444",
};
const successfulThreeDSTestCardDetails = {
- card_number: "5105105105105100",
+ card_number: "4111111111111111",
card_exp_month: "12",
card_exp_year: "2031",
card_holder_name: "joseph Doe",
@@ -59,6 +59,25 @@ const billingAddress = {
};
+const requiredFields = {
+ payment_methods: [
+ {
+ payment_method: "card",
+ payment_method_types: [
+ {
+ payment_method_type: "credit",
+ card_networks: [
+ {
+ eligible_connectors: ["fiuu"],
+ },
+ ],
+ required_fields: cardRequiredField,
+ },
+ ],
+ },
+ ],
+};
+
export const connectorDetails = {
real_time_payment_pm: {
DuitNow: {
@@ -658,6 +677,9 @@ export const connectorDetails = {
},
},
ZeroAuthMandate: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
payment_method: "card",
payment_method_data: {
@@ -691,6 +713,9 @@ export const connectorDetails = {
},
},
ZeroAuthPaymentIntent: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
amount: 0,
setup_future_usage: "off_session",
@@ -849,4 +874,15 @@ export const connectorDetails = {
},
},
},
+ pm_list: {
+ PmListResponse: {
+ PmListNull: {
+ payment_methods: [],
+ },
+ pmListDynamicFieldWithoutBilling: requiredFields,
+ pmListDynamicFieldWithBilling: requiredFields,
+ pmListDynamicFieldWithNames: requiredFields,
+ pmListDynamicFieldWithEmail: requiredFields,
+ },
+ },
};
diff --git a/cypress-tests/cypress/e2e/spec/Payment/00035-DynamicFields.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00035-DynamicFields.cy.js
index 9bbf07b880..d3bf75525c 100644
--- a/cypress-tests/cypress/e2e/spec/Payment/00035-DynamicFields.cy.js
+++ b/cypress-tests/cypress/e2e/spec/Payment/00035-DynamicFields.cy.js
@@ -1,8 +1,7 @@
import * as fixtures from "../../../fixtures/imports";
import State from "../../../utils/State";
+import { cardCreditEnabled } from "../../configs/Payment/Commons";
import getConnectorDetails, * as utils from "../../configs/Payment/Utils";
-import { cardCreditEnabled } from "../../configs/PaymentMethodList/Commons";
-
let globalState;
describe("Dynamic Fields Verification", () => {