Check property exists in mollie webhook reqeuest
This commit is contained in:
parent
88b41b70d5
commit
5f413172b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
// 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*/
|
||||
$payment_hash = PaymentHash::where('hash', $payment->metadata->hash)->first();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue