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
@@ -48,7 +48,15 @@ class MontifyPartnerGateway implements WalletPaymentGatewayInterface
return $fromSettings;
}
return url('/customer/wallet/payment/return/' . $this->key());
// پیش‌فرض: صفحه فرانت برای نمایش نتیجه + verify سمت سرور
$site = $this->config->resolvePublicSiteUrl(request());
if ($site === '') {
$appUrl = rtrim((string) config('app.url'), '/');
// اگر APP_URL با /server تمام شود، دامنه فرانت همان host بدون /server است
$site = preg_replace('#/server$#', '', $appUrl) ?: $appUrl;
}
return rtrim($site, '/') . '/wallet/payment-result';
}
public function webhookUrl(): string