mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Catch payment intents without charges key
This commit is contained in:
parent
4d87b845e5
commit
575d5cda35
@ -93,7 +93,7 @@ class PaymentIntentWebhook implements ShouldQueue
|
||||
return;
|
||||
|
||||
|
||||
if(optional($this->stripe_request['object']['charges']['data'][0])['id']){
|
||||
if(isset($this->stripe_request['object']['charges']) && optional($this->stripe_request['object']['charges']['data'][0])['id']){
|
||||
|
||||
$company = Company::where('company_key', $this->company_key)->first();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user