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
ci(cypress): fix iatapay upi payments (#7698)
likhinbopanna0254560a30b2
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Iatapay.js b/cypress-tests/cypress/e2e/configs/Payment/Iatapay.jsindex bbd099edf8..18dab177f3 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Iatapay.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Iatapay.js@@ -6,6 +6,20 @@ const successfulNo3DSCardDetails = {card_cvc: "737",};+const billingAddress = {+ address: {+ line1: "1467",+ line2: "Harrison Street",+ line3: "Harrison Street",+ city: "San Fransico",+ state: "California",+ zip: "94122",+ country: "IN",+ first_name: "john",+ last_name: "doe",+ },+};+export const connectorDetails = {bank_redirect_pm: {Ideal: {@@ -133,6 +147,7 @@ export const connectorDetails = {},},},+ billing: billingAddress,},Response: {status: 200,diff --git a/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.jsindex 954bca323a..173443a591 100644--- a/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js@@ -705,8 +705,12 @@ describe("Corner cases", () => {context("Duplicate Payment ID", () => {let shouldContinue = true; // variable that will be used to skip tests if a previous test fails+ let createConfirmBody;beforeEach(function () {+ createConfirmBody = Cypress._.cloneDeep(+ fixtures.createConfirmPaymentBody+ );if (!shouldContinue) {this.skip();}@@ -718,7 +722,7 @@ describe("Corner cases", () => {]["No3DSAutoCapture"];cy.createConfirmPaymentTest(- fixtures.createConfirmPaymentBody,+ createConfirmBody,data,"no_three_ds","automatic",@@ -743,7 +747,7 @@ describe("Corner cases", () => {data.Request.payment_id = globalState.get("paymentID");cy.createConfirmPaymentTest(- fixtures.createConfirmPaymentBody,+ createConfirmBody,data,"no_three_ds","automatic",@@ -763,6 +767,21 @@ describe("Corner cases", () => {}});+ it("Create new payment", () => {+ const data = getConnectorDetails(globalState.get("connectorId"))[+ "card_pm"+ ]["No3DSAutoCapture"];++ cy.createConfirmPaymentTest(+ fixtures.createConfirmPaymentBody,+ data,+ "no_three_ds",+ "automatic",+ globalState+ );+ if (shouldContinue) shouldContinue = utils.should_continue_further(data);+ });+it("Create new refund", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"