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
refactor(cypress): Fiuu connector configuration changes (#7297)
Arindam Sahooa387ae290ef8
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.jsindex c1451b79f1..e116064bed 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js@@ -222,6 +222,9 @@ export const connectorDetails = {payment_method: "card",payment_method_data: {card: successfulNo3DSCardDetails,+ billing: {+ email: "[email protected]",+ },},currency: "USD",mandate_data: singleUseMandateData,@@ -238,6 +241,9 @@ export const connectorDetails = {payment_method: "card",payment_method_data: {card: successfulNo3DSCardDetails,+ billing: {+ email: "[email protected]",+ },},currency: "USD",mandate_data: singleUseMandateData,@@ -284,6 +290,9 @@ export const connectorDetails = {payment_method: "card",payment_method_data: {card: successfulNo3DSCardDetails,+ billing: {+ email: "[email protected]",+ },},currency: "USD",mandate_data: multiUseMandateData,@@ -567,7 +576,8 @@ export const connectorDetails = {Response: {status: 200,body: {- status: "succeeded",+ status: "failed",+ error_message: "The currency not allow for the RecordType",},},},@@ -578,7 +588,8 @@ export const connectorDetails = {Response: {status: 200,body: {- status: "requires_capture",+ status: "failed",+ error_message: "The currency not allow for the RecordType",},},},@@ -676,5 +687,77 @@ export const connectorDetails = {},},},+ PaymentConfirmWithShippingCost: {+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ shipping_cost: 50,+ amount_received: 6050,+ amount: 6000,+ net_amount: 6050,+ },+ },+ },+ ZeroAuthMandate: {+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: singleUseMandateData,+ },+ Response: {+ status: 200,+ body: {+ status: "processing",+ },+ },+ },+ SaveCardConfirmAutoCaptureOffSessionWithoutBilling: {+ Request: {+ setup_future_usage: "off_session",+ billing: null,+ },+ Response: {+ status: 200,+ body: {+ status: "failed",+ error_message: "The currency not allow for the RecordType",+ },+ },+ },+ ZeroAuthPaymentIntent: {+ Request: {+ amount: 0,+ setup_future_usage: "off_session",+ currency: "USD",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ setup_future_usage: "off_session",+ },+ },+ },+ ZeroAuthConfirmPayment: {+ Request: {+ payment_type: "setup_mandate",+ payment_method: "card",+ payment_method_type: "credit",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ },+ Response: {+ status: 200,+ body: {+ status: "processing",+ setup_future_usage: "off_session",+ },+ },+ },},};diff --git a/cypress-tests/cypress/e2e/configs/Payment/Modifiers.js b/cypress-tests/cypress/e2e/configs/Payment/Modifiers.jsindex a2fa7642e7..bf60ec788e 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Modifiers.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Modifiers.js@@ -16,7 +16,6 @@ function normalize(input) {paybox: "Paybox",paypal: "Paypal",wellsfargo: "Wellsfargo",- fiuu: "Fiuu",noon: "Noon",// Add more known exceptions here};diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.jsindex 8a7b559b95..054baf03fa 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js@@ -313,7 +313,7 @@ export function updateBusinessProfile(export const CONNECTOR_LISTS = {// Exclusion lists (skip these connectors)EXCLUDE: {- CONNECTOR_AGNOSTIC_NTID: ["paypal"],+ CONNECTOR_AGNOSTIC_NTID: ["fiuu", "paypal"],// Add more exclusion lists},diff --git a/cypress-tests/cypress/e2e/spec/Payment/00011-CreateSingleuseMandate.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00011-CreateSingleuseMandate.cy.jsindex d6b174ba63..6b4dc105fc 100644--- a/cypress-tests/cypress/e2e/spec/Payment/00011-CreateSingleuseMandate.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/00011-CreateSingleuseMandate.cy.js@@ -116,6 +116,9 @@ describe("Card - SingleUse Mandates flow test", () => {"manual",globalState);++ if (shouldContinue)+ shouldContinue = utils.should_continue_further(data);});it("mit-capture-call-test", () => {diff --git a/cypress-tests/cypress/e2e/spec/Payment/00012-CreateMultiuseMandate.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00012-CreateMultiuseMandate.cy.jsindex b82207117c..c568c08d35 100644--- a/cypress-tests/cypress/e2e/spec/Payment/00012-CreateMultiuseMandate.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/00012-CreateMultiuseMandate.cy.js@@ -130,6 +130,9 @@ describe("Card - MultiUse Mandates flow test", () => {"manual",globalState);++ if (shouldContinue)+ shouldContinue = utils.should_continue_further(data);});it("mit-capture-call-test", () => {diff --git a/cypress-tests/cypress/e2e/spec/Payment/00019-MandatesUsingPMID.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00019-MandatesUsingPMID.cy.jsindex 196b5fb7c9..59c1865675 100644--- a/cypress-tests/cypress/e2e/spec/Payment/00019-MandatesUsingPMID.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/00019-MandatesUsingPMID.cy.js@@ -269,6 +269,9 @@ describe("Card - Mandates using Payment Method Id flow test", () => {"manual",globalState);++ if (shouldContinue)+ shouldContinue = utils.should_continue_further(data);});it("mit-capture-call-test", () => {diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.jsindex 914841ea38..bd545074a4 100644--- a/cypress-tests/cypress/support/commands.js+++ b/cypress-tests/cypress/support/commands.js@@ -2761,10 +2761,19 @@ Cypress.Commands.add(response.body.payment_method_id,"payment_method_id").to.include("pm_").and.to.not.be.null;- expect(- response.body.connector_transaction_id,- "connector_transaction_id"- ).to.not.be.null;++ if (response.body.status === "failed") {+ expect(+ response.body.connector_transaction_id,+ "connector_transaction_id"+ ).to.be.null;+ } else {+ expect(+ response.body.connector_transaction_id,+ "connector_transaction_id"+ ).to.not.be.null;+ }+expect(response.body.payment_method_status,"payment_method_status"