mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 00:57:02 +00:00
Minor fixes for payment intent processing
This commit is contained in:
@@ -83,7 +83,8 @@ class PaymentIntentProcessingWebhook implements ShouldQueue
|
||||
/** @var \App\Models\ClientGatewayToken $cgt **/
|
||||
$cgt = ClientGatewayToken::where('token', $transaction['payment_method'])->first();
|
||||
|
||||
if ($cgt && $cgt->meta?->state == 'unauthorized') {
|
||||
if ($cgt && isset($cgt->meta)) {
|
||||
// if ($cgt && $cgt->meta?->state == 'unauthorized') {
|
||||
$meta = $cgt->meta;
|
||||
$meta->state = 'authorized';
|
||||
$cgt->meta = $meta;
|
||||
|
||||
Reference in New Issue
Block a user