Catch payment intents without charges key

This commit is contained in:
David Bomba 2022-11-23 07:43:14 +11:00
parent 4d87b845e5
commit 575d5cda35

View File

@ -93,7 +93,7 @@ class PaymentIntentWebhook implements ShouldQueue
return; 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(); $company = Company::where('company_key', $this->company_key)->first();