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
feat(router): send `openurl_if_required` post_message in external 3ds flow for return_url redirection from sdk (#4642)
Sai Harsha Vardhanbf06a5b51161
diff --git a/crates/router/src/core/utils.rs b/crates/router/src/core/utils.rsindex ae6dc0e86f..6f0d099896 100644--- a/crates/router/src/core/utils.rs+++ b/crates/router/src/core/utils.rs@@ -1168,7 +1168,7 @@ pub fn get_html_redirect_response_for_external_authentication(try {{// if inside iframe, send post message to parent for redirectionif (window.self !== window.parent) {{- window.top.postMessage({{openurl: return_url}}, '*')+ window.top.postMessage({{openurl_if_required: return_url}}, '*')// if parent, redirect self to return_url}} else {{window.location.href = return_url@@ -1176,7 +1176,7 @@ pub fn get_html_redirect_response_for_external_authentication(}}catch(err) {{// if error occurs, send post message to parent and wait for 10 secs to redirect. if doesn't redirect, redirect self to return_url- window.top.postMessage({{openurl: return_url}}, '*')+ window.top.postMessage({{openurl_if_required: return_url}}, '*')setTimeout(function() {{window.location.href = return_url}}, 10000);