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 payload (#12692)

HS-QUALIBOTc4c46c69f3b5
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Commons.js b/cypress-tests/cypress/e2e/configs/Payment/Commons.js
index 7e3dd90ad8..2f360ba506 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Commons.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Commons.js
@@ -1745,6 +1745,47 @@ export const connectorDetails = {
},
},
}),
+ PaymentIntentWithBillingDescriptor: getCustomExchange({
+ Request: {
+ currency: "USD",
+ billing_descriptor: {
+ name: "Test Business",
+ city: "San Francisco",
+ phone: "1234567890",
+ statement_descriptor: "Test Descriptor",
+ statement_descriptor_suffix: "Suffix",
+ reference: "REF123",
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_payment_method",
+ },
+ },
+ }),
+ PaymentConfirmWithBillingDescriptor: getCustomExchange({
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ billing_descriptor: {
+ name: "Test Business",
+ city: "San Francisco",
+ phone: "1234567890",
+ statement_descriptor: "Test Descriptor",
+ statement_descriptor_suffix: "Suffix",
+ reference: "REF123",
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ }),
PaymentConfirmWithShippingCost: getCustomExchange({
Request: {
payment_method: "card",
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Payload.js b/cypress-tests/cypress/e2e/configs/Payment/Payload.js
index 728e686685..8a48f8d322 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Payload.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Payload.js
@@ -86,6 +86,60 @@ export const connectorDetails = {
},
},
},
+ PaymentIntentWithBillingDescriptor: {
+ Configs: {
+ DELAY: {
+ STATUS: true,
+ TIMEOUT: DUPLICATION_TIMEOUT,
+ },
+ },
+ Request: {
+ currency: "USD",
+ billing_descriptor: {
+ name: "Test Business",
+ city: "San Francisco",
+ phone: "1234567890",
+ statement_descriptor: "Test Descriptor",
+ statement_descriptor_suffix: "Suffix",
+ reference: "REF123",
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "requires_payment_method",
+ },
+ },
+ },
+ PaymentConfirmWithBillingDescriptor: {
+ Configs: {
+ DELAY: {
+ STATUS: true,
+ TIMEOUT: DUPLICATION_TIMEOUT,
+ },
+ },
+ Request: {
+ payment_method: "card",
+ payment_method_data: {
+ card: successfulNo3DSCardDetails,
+ },
+ billing_descriptor: {
+ name: "Test Business",
+ city: "San Francisco",
+ phone: "1234567890",
+ statement_descriptor: "Test Descriptor",
+ statement_descriptor_suffix: "Suffix",
+ reference: "REF123",
+ },
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ amount_received: 6000,
+ },
+ },
+ },
"3DSManualCapture": {
Configs: {
TRIGGER_SKIP: true,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
index 85b03b31b7..9b0dc004a9 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js
@@ -567,6 +567,7 @@ export const CONNECTOR_LISTS = {
"nuvei",
"trustpay",
"finix",
+ "payload",
],
BILLING_DESCRIPTOR_INVALID_PHONE: ["nuvei"],
FEATURE_METADATA: ["bankofamerica"],