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

test(cypress): add billing descriptor coverage for checkout (#11897)

HS-QUALIBOT39aa4abf99af
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js b/cypress-tests/cypress/e2e/configs/Payment/Checkout.js
index 3a917d763b..14b1488a36 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Checkout.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Checkout.js
@@ -674,5 +674,44 @@ export const connectorDetails = {
},
},
},
+ PaymentIntentWithBillingDescriptor: {
+ Request: {
+ currency: "USD",
+ billing_descriptor: {
+ name: "Juspay",
+ city: "San Francisco",
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_payment_method",
+ },
+ },
+ },
+ PaymentConfirmWithBillingDescriptor: {
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ customer_acceptance: null,
+ setup_future_usage: "on_session",
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ billing_descriptor: {
+ name: "Juspay",
+ city: "San Francisco",
+ phone: null,
+ statement_descriptor: null,
+ statement_descriptor_suffix: null,
+ reference: null,
+ },
+ },
+ },
+ },
},
};
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
index 61593b3aec..1a298dbae6 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
@@ -508,7 +508,7 @@ export const CONNECTOR_LISTS = {
"stripe",
],
CARD_INSTALLMENTS: ["adyen"],
- BILLING_DESCRIPTOR: ["adyen"],
+ BILLING_DESCRIPTOR: ["adyen", "checkout"],
AUTO_RETRY: [
"cybersource",
"checkout",