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 checkout partial auth test (#13336)
likhinbopanna255ea70acf6c
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js b/cypress-tests/cypress/e2e/configs/Payment/Checkout.jsindex efada18edc..c32c35cc55 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Checkout.js@@ -33,7 +33,7 @@ const failedNo3DSCardDetails = {// Checkout.com partial authorization test card (provided via sandbox dashboard)const partialAuthCardDetails = {- card_number: "5518207720770101",+ card_number: "4757337282365488",card_exp_month: "12",card_exp_year: "2027",card_holder_name: "CL-BRW2",@@ -883,8 +883,23 @@ export const connectorDetails = {},},},+ PaymentIntentPartialAuth: {+ Request: {+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: "on_session",+ amount: 1000,+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ },+ },+ },PartialAuth: {Request: {+ amount: 1000,payment_method: "card",payment_method_data: {card: partialAuthCardDetails,diff --git a/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js b/cypress-tests/cypress/e2e/configs/Payment/Nuvei.jsindex 55b0b25190..c0d20d8a3c 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Nuvei.js@@ -21,7 +21,7 @@ const successfulThreeDSCardDetails = {const partialAuthCardDetails = {card_number: "4531739335817394",card_exp_month: "01",- card_exp_year: "26",+ card_exp_year: "29",card_holder_name: "John Smith",card_cvc: "100",};@@ -839,6 +839,19 @@ export const connectorDetails = {},},},+ PaymentIntentPartialAuth: {+ Request: {+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: "on_session",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ },+ },+ },PartialAuth: {Request: {payment_method: "card",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.jsindex 85bfc5c82e..609e2c0c81 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js@@ -2,6 +2,7 @@ import { execConfig, validateConfig } from "../../../utils/featureFlags.js";import { updateDefaultStatusCode } from "./Modifiers.js";+import { connectorDetails as signifydConnectorDetails } from "../FRM/Signifyd.js";import { connectorDetails as aciConnectorDetails } from "./Aci.js";import { connectorDetails as adyenConnectorDetails } from "./Adyen.js";import { connectorDetails as affirmConnectorDetails } from "./Affirm.js";@@ -62,14 +63,13 @@ import { connectorDetails as payjustnowinstoreConnectorDetails } from "./Payjustimport { connectorDetails as payloadConnectorDetails } from "./Payload.js";import { connectorDetails as paypalConnectorDetails } from "./Paypal.js";import { connectorDetails as paysafeConnectorDetails } from "./Paysafe.js";-import { connectorDetails as placetopayConnectorDetails } from "./Placetopay.js";import { connectorDetails as payuConnectorDetails } from "./Payu.js";import { connectorDetails as peachpaymentsConnectorDetails } from "./Peachpayments.js";+import { connectorDetails as placetopayConnectorDetails } from "./Placetopay.js";import { connectorDetails as powertranzConnectorDetails } from "./PowerTranz.js";import { connectorDetails as rapydConnectorDetails } from "./Rapyd.js";import { connectorDetails as redsysConnectorDetails } from "./Redsys.js";import { connectorDetails as shift4ConnectorDetails } from "./Shift4.js";-import { connectorDetails as signifydConnectorDetails } from "../FRM/Signifyd.js";import { connectorDetails as silverflowConnectorDetails } from "./Silverflow.js";import { connectorDetails as squareConnectorDetails } from "./Square.js";import { connectorDetails as staxConnectorDetails } from "./Stax.js";@@ -699,7 +699,7 @@ export const CONNECTOR_LISTS = {PAYJUSTNOWINSTORE: ["payjustnowinstore"],AUTH_SERVICE_ELIGIBILITY: ["stripe", "cybersource"],STEP_UP_AUTH: ["cybersource"],- PARTIAL_AUTH: ["nuvei", "checkout", "worldpay", "worldpayvantiv"],+ PARTIAL_AUTH: ["nuvei", "checkout", "worldpayvantiv"],PAYMENT_RESPONSE_HASH: ["stripe"],MULTIPLE_CAPTURE: ["adyen", "checkout"],USE_BILLING_AS_PAYMENT_METHOD_BILLING: ["bankofamerica"],diff --git a/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js b/cypress-tests/cypress/e2e/configs/Payment/WorldPay.jsindex efd2592ec9..e17ac69c1c 100644--- a/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js+++ b/cypress-tests/cypress/e2e/configs/Payment/WorldPay.js@@ -912,6 +912,20 @@ export const connectorDetails = {},},},+ PaymentIntentPartialAuth: {+ Request: {+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: "on_session",+ amount: 1706,+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ },+ },+ },PartialAuth: {Request: {payment_method: "card",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js b/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.jsindex 96497ba82e..adb8c54f24 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js@@ -632,6 +632,20 @@ export const connectorDetails = {},},},+ PaymentIntentPartialAuth: {+ Request: {+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: "on_session",+ amount: 5000,+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ },+ },+ },PartialAuth: {Configs: {DELAY: {diff --git a/cypress-tests/cypress/e2e/spec/Payment/50-PartialAuthorization.cy.js b/cypress-tests/cypress/e2e/spec/Payment/50-PartialAuthorization.cy.jsindex 08e941b53a..eb6c46f5b9 100644--- a/cypress-tests/cypress/e2e/spec/Payment/50-PartialAuthorization.cy.js+++ b/cypress-tests/cypress/e2e/spec/Payment/50-PartialAuthorization.cy.js@@ -40,7 +40,7 @@ describe("Card - Partial Authorization flow test", () => {cy.step("Create Payment Intent", () => {const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"- ]["PaymentIntent"];+ ]["PaymentIntentPartialAuth"];cy.createPaymentIntentTest(fixtures.createPaymentBody,