Catch payment intents without charges key
This commit is contained in:
parent
4d87b845e5
commit
575d5cda35
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue