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): Add testcase for newline in address (#6721)

Gnanasundari2405f737309f7f
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js b/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js
index 97a5bd0971..ea7fe7b7ac 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js
@@ -90,6 +90,24 @@ const payment_method_data_3ds = {
billing: null,
};
+const billing_with_newline = {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street\nApt 101",
+ line3: "Harrison Street\nApt 101",
+ city: "San Fransico\n city",
+ state: "California",
+ zip: "94122",
+ country: "NL",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "9123456789",
+ country_code: "+91",
+ },
+};
+
export const connectorDetails = {
card_pm: {
PaymentIntent: {
@@ -215,6 +233,7 @@ export const connectorDetails = {
currency: "USD",
customer_acceptance: null,
setup_future_usage: "on_session",
+ billing: billing_with_newline,
},
Response: {
status: 200,