mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Return early if no hash found
This commit is contained in:
parent
44cd369256
commit
85c40de5de
@ -138,6 +138,9 @@ class PaymentIntentWebhook implements ShouldQueue
|
|||||||
|
|
||||||
$hash = isset($charge['metadata']['payment_hash']) ? $charge['metadata']['payment_hash'] : false;
|
$hash = isset($charge['metadata']['payment_hash']) ? $charge['metadata']['payment_hash'] : false;
|
||||||
|
|
||||||
|
if(!$hash)
|
||||||
|
return;
|
||||||
|
|
||||||
$payment_hash = PaymentHash::where('hash', $hash)->first();
|
$payment_hash = PaymentHash::where('hash', $hash)->first();
|
||||||
|
|
||||||
if(!$payment_hash)
|
if(!$payment_hash)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user