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): simplify error message for declined card status (#10415)

Ayush Anand662420b989fd
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js b/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js
index 877d5dc5df..e074fe1c4c 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Cybersource.js
@@ -322,7 +322,7 @@ export const connectorDetails = {
body: {
status: "failed",
error_message:
- "Declined - One or more fields in the request contains invalid data, detailed_error_information: orderInformation.billTo.administrativeArea : INVALID_DATA",
+ "Declined - One or more fields in the request contains invalid data",
attempt_count: 1,
},
},
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js
index d55fa0a59e..fc73f89958 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js
@@ -294,8 +294,7 @@ export const connectorDetails = {
body: {
status: "failed",
error_code: "card_declined",
- error_message:
- "message - Your card was declined., decline_code - generic_decline",
+ error_message: "Your card was declined.",
unified_code: "UE_9000",
unified_message: "Something went wrong",
},