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): Propagate correct error on session recreation failure (#12379)

Anurag Thakur7f266901c06b
diff --git a/crates/router/src/core/payments/operations/payment_update.rs b/crates/router/src/core/payments/operations/payment_update.rs
index 58b661b670..88d5d0c264 100644
--- a/crates/router/src/core/payments/operations/payment_update.rs
+++ b/crates/router/src/core/payments/operations/payment_update.rs
@@ -1141,7 +1141,6 @@ impl<F: Clone + Sync> UpdateTracker<F, PaymentData<F>, api::PaymentsRequest> for
payment_data.payment_intent.session_expiry,
)
.await
- .change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable("Failed to refresh client session during payment update")?;
services::logger::debug!(