fix some for weebhok url and return url on montify

This commit is contained in:
mahmood
2026-07-27 01:11:01 +03:30
parent 5bcd8f6466
commit afc23165bd
4 changed files with 83 additions and 5 deletions
+17 -4
View File
@@ -89,12 +89,25 @@ Montify → payment_url → درگاه بانکی
| `external_payment_webhook_url` | text | اختیاری؛ خالی = پیش‌فرض سرور |
| `min_deposit` | price | حداقل مبلغ واریز (گروه کارمزد و محدودیت‌ها) |
### مقادیر پیش‌فرض URL وقتی فیلد خالی است
### مقادیر پیشنهادی برای abaiegold
- Return: `{APP}/customer/wallet/payment/return/montify`
- Webhook: `{APP}/customer/wallet/payment/webhook/montify`
| فیلد Settings | مقدار |
|---------------|--------|
| `external_payment_return_url` | `https://abaeigold.ir/wallet/payment-result` |
| `external_payment_webhook_url` | `https://abaeigold.ir/server/customer/wallet/payment/webhook/montify` |
در whitelist پارتنر Montify حداقل این پیشوندها را ثبت کنید:
- Return: `https://abaeigold.ir/wallet/payment-result` یا `https://abaeigold.ir/wallet/`
- Webhook: همان URL کامل webhook بالا
جریان برگشت فرانت:
1. Montify کاربر را به `return_url` با query امضاشده می‌فرستد
2. صفحه `khaneghi_user` → `/wallet/payment-result`
3. فرانت `POST /customer/wallet/payment/verify-return` می‌زند (امضا فقط سمت سرور verify می‌شود)
4. webhook هم موازی برای شارژ قطعی به بک‌اند می‌آید (idempotent)
این آدرس‌ها باید در whitelist پارتنر Montify ثبت شوند.
### Migrationها