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

fix(router): [stripe connect] saved card (#12878)

Akshaya Shankarc9d599437161
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index 139b4eee05..654b10f707 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -9046,7 +9046,10 @@ async fn decide_payment_method_tokenize_action(
payment_intent_data.split_payments,
Some(common_types::payments::SplitPaymentsRequest::StripeSplitPayment(_))
) {
- Ok(TokenizationAction::TokenizeInConnector)
+ match pm_parent_token {
+ None => Ok(TokenizationAction::TokenizeInConnector),
+ Some(_) => Ok(TokenizationAction::TokenizeInConnectorAndRouter),
+ }
} else {
match pm_parent_token {
None => Ok(if is_connector_tokenization_enabled {