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
fix(router): store `network_transaction_id` in stripe `authorize` flow (#5399)
Shankar Singh Cbe78dfc04eff
diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rsindex 786f4a060b..90ddc9f0b9 100644--- a/crates/router/src/connector/stripe/transformers.rs+++ b/crates/router/src/connector/stripe/transformers.rs@@ -2389,7 +2389,18 @@ impl<F, T>//Note: we might have to call retrieve_setup_intent to get the network_transaction_id in case its not sent in PaymentIntentResponse// Or we identify the mandate txns before hand and always call SetupIntent in case of mandate payment call- let network_txn_id = Option::foreign_from(item.response.latest_attempt);+ let network_txn_id = match item.response.latest_charge.as_ref() {+ Some(StripeChargeEnum::ChargeObject(charge_object)) => charge_object+ .payment_method_details+ .as_ref()+ .and_then(|payment_method_details| match payment_method_details {+ StripePaymentMethodDetailsResponse::Card { card } => {+ card.network_transaction_id.clone()+ }+ _ => None,+ }),+ _ => None,+ };let connector_metadata =get_connector_metadata(item.response.next_action.as_ref(), item.response.amount)?;