Return early if no hash found
This commit is contained in:
parent
44cd369256
commit
85c40de5de
1 changed files with 3 additions and 0 deletions
|
|
@ -138,6 +138,9 @@ class PaymentIntentWebhook implements ShouldQueue
|
|||
|
||||
$hash = isset($charge['metadata']['payment_hash']) ? $charge['metadata']['payment_hash'] : false;
|
||||
|
||||
if(!$hash)
|
||||
return;
|
||||
|
||||
$payment_hash = PaymentHash::where('hash', $hash)->first();
|
||||
|
||||
if(!$payment_hash)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue