From 438782d53637939cb7665a68167050967e851b3c Mon Sep 17 00:00:00 2001 From: erio Date: Mon, 6 Apr 2026 23:15:32 +0800 Subject: [PATCH] fix(payment): split callback URL into base URL + fixed path, wider dialog - Callback URLs now split: editable base URL + read-only fixed path - Base URL defaults to current domain, user can change it - notifyUrl/returnUrl computed as baseUrl + fixed webhook path - Edit loads existing base URL by extracting it from stored notifyUrl - Dialog width set to wide for more space - Strict validation: all required fields must be filled on both create/edit --- .../payment/PaymentProviderDialog.vue | 45 +++++++++++++++++-- .../src/components/payment/providerConfig.ts | 29 +++++++++--- frontend/src/i18n/locales/en.ts | 1 + frontend/src/i18n/locales/zh.ts | 1 + 4 files changed, 65 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/payment/PaymentProviderDialog.vue b/frontend/src/components/payment/PaymentProviderDialog.vue index 2dd2e0d162..018bd46169 100644 --- a/frontend/src/components/payment/PaymentProviderDialog.vue +++ b/frontend/src/components/payment/PaymentProviderDialog.vue @@ -2,6 +2,7 @@
@@ -90,6 +91,22 @@ + +
+
+ + +
+
+ {{ t('admin.settings.payment.field_notifyUrl') }}: + {{ callbackBaseUrl || defaultBaseUrl }}{{ callbackPaths.notifyUrl }} +
+
+ {{ t('admin.settings.payment.field_returnUrl') }}: + {{ callbackBaseUrl || defaultBaseUrl }}{{ callbackPaths.returnUrl }} +
+
+

@@ -160,7 +177,7 @@