fix some for weebhok url and return url on montify
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user