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

refactor(payment-links): use top redirection in status page (#8641)

Kashif30a4a340c331
diff --git a/crates/router/src/core/payment_link/payment_link_status/status.js b/crates/router/src/core/payment_link/payment_link_status/status.js
index 371fdf1d2d..863c423975 100644
--- a/crates/router/src/core/payment_link/payment_link_status/status.js
+++ b/crates/router/src/core/payment_link/payment_link_status/status.js
@@ -360,7 +360,7 @@ function renderStatusDetails(paymentDetails) {
url.search = params.toString();
setTimeout(function () {
// Finally redirect
- window.location.href = url.toString();
+ window.top.location.href = url.toString();
}, 1000);
}
}, i * 1000);