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(payment_link): move redirection fn to global scope for open links (#5494)
Kashif7ddfbf51c3c3
diff --git a/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js b/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.jsindex 4d14af1577..6269b3546a 100644--- a/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js+++ b/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js@@ -68,15 +68,15 @@ function initializeSDK() {setTimeout(() => {document.body.removeChild(shimmer);}, 500);+}- /**- * Use - redirect to /payment_link/status- */- function redirectToStatus() {- var arr = window.location.pathname.split("/");- arr.splice(0, 2);- arr.unshift("status");- arr.unshift("payment_link");- window.location.href = window.location.origin + "/" + arr.join("/");- }+/**+ * Use - redirect to /payment_link/status+ */+function redirectToStatus() {+ var arr = window.location.pathname.split("/");+ arr.splice(0, 2);+ arr.unshift("status");+ arr.unshift("payment_link");+ window.location.href = window.location.origin + "/" + arr.join("/");}