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

ci(cypress): fix fiuu connector tests (#13544)

likhinbopannaf999b5749372
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Adyen.js b/cypress-tests/cypress/e2e/configs/Payment/Adyen.js
index 3e31b8bb13..852e7be9fa 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Adyen.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Adyen.js
@@ -1096,13 +1096,6 @@ export const connectorDetails = {
ConnectorTestingData: {
Request: {
currency: "USD",
- connector_metadata: {
- adyen: {
- testing: {
- holder_name: "Test Holder Name Override",
- },
- },
- },
},
Response: {
status: 200,
@@ -1117,16 +1110,16 @@ export const connectorDetails = {
payment_method_data: {
card: {
card_number: "4111111111111111",
- card_exp_month: "12",
+ card_exp_month: "03",
card_exp_year: "2030",
- card_cvc: "123",
+ card_cvc: "737",
card_holder_name: "Original Card Holder",
},
},
connector_metadata: {
adyen: {
testing: {
- holder_name: "Test Holder Name Override",
+ holder_name: "CARD_EXPIRED",
},
},
},
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
index 931b2a2204..84c05163a5 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
@@ -1,10 +1,10 @@
import {
+ blockedPaymentErrorBodyForBinUnavailable,
+ blockedPaymentErrorBodyForCardSubtype,
+ blockedPaymentErrorBodyForDebitCard,
+ blockedPaymentErrorBodyForIssuingCountry,
cardRequiredField,
customerAcceptance,
- blockedPaymentErrorBodyForIssuingCountry,
- blockedPaymentErrorBodyForDebitCard,
- blockedPaymentErrorBodyForCardSubtype,
- blockedPaymentErrorBodyForBinUnavailable,
} from "./Commons";
const successfulNo3DSCardDetails = {
@@ -85,6 +85,17 @@ const requiredFields = {
],
};
+const MITErrorResponse = {
+ status: 200,
+ body: {
+ status: "failed",
+ error_code:
+ "Your transaction has been denied due to merchant account issue",
+ error_message:
+ "Your transaction has been denied due to merchant account issue",
+ },
+};
+
export const connectorDetails = {
real_time_payment_pm: {
DuitNow: {
@@ -438,14 +449,7 @@ export const connectorDetails = {
currency: "MYR",
billing: billingAddress,
},
- Response: {
- status: 200,
- body: {
- status: "failed",
- error_code: "Token not found",
- error_message: "Token not found",
- },
- },
+ Response: MITErrorResponse,
},
MITWithoutBillingAddress: {
Configs: {
@@ -467,15 +471,11 @@ export const connectorDetails = {
Configs: {
TRIGGER_SKIP: true,
},
- Request: {},
- Response: {
- status: 200,
- body: {
- status: "failed",
- error_code: "Token not found",
- error_message: "Token not found",
- },
+ Request: {
+ currency: "MYR",
+ billing: billingAddress,
},
+ Response: MITErrorResponse,
},
PaymentIntentOffSession: {
Request: {
@@ -608,28 +608,14 @@ export const connectorDetails = {
setup_future_usage: "off_session",
billing: billingAddress,
},
- Response: {
- status: 200,
- body: {
- status: "failed",
- error_code: "Token not found",
- error_message: "Token not found",
- },
- },
+ Response: MITErrorResponse,
},
SaveCardConfirmManualCaptureOffSession: {
Request: {
setup_future_usage: "off_session",
billing: billingAddress,
},
- Response: {
- status: 200,
- body: {
- status: "failed",
- error_code: "Token not found",
- error_message: "Token not found",
- },
- },
+ Response: MITErrorResponse,
},
PaymentMethodIdMandateNo3DSManualCapture: {
Request: {
@@ -736,14 +722,7 @@ export const connectorDetails = {
setup_future_usage: "off_session",
billing: null,
},
- Response: {
- status: 200,
- body: {
- status: "failed",
- error_code: "Token not found",
- error_message: "Token not found",
- },
- },
+ Response: MITErrorResponse,
},
ZeroAuthPaymentIntent: {
Configs: {