public function onPaymentNotify(PaymentEvent $event)
    {
        $payment = $event->getPayment();
        if (!$payment instanceof OrderPayment) {
            return;
        }

        $order = $payment->getOrder();

        if ($order->getLocked()) {
            $order->setLocked(false);
            $this->updateOrder($order, $event);
        }
    }
public function onPaymentNotify(PaymentEvent $event)
    {
        $payment = $event->getPayment();
        if (!$payment instanceof OrderPayment) {
            return;
        }

        $order = $payment->getOrder();

        if ($order->getLocked()) {
            $order->setLocked(false);
            $this->updateOrder($order, $event);
        }
    }
public function onPaymentNotify ( PaymentEvent $ event ) { $ payment = $ event -> getPayment ( ) ; if ( ! $ payment instanceof OrderPayment ) { return ; } $ order = $ payment -> getOrder ( ) ; if ( $ order -> getLocked ( ) ) { $ order -> setLocked ( false ) ; $ this -> updateOrder ( $ order , $ event ) ; } }
Payment notify event handler.

@param PaymentEvent $event
Payment notify event handler .