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(core): propagate current_flow_info to access-token refresh for webhook registration (#13384)
Sayak Bhattacharya97afdfa3aad3
diff --git a/crates/router/src/core/merchant_connector_webhook_management.rs b/crates/router/src/core/merchant_connector_webhook_management.rsindex 6bdea74230..2d69f22572 100644--- a/crates/router/src/core/merchant_connector_webhook_management.rs+++ b/crates/router/src/core/merchant_connector_webhook_management.rs@@ -82,7 +82,7 @@ async fn fetch_access_token_for_webhook(.get_access_token_key(&router_data.merchant_id,merchant_connector_id_or_connector_name.clone(),- current_flow_info,+ current_flow_info.clone(),router_data.payment_method_type,Some(false),)@@ -109,7 +109,7 @@ async fn fetch_access_token_for_webhook(let refresh_token_request_data = types::AccessTokenRequestData::try_from((router_data.connector_auth_type.clone(),None,- None,+ current_flow_info,)).map_err(to_error_response)?;