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 billing address for bank redirects (#4903)

likhinbopanna87075c17c48b
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Adyen.js b/cypress-tests/cypress/e2e/PaymentUtils/Adyen.js
index 36c3d2c205..8b61c819cb 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/Adyen.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/Adyen.js
@@ -389,6 +389,23 @@ export const connectorDetails = {
pix: {},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "BR",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
currency: "BRL",
},
Response: {
@@ -419,10 +436,26 @@ export const connectorDetails = {
bank_redirect: {
ideal: {
bank_name: "ing",
- country: "NL",
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "NL",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
@@ -441,10 +474,26 @@ export const connectorDetails = {
bank_name: "",
bank_account_bic: "",
bank_account_iban: "",
- country: "DE",
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
@@ -460,11 +509,27 @@ export const connectorDetails = {
payment_method_data: {
bank_redirect: {
sofort: {
- country: "DE",
preferred_language: "en",
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
@@ -484,6 +549,23 @@ export const connectorDetails = {
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "AT",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Commons.js b/cypress-tests/cypress/e2e/PaymentUtils/Commons.js
index 250396cb25..e7dd9a85b3 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/Commons.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/Commons.js
@@ -407,6 +407,19 @@ export const connectorDetails = {
pix: {},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "BR",
+ first_name: "john",
+ last_name: "doe",
+ },
+ },
currency: "BRL",
},
}),
@@ -435,6 +448,19 @@ export const connectorDetails = {
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "NL",
+ first_name: "john",
+ last_name: "doe",
+ },
+ },
},
}),
giropay: getCustomExchange({
@@ -452,6 +478,19 @@ export const connectorDetails = {
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "john",
+ last_name: "doe",
+ },
+ },
},
}),
sofort: getCustomExchange({
@@ -466,6 +505,19 @@ export const connectorDetails = {
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "john",
+ last_name: "doe",
+ },
+ },
},
}),
eps: getCustomExchange({
@@ -479,6 +531,19 @@ export const connectorDetails = {
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "AT",
+ first_name: "john",
+ last_name: "doe",
+ },
+ },
},
}),
przelewy24: getCustomExchange({
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Stripe.js b/cypress-tests/cypress/e2e/PaymentUtils/Stripe.js
index 7af51bf007..72495bf40f 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/Stripe.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/Stripe.js
@@ -392,10 +392,26 @@ export const connectorDetails = {
bank_redirect: {
ideal: {
bank_name: "ing",
- country: "NL",
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "NL",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
@@ -410,9 +426,24 @@ export const connectorDetails = {
payment_method_type: "giropay",
payment_method_data: {
bank_redirect: {
- giropay: {
- country: "DE",
- },
+ giropay: {},
+ },
+ },
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
},
},
},
@@ -429,10 +460,24 @@ export const connectorDetails = {
payment_method_type: "sofort",
payment_method_data: {
bank_redirect: {
- sofort: {
- country: "DE",
- preferred_language: "en",
- },
+ sofort: {},
+ },
+ },
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
},
},
},
@@ -454,6 +499,23 @@ export const connectorDetails = {
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "AT",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Trustpay.js b/cypress-tests/cypress/e2e/PaymentUtils/Trustpay.js
index 338371f72e..742f96f37a 100644
--- a/cypress-tests/cypress/e2e/PaymentUtils/Trustpay.js
+++ b/cypress-tests/cypress/e2e/PaymentUtils/Trustpay.js
@@ -448,10 +448,26 @@ export const connectorDetails = {
bank_redirect: {
ideal: {
bank_name: "ing",
- country: "NL",
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "NL",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
@@ -470,10 +486,26 @@ export const connectorDetails = {
bank_name: "",
bank_account_bic: "",
bank_account_iban: "",
- country: "DE",
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,
@@ -488,10 +520,24 @@ export const connectorDetails = {
payment_method_type: "sofort",
payment_method_data: {
bank_redirect: {
- sofort: {
- country: "DE",
- preferred_language: "en",
- },
+ sofort: {},
+ },
+ },
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "DE",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
},
},
},
@@ -514,6 +560,23 @@ export const connectorDetails = {
},
},
},
+ billing: {
+ address: {
+ line1: "1467",
+ line2: "Harrison Street",
+ line3: "Harrison Street",
+ city: "San Fransico",
+ state: "California",
+ zip: "94122",
+ country: "AT",
+ first_name: "joseph",
+ last_name: "Doe",
+ },
+ phone: {
+ number: "8056594427",
+ country_code: "+91",
+ },
+ },
},
Response: {
status: 200,