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

fix(cypress): Fix Mollie Mandates Cypress (#10751)

Anurag96f7fd446c1f
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Mollie.js b/cypress-tests/cypress/e2e/configs/Payment/Mollie.js
index e2753ca6b2..27cd5c5fba 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Mollie.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Mollie.js
@@ -216,26 +216,15 @@ export const connectorDetails = {
},
},
},
- Void: getCustomExchange({
+ Void: {
Request: {},
Response: {
- status: 400,
- body: {
- error: {
- code: "IR_20",
- message: "Void flow not supported",
- connector: "mollie",
- type: "invalid_request",
- },
- },
- },
- ResponseCustom: {
status: 200,
body: {
status: "cancelled",
},
},
- }),
+ },
VoidAfterConfirm: {
Request: {},
Response: {
@@ -261,7 +250,10 @@ export const connectorDetails = {
},
},
},
- PartialRefund: getCustomExchange({
+ PartialRefund: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
amount: 2000,
},
@@ -271,14 +263,7 @@ export const connectorDetails = {
status: "pending",
},
},
- ResponseCustom: {
- status: 200,
- body: {
- status: "failed",
- reason: "FRAUD",
- },
- },
- }),
+ },
manualPaymentRefund: {
Request: {
amount: 6000,
@@ -290,7 +275,10 @@ export const connectorDetails = {
},
},
},
- manualPaymentPartialRefund: getCustomExchange({
+ manualPaymentPartialRefund: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
amount: 2000,
},
@@ -298,16 +286,10 @@ export const connectorDetails = {
status: 200,
body: {
status: "pending",
- },
- },
- ResponseCustom: {
- status: 200,
- body: {
- status: "failed",
reason: "FRAUD",
},
},
- }),
+ },
SyncRefund: getCustomExchange({
Request: {},
Response: {
@@ -407,6 +389,9 @@ export const connectorDetails = {
},
},
SaveCardUseNo3DSManualCaptureOffSession: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
payment_method: "card",
payment_method_data: {
@@ -485,6 +470,9 @@ export const connectorDetails = {
},
},
MandateMultiUseNo3DSManualCapture: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
payment_method: "card",
payment_method_data: {
@@ -518,6 +506,9 @@ export const connectorDetails = {
},
},
MandateSingleUseNo3DSManualCapture: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
payment_method: "card",
payment_method_data: {
@@ -535,6 +526,9 @@ export const connectorDetails = {
},
},
PaymentMethodIdMandateNo3DSManualCapture: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
payment_method: "card",
payment_method_data: {
@@ -637,6 +631,9 @@ export const connectorDetails = {
},
},
PaymentMethodIdMandate3DSManualCapture: {
+ Configs: {
+ TRIGGER_SKIP: true,
+ },
Request: {
payment_method: "card",
payment_method_data: {
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
index a048323d52..b6cd2626e3 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
@@ -38,6 +38,7 @@ import { connectorDetails as hipayConnectorDetails } from "./Hipay.js";
import { connectorDetails as iatapayConnectorDetails } from "./Iatapay.js";
import { connectorDetails as itaubankConnectorDetails } from "./ItauBank.js";
import { connectorDetails as jpmorganConnectorDetails } from "./Jpmorgan.js";
+import { connectorDetails as mollieConnectorDetails } from "./Mollie.js";
import { connectorDetails as monerisConnectorDetails } from "./Moneris.js";
import { connectorDetails as multisafepayConnectorDetails } from "./Multisafepay.js";
import { connectorDetails as nexinetsConnectorDetails } from "./Nexinets.js";
@@ -106,6 +107,7 @@ const connectorDetails = {
iatapay: iatapayConnectorDetails,
itaubank: itaubankConnectorDetails,
jpmorgan: jpmorganConnectorDetails,
+ mollie: mollieConnectorDetails,
moneris: monerisConnectorDetails,
multisafepay: multisafepayConnectorDetails,
nexinets: nexinetsConnectorDetails,