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

refactor(cypress): make `connector_label` configurable in cypress (#5547)

Pa1NarK8881e9774e59
diff --git a/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js b/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js
index 5b73327b18..af1f16195c 100644
--- a/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js
+++ b/cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js
@@ -48,7 +48,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
bank_redirect_ideal_enabled,
globalState,
- "stripe"
+ "stripe",
+ "stripe_US_default"
);
});
@@ -59,7 +60,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled,
globalState,
- "cybersource"
+ "cybersource",
+ "cybersource_US_default"
);
});
@@ -126,7 +128,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
bank_redirect_ideal_enabled,
globalState,
- "stripe"
+ "stripe",
+ "stripe_US_default"
);
});
@@ -137,7 +140,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled_in_USD,
globalState,
- "cybersource"
+ "cybersource",
+ "cybersource_US_default"
);
});
@@ -204,7 +208,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled_in_US,
globalState,
- "stripe"
+ "stripe",
+ "stripe_US_default"
);
});
@@ -215,7 +220,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled_in_US,
globalState,
- "cybersource"
+ "cybersource",
+ "cybersource_US_default"
);
});
@@ -282,7 +288,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
bank_redirect_ideal_enabled,
globalState,
- "stripe"
+ "stripe",
+ "stripe_US_default"
);
});
@@ -293,7 +300,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
bank_redirect_ideal_enabled,
globalState,
- "cybersource"
+ "cybersource",
+ "cybersource_US_default"
);
});
@@ -362,7 +370,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled,
globalState,
- "stripe"
+ "stripe",
+ "stripe_US_default"
);
});
@@ -373,7 +382,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
bank_redirect_ideal_and_credit_enabled,
globalState,
- "cybersource"
+ "cybersource",
+ "cybersource_US_default"
);
});
@@ -441,7 +451,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled,
globalState,
- "stripe"
+ "stripe",
+ "stripe_US_default"
);
});
@@ -452,7 +463,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled,
globalState,
- "cybersource"
+ "cybersource",
+ "cybersource_US_default"
);
});
@@ -519,7 +531,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
bank_redirect_ideal_enabled,
globalState,
- "stripe"
+ "stripe",
+ "stripe_US_default"
);
});
@@ -530,7 +543,8 @@ describe("Payment Method list using Constraint Graph flow tests", () => {
createConnectorBody,
card_credit_enabled,
globalState,
- "cybersource"
+ "cybersource",
+ "cybersource_US_default"
);
});
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Commons.js b/cypress-tests/cypress/e2e/PaymentUtils/Commons.js
index 3426ac00bf..8fdeb7b5b9 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/Commons.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/Commons.js
@@ -15,7 +15,7 @@ function normalise(input) {
bankofamerica: "Bank of America",
cybersource: "Cybersource",
paypal: "Paypal",
- wellsfargo: "Wellsfargo"
+ wellsfargo: "Wellsfargo",
// Add more known exceptions here
};
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Utils.js b/cypress-tests/cypress/e2e/PaymentUtils/Utils.js
index b0a0455cc6..07d323d2a5 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/Utils.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/Utils.js
@@ -28,7 +28,7 @@ const connectorDetails = {
stripe: stripeConnectorDetails,
trustpay: trustpayConnectorDetails,
datatrans: datatransConnectorDetails,
- wellsfargo: wellsfargoConnectorDetails
+ wellsfargo: wellsfargoConnectorDetails,
};
export default function getConnectorDetails(connectorId) {
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/WellsFargo.js b/cypress-tests/cypress/e2e/PaymentUtils/WellsFargo.js
index d4bffec83c..b25a6dc7e8 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/WellsFargo.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/WellsFargo.js
@@ -1,528 +1,528 @@
const successfulNo3DSCardDetails = {
- card_number: "4242424242424242",
- card_exp_month: "01",
- card_exp_year: "25",
- card_holder_name: "joseph Doe",
- card_cvc: "123",
+ card_number: "4242424242424242",
+ card_exp_month: "01",
+ card_exp_year: "25",
+ card_holder_name: "joseph Doe",
+ card_cvc: "123",
};
const successfulThreeDSTestCardDetails = {
- card_number: "4000000000001091",
- card_exp_month: "01",
- card_exp_year: "25",
- card_holder_name: "joseph Doe",
- card_cvc: "123",
+ card_number: "4000000000001091",
+ card_exp_month: "01",
+ card_exp_year: "25",
+ card_holder_name: "joseph Doe",
+ card_cvc: "123",
};
const singleUseMandateData = {
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "125.0.0.1",
- user_agent: "amet irure esse",
- },
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "125.0.0.1",
+ user_agent: "amet irure esse",
},
- mandate_type: {
- single_use: {
- amount: 8000,
- currency: "USD",
- },
+ },
+ mandate_type: {
+ single_use: {
+ amount: 8000,
+ currency: "USD",
},
+ },
};
const multiUseMandateData = {
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "125.0.0.1",
- user_agent: "amet irure esse",
- },
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "125.0.0.1",
+ user_agent: "amet irure esse",
},
- mandate_type: {
- multi_use: {
- amount: 8000,
- currency: "USD",
- },
+ },
+ mandate_type: {
+ multi_use: {
+ amount: 8000,
+ currency: "USD",
},
+ },
};
export const connectorDetails = {
- card_pm: {
- PaymentIntent: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- setup_future_usage: "on_session",
- },
- Response: {
- status: 200,
- body: {
- status: "requires_payment_method",
- },
- },
- },
- "3DSManualCapture": {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- setup_future_usage: "on_session",
- },
- Response: {
- status: 200,
- trigger_skip: true,
- body: {
- status: "requires_capture",
- },
- },
- },
- "3DSAutoCapture": {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- setup_future_usage: "on_session",
- },
- Response: {
- status: 200,
- trigger_skip: true,
+ card_pm: {
+ PaymentIntent: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ setup_future_usage: "on_session",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_payment_method",
+ },
+ },
+ },
+ "3DSManualCapture": {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ setup_future_usage: "on_session",
+ },
+ Response: {
+ status: 200,
+ trigger_skip: true,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ "3DSAutoCapture": {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ setup_future_usage: "on_session",
+ },
+ Response: {
+ status: 200,
+ trigger_skip: true,
- body: {
- status: "requires_customer_action",
- },
- },
- },
- No3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- setup_future_usage: "on_session",
- },
- Response: {
- status: 200,
- body: {
- status: "requires_capture",
- },
- },
- },
- No3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- setup_future_usage: "on_session",
- },
- Response: {
- status: 200,
- body: {
- status: "succeeded",
- },
- },
- },
- Capture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- },
- Response: {
- status: 200,
- body: {
- status: "succeeded",
- amount: 6500,
- amount_capturable: 0,
- amount_received: 6500,
- },
- },
- },
- PartialCapture: {
- Request: {},
- Response: {
- status: 200,
- body: {
- status: "partially_captured",
- amount: 6500,
- amount_capturable: 0,
- amount_received: 100,
- },
- },
- },
- Void: {
- Request: {},
- Response: {
- status: 200,
- body: {
- status: "cancelled",
- },
- },
- },
- Refund: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- },
- Response: {
- status: 200,
- body: {
- status: "pending",
- },
- },
- },
- PartialRefund: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- },
- Response: {
- status: 200,
- body: {
- status: "pending",
- },
- },
- },
- SyncRefund: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- customer_acceptance: null,
- },
- Response: {
- status: 200,
- body: {
- status: "pending",
- },
- },
- },
- MandateSingleUse3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- currency: "USD",
- mandate_data: singleUseMandateData,
- },
- Response: {
- status: 200,
- trigger_skip: true,
+ body: {
+ status: "requires_customer_action",
+ },
+ },
+ },
+ No3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ setup_future_usage: "on_session",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ No3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ setup_future_usage: "on_session",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ Capture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ amount: 6500,
+ amount_capturable: 0,
+ amount_received: 6500,
+ },
+ },
+ },
+ PartialCapture: {
+ Request: {},
+ Response: {
+ status: 200,
+ body: {
+ status: "partially_captured",
+ amount: 6500,
+ amount_capturable: 0,
+ amount_received: 100,
+ },
+ },
+ },
+ Void: {
+ Request: {},
+ Response: {
+ status: 200,
+ body: {
+ status: "cancelled",
+ },
+ },
+ },
+ Refund: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "pending",
+ },
+ },
+ },
+ PartialRefund: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "pending",
+ },
+ },
+ },
+ SyncRefund: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ customer_acceptance: null,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "pending",
+ },
+ },
+ },
+ MandateSingleUse3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ currency: "USD",
+ mandate_data: singleUseMandateData,
+ },
+ Response: {
+ status: 200,
+ trigger_skip: true,
- body: {
- status: "succeeded",
- },
- },
- },
- MandateSingleUse3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- currency: "USD",
- mandate_data: singleUseMandateData,
- },
- Response: {
- status: 200,
- trigger_skip: true,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ MandateSingleUse3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ currency: "USD",
+ mandate_data: singleUseMandateData,
+ },
+ Response: {
+ status: 200,
+ trigger_skip: true,
- body: {
- status: "requires_customer_action",
- },
- },
- },
- MandateSingleUseNo3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- mandate_data: singleUseMandateData,
- },
- Response: {
- status: 200,
- body: {
- status: "succeeded",
- },
- },
- },
- MandateSingleUseNo3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- mandate_data: singleUseMandateData,
- },
- Response: {
- status: 200,
- body: {
- status: "requires_capture",
- },
- },
- },
- MandateMultiUseNo3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- mandate_data: multiUseMandateData,
- },
- Response: {
- status: 200,
- body: {
- status: "succeeded",
- },
- },
- },
- MandateMultiUseNo3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- mandate_data: multiUseMandateData,
- },
- Response: {
- status: 200,
- body: {
- status: "requires_capture",
- },
- },
- },
- MandateMultiUse3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- currency: "USD",
- mandate_data: multiUseMandateData,
- },
- Response: {
- status: 200,
- trigger_skip: true,
+ body: {
+ status: "requires_customer_action",
+ },
+ },
+ },
+ MandateSingleUseNo3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ mandate_data: singleUseMandateData,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ MandateSingleUseNo3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ mandate_data: singleUseMandateData,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ MandateMultiUseNo3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ mandate_data: multiUseMandateData,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ MandateMultiUseNo3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ mandate_data: multiUseMandateData,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ MandateMultiUse3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ currency: "USD",
+ mandate_data: multiUseMandateData,
+ },
+ Response: {
+ status: 200,
+ trigger_skip: true,
- body: {
- status: "requires_capture",
- },
- },
- },
- MandateMultiUse3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- currency: "USD",
- mandate_data: multiUseMandateData,
- },
- Response: {
- status: 200,
- trigger_skip: true,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ MandateMultiUse3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ currency: "USD",
+ mandate_data: multiUseMandateData,
+ },
+ Response: {
+ status: 200,
+ trigger_skip: true,
- body: {
- status: "requires_capture",
- },
- },
- },
- ZeroAuthMandate: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- mandate_data: singleUseMandateData,
- },
- Response: {
- status: 200,
- body: {
- status: "succeeded",
- },
- },
- },
- SaveCardUseNo3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- setup_future_usage: "on_session",
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "127.0.0.1",
- user_agent: "amet irure esse",
- },
- },
- },
- Response: {
- status: 200,
- body: {
- status: "succeeded",
- },
- },
- },
- SaveCardUseNo3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- setup_future_usage: "on_session",
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "127.0.0.1",
- user_agent: "amet irure esse",
- },
- },
- },
- Response: {
- status: 200,
- body: {
- status: "requires_capture",
- },
- },
- },
- PaymentMethodIdMandateNo3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- mandate_data: null,
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "125.0.0.1",
- user_agent: "amet irure esse",
- },
- },
- },
- Response: {
- status: 200,
- body: {
- status: "succeeded",
- },
- },
- },
- PaymentMethodIdMandateNo3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulNo3DSCardDetails,
- },
- currency: "USD",
- mandate_data: null,
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "125.0.0.1",
- user_agent: "amet irure esse",
- },
- },
- },
- Response: {
- status: 200,
- body: {
- status: "requires_capture",
- },
- },
- },
- PaymentMethodIdMandate3DSAutoCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- currency: "USD",
- mandate_data: null,
- authentication_type: "three_ds",
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "125.0.0.1",
- user_agent: "amet irure esse",
- },
- },
- },
- Response: {
- status: 200,
- trigger_skip: true,
- body: {
- status: "requires_customer_action",
- },
- },
- },
- PaymentMethodIdMandate3DSManualCapture: {
- Request: {
- payment_method: "card",
- payment_method_data: {
- card: successfulThreeDSTestCardDetails,
- },
- mandate_data: null,
- authentication_type: "three_ds",
- customer_acceptance: {
- acceptance_type: "offline",
- accepted_at: "1963-05-03T04:07:52.723Z",
- online: {
- ip_address: "125.0.0.1",
- user_agent: "amet irure esse",
- },
- },
- },
- Response: {
- status: 200,
- body: {
- status: "requires_customer_action",
- },
- },
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ ZeroAuthMandate: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ mandate_data: singleUseMandateData,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ SaveCardUseNo3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ setup_future_usage: "on_session",
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "127.0.0.1",
+ user_agent: "amet irure esse",
+ },
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ SaveCardUseNo3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ setup_future_usage: "on_session",
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "127.0.0.1",
+ user_agent: "amet irure esse",
+ },
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ PaymentMethodIdMandateNo3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ mandate_data: null,
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "125.0.0.1",
+ user_agent: "amet irure esse",
+ },
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ PaymentMethodIdMandateNo3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ currency: "USD",
+ mandate_data: null,
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "125.0.0.1",
+ user_agent: "amet irure esse",
+ },
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_capture",
+ },
+ },
+ },
+ PaymentMethodIdMandate3DSAutoCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ currency: "USD",
+ mandate_data: null,
+ authentication_type: "three_ds",
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "125.0.0.1",
+ user_agent: "amet irure esse",
+ },
+ },
+ },
+ Response: {
+ status: 200,
+ trigger_skip: true,
+ body: {
+ status: "requires_customer_action",
+ },
+ },
+ },
+ PaymentMethodIdMandate3DSManualCapture: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulThreeDSTestCardDetails,
+ },
+ mandate_data: null,
+ authentication_type: "three_ds",
+ customer_acceptance: {
+ acceptance_type: "offline",
+ accepted_at: "1963-05-03T04:07:52.723Z",
+ online: {
+ ip_address: "125.0.0.1",
+ user_agent: "amet irure esse",
+ },
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_customer_action",
},
+ },
},
+ },
};
diff --git a/cypress-tests/cypress/e2e/PayoutUtils/Commons.js b/cypress-tests/cypress/e2e/PayoutUtils/Commons.js
index 8eee62493b..248d0fe2a4 100644
--- a/cypress-tests/cypress/e2e/PayoutUtils/Commons.js
+++ b/cypress-tests/cypress/e2e/PayoutUtils/Commons.js
@@ -14,7 +14,7 @@ function normalise(input) {
const exceptions = {
adyenplatform: "Adyenplatform",
wise: "Wise",
- wellsfargo: "Wellsfargo"
+ wellsfargo: "Wellsfargo",
// Add more known exceptions here
};
diff --git a/cypress-tests/cypress/support/commands.js b/cypress-tests/cypress/support/commands.js
index b0bf54b27a..aadf258123 100644
--- a/cypress-tests/cypress/support/commands.js
+++ b/cypress-tests/cypress/support/commands.js
@@ -79,7 +79,6 @@ Cypress.Commands.add("merchantRetrieveCall", (globalState) => {
expect(response.headers["content-type"]).to.include("application/json");
expect(response.body.merchant_id).to.equal(merchant_id);
- expect(response.body.amount).to.equal(globalState.get("paymentAmount"));
expect(response.body.payment_response_hash_key).to.not.be.empty;
expect(response.body.publishable_key).to.not.be.empty;
expect(response.body.default_profile).to.not.be.empty;
@@ -282,11 +281,13 @@ Cypress.Commands.add(
createConnectorBody,
payment_methods_enabled,
globalState,
- connectorName
+ connectorName,
+ connectorLabel
) => {
const merchantId = globalState.get("merchantId");
createConnectorBody.connector_type = connectorType;
createConnectorBody.connector_name = connectorName;
+ createConnectorBody.connector_label = connectorLabel;
createConnectorBody.payment_methods_enabled = payment_methods_enabled;
// readFile is used to read the contents of the file and it always returns a promise ([Object Object]) due to its asynchronous nature
// it is best to use then() to handle the response within the same block of code
diff --git a/cypress-tests/cypress/support/redirectionHandler.js b/cypress-tests/cypress/support/redirectionHandler.js
index 8032c4274a..fdbd8e5197 100644
--- a/cypress-tests/cypress/support/redirectionHandler.js
+++ b/cypress-tests/cypress/support/redirectionHandler.js
@@ -295,7 +295,11 @@ function threeDsRedirection(redirection_url, expected_url, connectorId) {
cy.get('input[type="password"]').type("password");
cy.get("#buttonSubmit").click();
});
- } else if (connectorId === "bankofamerica" || connectorId === "cybersource" || connectorId === "wellsfargo"){
+ } else if (
+ connectorId === "bankofamerica" ||
+ connectorId === "cybersource" ||
+ connectorId === "wellsfargo"
+ ) {
cy.get("iframe", { timeout: TIMEOUT })
.its("0.contentDocument.body")
.within((body) => {