Loading src/Plugin/Commerce/PaymentGateway/Mollie.php +2 −2 Original line number Diff line number Diff line Loading @@ -171,8 +171,8 @@ class Mollie extends OffsitePaymentGatewayBase implements HasPaymentInstructions /** @var \Drupal\commerce_payment\Entity\Payment $payment */ $payment = $payment_storage->loadByRemoteId($mollie_payment_remote_id); // The payment must be in the 'authorization' state. if ($payment->getState()->value !== 'authorization') { // Only proceed if payment exist and is in the 'authorization' state. if ($payment === NULL || $payment->getState()->value !== 'authorization') { return new JsonResponse(); } Loading Loading
src/Plugin/Commerce/PaymentGateway/Mollie.php +2 −2 Original line number Diff line number Diff line Loading @@ -171,8 +171,8 @@ class Mollie extends OffsitePaymentGatewayBase implements HasPaymentInstructions /** @var \Drupal\commerce_payment\Entity\Payment $payment */ $payment = $payment_storage->loadByRemoteId($mollie_payment_remote_id); // The payment must be in the 'authorization' state. if ($payment->getState()->value !== 'authorization') { // Only proceed if payment exist and is in the 'authorization' state. if ($payment === NULL || $payment->getState()->value !== 'authorization') { return new JsonResponse(); } Loading