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): add payment_id as query param in merchant return url (#6665)
chikke srujan682947866e6a
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rsindex d4f5b3b49f..8435f09e8f 100644--- a/crates/router/src/core/payments/helpers.rs+++ b/crates/router/src/core/payments/helpers.rs@@ -2948,11 +2948,13 @@ pub fn make_merchant_url_with_response(.ok_or(errors::ApiErrorResponse::InternalServerError).attach_printable("Expected client secret to be `Some`")?;+ let payment_id = redirection_response.payment_id.get_string_repr().to_owned();let merchant_url_with_response = if business_profile.redirect_to_merchant_with_http_post {url::Url::parse_with_params(url,&[("status", status_check.to_string()),+ ("payment_id", payment_id),("payment_intent_client_secret",payment_client_secret.peek().to_string(),@@ -2971,6 +2973,7 @@ pub fn make_merchant_url_with_response(url,&[("status", status_check.to_string()),+ ("payment_id", payment_id),("payment_intent_client_secret",payment_client_secret.peek().to_string(),