mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Enabled off-site payment with PayPal Express
This commit is contained in:
parent
b523d6f44d
commit
0daa3161e3
@ -176,7 +176,9 @@ class PaymentController extends \BaseController
|
||||
public function show_payment($invitationKey)
|
||||
{
|
||||
// For PayPal Express we redirect straight to their site
|
||||
if (Auth::user()->account->isGatewayConfigured(GATEWAY_PAYPAL_EXPRESS))
|
||||
$invitation = Invitation::with('invoice.client.account')->where('invitation_key', '=', $invitationKey)->firstOrFail();
|
||||
$account = $invitation->invoice->client->account;
|
||||
if ($account->isGatewayConfigured(GATEWAY_PAYPAL_EXPRESS))
|
||||
{
|
||||
return self::do_payment($invitationKey, false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user