Helper/Order.php
private function checkPaymentMethod($payment)
    {
        $paymentMethod = $payment->getMethod();

        if ($paymentMethod != Payment::METHOD_CODE) {
            throw new LocalizedException(__(
                'Payment method assigned to order is: %1',
                $paymentMethod
            ));
        }
    }
private function checkPaymentMethod($payment)
    {
        $paymentMethod = $payment->getMethod();

        if ($paymentMethod != Payment::METHOD_CODE) {
            throw new LocalizedException(__(
                'Payment method assigned to order is: %1',
                $paymentMethod
            ));
        }
    }
private function checkPaymentMethod ( $ payment ) { $ paymentMethod = $ payment -> getMethod ( ) ; if ( $ paymentMethod != Payment :: METHOD_CODE ) { throw new LocalizedException ( __ ( 'Payment method assigned to order is: %1' , $ paymentMethod ) ) ; } }
Check if order payment method was set to 'boltpay'

@param OrderPaymentInterface $payment
@throws LocalizedException
Check if order payment method was set to boltpay