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
feat(router): restrict tokenization to stripe split payments (#15317)
Akshaya Shankarddfd93a663c5
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rsindex 4b70affcee..e487d0e74c 100644--- a/crates/router/src/core/payments.rs+++ b/crates/router/src/core/payments.rs@@ -10376,10 +10376,13 @@ async fn decide_payment_method_tokenize_action(is_connector_tokenization_enabled: bool,is_network_transaction_id_flow: bool,) -> RouterResult<TokenizationAction> {- if matches!(+ let is_stripe_split_payment = matches!(payment_intent_data.split_payments,Some(common_types::payments::SplitPaymentsRequest::StripeSplitPayment(_))- ) {+ ) && connector_name+ == router_types::Connector::Stripe.to_string();++ if is_stripe_split_payment {match pm_parent_token {// If the payment method is not stored in the router and this is not a network tokenization flow,// there is no need to resolve the payment method data from the payment method ID.