mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for Paypal Token payments
This commit is contained in:
parent
64fb9c9a85
commit
1bd1d482ec
@ -111,7 +111,10 @@ class PayPal
|
||||
'paymentMethodNonce' => $gateway_response->nonce,
|
||||
]);
|
||||
|
||||
if($payment_method->success)
|
||||
return $payment_method->paymentMethod->token;
|
||||
else
|
||||
throw new PaymentFailed(property_exists($payment_method, 'message') ? $payment_method->message : 'Undefined error storing payment token.', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -31,7 +31,7 @@
|
||||
{{ ctrans('texts.type') }}
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||
{{ $payment_method->meta?->brand }}
|
||||
{{ property_exists($payment_method->meta, 'brand') ? $payment_method->meta?->brand : ''}}
|
||||
{{ property_exists($payment_method->meta, 'scheme') ? $payment_method->meta?->scheme : '' }}
|
||||
</dd>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user