diff --git a/app/PaymentDrivers/CheckoutComPaymentDriver.php b/app/PaymentDrivers/CheckoutComPaymentDriver.php index b68cfd958720..39d640bf4c88 100644 --- a/app/PaymentDrivers/CheckoutComPaymentDriver.php +++ b/app/PaymentDrivers/CheckoutComPaymentDriver.php @@ -497,7 +497,7 @@ class CheckoutComPaymentDriver extends BaseDriver $request->query('cko-session-id') ); - if ($payment['approved']) { + if (isset($payment['approved']) && $payment['approved']) { return $this->processSuccessfulPayment($payment); } else { return $this->processUnsuccessfulPayment($payment);