diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index d247c22690..35ead952f7 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -937,7 +937,11 @@ class BasePaymentDriver $url = 'javascript:showCustomModal();'; $label = e($this->accountGateway->getConfigField('name')); } else { - $url = $this->paymentUrl($gatewayTypeAlias); + if ($gatewayTypeId == GATEWAY_TYPE_ALIPAY) { + $url = url("/create_source/{$this->invitation->invitation_key}/alipay"); + } else { + $url = $this->paymentUrl($gatewayTypeAlias); + } if ($custom = $this->account()->getLabel($gatewayTypeAlias)) { $label = $custom; } else { diff --git a/resources/views/accounts/account_gateway.blade.php b/resources/views/accounts/account_gateway.blade.php index 835b6e2f6b..f4bca20093 100644 --- a/resources/views/accounts/account_gateway.blade.php +++ b/resources/views/accounts/account_gateway.blade.php @@ -158,7 +158,7 @@ ->help(trans('texts.stripe_alipay_help', ['link' => link_to('https://dashboard.stripe.com/account/payments/settings', 'Stripe', ['target' => '_blank'])])) ->value(1) !!} -
+ +