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
refactor(fix): [Stripe] Fix bug in Stripe (#1505)
Arjun Karthik957d5e0f62ca
diff --git a/crates/router/src/connector/stripe.rs b/crates/router/src/connector/stripe.rsindex 2baae6dbfb..22fd28ef70 100644--- a/crates/router/src/connector/stripe.rs+++ b/crates/router/src/connector/stripe.rs@@ -1861,13 +1861,20 @@ impl services::ConnectorRedirectResponse for Stripe {crate::logger::debug!(stripe_redirect_response=?query);- Ok(query.redirect_status.map_or(- payments::CallConnectorAction::StatusUpdate {- status: enums::AttemptStatus::Pending,- error_code: None,- error_message: None,- },- |_| payments::CallConnectorAction::Trigger,- ))+ Ok(query+ .redirect_status+ .map_or(+ payments::CallConnectorAction::Trigger,+ |status| match status {+ transformers::StripePaymentStatus::Failed => {+ payments::CallConnectorAction::Trigger+ }+ _ => payments::CallConnectorAction::StatusUpdate {+ status: enums::AttemptStatus::from(status),+ error_code: None,+ error_message: None,+ },+ },+ ))}}