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(payout_link): update fonts and UI for payout link (#5678)

Kashifa6cb6c6e68cc
diff --git a/crates/router/src/core/generic_link/payout_link/initiate/index.html b/crates/router/src/core/generic_link/payout_link/initiate/index.html
index fe574c37c3..26a0b1acb2 100644
--- a/crates/router/src/core/generic_link/payout_link/initiate/index.html
+++ b/crates/router/src/core/generic_link/payout_link/initiate/index.html
@@ -6,9 +6,9 @@
<title>{{ i18n_payout_link_title }}</title>
</head>
{{ css_style_tag }}
- <body>
+ <body class="hide-scrollbar">
<div class="main">
- <div id="payout-link"></div>
+ <div id="payout-link" class="hide-scrollbar"></div>
</div>
{{ js_script_tag }} {{ hyper_sdk_loader_script_tag }}
</body>
diff --git a/crates/router/src/core/generic_link/payout_link/initiate/script.js b/crates/router/src/core/generic_link/payout_link/initiate/script.js
index 276ef64494..abbfbb896a 100644
--- a/crates/router/src/core/generic_link/payout_link/initiate/script.js
+++ b/crates/router/src/core/generic_link/payout_link/initiate/script.js
@@ -136,7 +136,7 @@ if (!isTestMode && !isFramed) {
var appearance = {
variables: {
colorPrimary: payoutDetails?.theme?.primary_color || "rgb(0, 109, 249)",
- fontFamily: "Work Sans, sans-serif",
+ fontFamily: "ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
fontSizeBase: "16px",
colorText: "rgb(51, 65, 85)",
},
diff --git a/crates/router/src/core/generic_link/payout_link/initiate/styles.css b/crates/router/src/core/generic_link/payout_link/initiate/styles.css
index 63d94724bc..e24823643f 100644
--- a/crates/router/src/core/generic_link/payout_link/initiate/styles.css
+++ b/crates/router/src/core/generic_link/payout_link/initiate/styles.css
@@ -5,6 +5,8 @@ body {
}
body {
+ font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
+ "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
display: flex;
flex-flow: column;
align-items: center;
@@ -26,7 +28,8 @@ body {
scrollbar-width: none;
}
-.main, #payout-link {
+.main,
+#payout-link {
height: 100vh;
width: 100%;
}
diff --git a/crates/router/src/core/generic_link/payout_link/status/index.html b/crates/router/src/core/generic_link/payout_link/status/index.html
index 4a4f026056..b338c71af9 100644
--- a/crates/router/src/core/generic_link/payout_link/status/index.html
+++ b/crates/router/src/core/generic_link/payout_link/status/index.html
@@ -6,7 +6,7 @@
<title>{{ i18n_payout_link_status_title }}</title>
{{ css_style_tag }}
</head>
- <body>
+ <body class="hide-scrollbar">
<div class="main">
<div id="status-card">
<div id="merchant-header"></div>
diff --git a/crates/router/src/core/generic_link/payout_link/status/script.js b/crates/router/src/core/generic_link/payout_link/status/script.js
index 42b5790359..828ea7f7fc 100644
--- a/crates/router/src/core/generic_link/payout_link/status/script.js
+++ b/crates/router/src/core/generic_link/payout_link/status/script.js
@@ -167,7 +167,7 @@ function redirectToEndUrl(returnUrl) {
? "{{i18n_redirecting_text}}"
: "{{i18n_redirecting_in_text}} " +
secondsLeft +
- " {{i18n_seconds_text}} ...";
+ " {{i18n_seconds_text}}";
if (statusRedirectTextNode instanceof HTMLDivElement) {
statusRedirectTextNode.innerText = innerText;
}
diff --git a/crates/router/src/core/generic_link/payout_link/status/styles.css b/crates/router/src/core/generic_link/payout_link/status/styles.css
index d566855312..ff922298fa 100644
--- a/crates/router/src/core/generic_link/payout_link/status/styles.css
+++ b/crates/router/src/core/generic_link/payout_link/status/styles.css
@@ -57,7 +57,7 @@ body {
font-size: 25px;
}
#merchant-header > img {
- height: 30px;
+ height: 48px;
}
#status-image {
diff --git a/crates/router/src/services/api/generic_link_response/context.rs b/crates/router/src/services/api/generic_link_response/context.rs
index 1ea45bd108..25d2e3f166 100644
--- a/crates/router/src/services/api/generic_link_response/context.rs
+++ b/crates/router/src/services/api/generic_link_response/context.rs
@@ -41,8 +41,8 @@ pub fn insert_locales_in_context_for_payout_link_status(context: &mut Context, l
let i18n_payout_link_status_title = t!("payout_link.status.title", locale = locale);
let i18n_success_text = t!("payout_link.status.text.success", locale = locale);
let i18n_success_message = t!("payout_link.status.message.success", locale = locale);
- let i18n_pending_text = t!("payout_link.status.text.pending", locale = locale);
- let i18n_pending_message = t!("payout_link.status.message.pending", locale = locale);
+ let i18n_pending_text = t!("payout_link.status.text.processing", locale = locale);
+ let i18n_pending_message = t!("payout_link.status.message.processing", locale = locale);
let i18n_failed_text = t!("payout_link.status.text.failed", locale = locale);
let i18n_failed_message = t!("payout_link.status.message.failed", locale = locale);
let i18n_ref_id_text = t!("payout_link.status.info.ref_id", locale = locale);