mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check property exists in mollie webhook reqeuest
This commit is contained in:
parent
88b41b70d5
commit
5f413172b7
@ -319,7 +319,7 @@ class MolliePaymentDriver extends BaseDriver
|
|||||||
// we may not have a payment record - in these cases we need to re-construct the payment
|
// we may not have a payment record - in these cases we need to re-construct the payment
|
||||||
// record from the meta data in the payment hash.
|
// record from the meta data in the payment hash.
|
||||||
|
|
||||||
if($payment && $payment->metadata->payment_hash){
|
if($payment && property_exists($payment->metadata, 'payment_hash') && $payment->metadata->payment_hash){
|
||||||
|
|
||||||
/* Harvest Payment Hash*/
|
/* Harvest Payment Hash*/
|
||||||
$payment_hash = PaymentHash::where('hash', $payment->metadata->hash)->first();
|
$payment_hash = PaymentHash::where('hash', $payment->metadata->hash)->first();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user