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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci(cypress): add L2L3 data processing for stripe (#13707)
Vasantha1dd67004960
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js b/cypress-tests/cypress/e2e/configs/Payment/Stripe.jsindex 067659b534..4893354352 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Stripe.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Stripe.js@@ -384,6 +384,85 @@ export const connectorDetails = {},},},+ L2L3Data: {+ // Stripe L2/L3 data: Level 2 (tax/shipping) and Level 3 (line items) for payment processing+ // Amount must equal sum of order_details excluding shipping_cost+ Request: {+ currency: "USD",+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ // amount must equal sum of order_details line items only (excluding shipping_cost)+ amount: 6000,+ order_tax_amount: null,+ shipping_cost: 1000,+ shipping: {+ address: {+ city: "SANTA MARIA",+ country: "US",+ line1: "ewwe",+ line2: "wer",+ zip: "123342",+ state: "we",+ first_name: "were",+ last_name: "wer",+ // Merchant origin for tax/shipping calculation; null when not location-dependent+ origin_zip: null,+ },+ },+ merchant_order_reference_id: "stripe-l2l3-order-reference",+ // Single item design prevents amount_details accumulation during test retries+ order_details: [+ {+ product_name: "Test Product Bundle",+ quantity: 1,+ amount: 6000,+ requires_shipping: true,+ },+ ],+ customer_acceptance: null,+ setup_future_usage: "on_session",+ },+ Response: {+ status: 200,+ body: {+ // Confirm endpoint returns only status; L2/L3 data verified via retrieve response+ status: "succeeded",+ },+ },+ },+ L2L3DataRetrieve: {+ Request: {},+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ shipping_cost: 1000,+ merchant_order_reference_id: "stripe-l2l3-order-reference",+ order_details: [+ {+ product_name: "Test Product Bundle",+ quantity: 1,+ amount: 6000,+ requires_shipping: true,+ },+ ],+ shipping: {+ address: {+ line1: "ewwe",+ line2: "wer",+ city: "SANTA MARIA",+ state: "we",+ zip: "123342",+ country: "US",+ first_name: "were",+ last_name: "wer",+ },+ },+ },+ },+ },No3DSFailPayment: {Request: {payment_method: "card",diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.jsindex 537e833833..99af6aa336 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js@@ -777,7 +777,7 @@ export const CONNECTOR_LISTS = {],CARD_TESTING_GUARD: ["bankofamerica"],CLEAR_PAN_RETRY: ["bankofamerica"],- L2L3DATA: ["checkout", "nuvei", "worldpayvantiv"],+ L2L3DATA: ["checkout", "nuvei", "stripe", "worldpayvantiv"],REFUND_MANUAL_UPDATE: ["bankofamerica", "cybersource"],REFUND_TYPE: ["stripe", "adyen", "checkout"],MANUAL_PAYMENT_UPDATE: ["stripe"],