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 Forte,Stax,Wellsfargo test (#10128)
Gnanasundari246b52da779a01
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Forte.js b/cypress-tests/cypress/e2e/configs/Payment/Forte.jsindex c8dfcb4d14..77df0d1602 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Forte.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Forte.js@@ -272,7 +272,7 @@ export const connectorDetails = {},},},- Void: {+ Void: getCustomExchange({Request: {},Response: {status: 200,@@ -280,7 +280,16 @@ export const connectorDetails = {status: "cancelled",},},- },+ ResponseCustom: {+ status: 400,+ body: {+ code: "IR_16",+ message:+ "You cannot cancel this payment because it has status processing",+ type: "invalid_request",+ },+ },+ }),VoidAfterConfirm: {Request: {},Response: {@@ -306,9 +315,11 @@ export const connectorDetails = {amount: 6000,},Response: {- status: 400,+ status: 200,body: {- error: refundErrorResponse,+ status: "failed",+ error_message:+ "A reverse action can only be performed on original transaction that are of sale action type.",},},},@@ -317,9 +328,11 @@ export const connectorDetails = {amount: 2000,},Response: {- status: 400,+ status: 200,body: {- error: refundErrorResponse,+ status: "failed",+ error_message:+ "A reverse action can only be performed on original transaction that are of sale action type.",},},},@@ -342,8 +355,11 @@ export const connectorDetails = {},},},- // No mandate flows for Forte as specified in requirements- SaveCardUseNo3DSAutoCapture: getCustomExchange({+ // Payments will go processing state, so card wont be saved hence skipping the tests+ SaveCardUseNo3DSAutoCapture: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_data: {@@ -360,18 +376,11 @@ export const connectorDetails = {status: "processing",},},- ResponseCustom: {- status: 400,- body: {- error: {- code: "IR_04",- message: "Missing required param: payment_method_data",- type: "invalid_request",- },- },- },- }),+ },SaveCardUseNo3DSManualCapture: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_data: {@@ -392,6 +401,9 @@ export const connectorDetails = {},// 3DS Save Card flows - Not implementedSaveCardUse3DSAutoCapture: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_data: {@@ -408,6 +420,9 @@ export const connectorDetails = {},},SaveCardUse3DSManualCapture: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_data: {@@ -764,6 +779,9 @@ export const connectorDetails = {},},SaveCardUseNo3DSAutoCaptureOffSession: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_type: "debit",@@ -784,6 +802,9 @@ export const connectorDetails = {},},SaveCardUse3DSAutoCaptureOffSession: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_type: "debit",@@ -801,6 +822,9 @@ export const connectorDetails = {},},SaveCardUseNo3DSManualCaptureOffSession: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {payment_method: "card",payment_method_data: {@@ -820,6 +844,9 @@ export const connectorDetails = {},},SaveCardConfirmAutoCaptureOffSession: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {setup_future_usage: "off_session",billing: billingAddressUS,@@ -834,6 +861,9 @@ export const connectorDetails = {},},SaveCardConfirmManualCaptureOffSession: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {setup_future_usage: "off_session",billing: billingAddressUS,@@ -848,6 +878,9 @@ export const connectorDetails = {},},SaveCardConfirmAutoCaptureOffSessionWithoutBilling: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {setup_future_usage: "off_session",billing: null,@@ -883,7 +916,10 @@ export const connectorDetails = {Response: {status: 400,body: {- error: refundErrorResponse,+ code: "IR_14",+ message:+ "This Payment could not be captured because it has a capture_method of automatic. The expected state is manual_multiple",+ type: "invalid_request",},},},diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stax.js b/cypress-tests/cypress/e2e/configs/Payment/Stax.jsindex 7dcd8f2736..8762fcc7b7 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Stax.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Stax.js@@ -292,6 +292,10 @@ export const connectorDetails = {},},PartialRefund: {+ //Skipping the partial refund test as Stax does not support multiple partial refunds at same time+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {amount: 2000,},@@ -321,7 +325,11 @@ export const connectorDetails = {},},},+manualPaymentPartialRefund: {+ Configs: {+ TRIGGER_SKIP: true,+ },Request: {amount: 2000,},@@ -711,6 +719,7 @@ export const connectorDetails = {},Request: {payment_method: "card",+ authentication_type: "three_ds",payment_method_data: {card: successfulThreeDSCardDetails,},diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.jsindex 9d3cbe06a7..d2bd877f0b 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js@@ -397,6 +397,7 @@ export const CONNECTOR_LISTS = {"facilitapay","fiserv","fiuu",+ "forte","globalpay","jpmorgan","nexinets",diff --git a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.jsindex c014394b63..1593e31e94 100644--- a/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js+++ b/cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js@@ -36,6 +36,12 @@ const multiUseMandateData = {},};+const threeDsValidationData = {+ type: "invalid_request",+ message: "3DS not supported for WellsFargo",+ code: "IR_00",+};+export const connectorDetails = {card_pm: {PaymentIntent: {@@ -115,9 +121,9 @@ export const connectorDetails = {setup_future_usage: "on_session",},Response: {- status: 200,+ status: 400,body: {- status: "requires_customer_action",+ error: threeDsValidationData,},},},@@ -135,9 +141,9 @@ export const connectorDetails = {setup_future_usage: "on_session",},Response: {- status: 200,+ status: 400,body: {- status: "requires_customer_action",+ error: threeDsValidationData,},},},@@ -255,9 +261,9 @@ export const connectorDetails = {mandate_data: singleUseMandateData,},Response: {- status: 200,+ status: 400,body: {- status: "requires_customer_action",+ error: threeDsValidationData,},},},@@ -526,9 +532,9 @@ export const connectorDetails = {customer_acceptance: customerAcceptance,},Response: {- status: 200,+ status: 400,body: {- status: "requires_customer_action",+ error: threeDsValidationData,},},},@@ -631,9 +637,9 @@ export const connectorDetails = {customer_acceptance: customerAcceptance,},Response: {- status: 200,+ status: 400,body: {- status: "requires_customer_action",+ error: threeDsValidationData,},},},