models/oxpspaymorrowoxpayment.php
public function isValidPayment($aDynValue, $sShopId, $oUser, $dBasketPrice, $sShipSetId)
    {
        /** @var OxpsPaymorrowOxPayment|oxPayment $this */

        $blIsValid = (bool) $this->_OxpsPaymorrowOxPayment_isValidPayment_parent(
            $aDynValue, $sShopId, $oUser, $dBasketPrice, $sShipSetId
        );

        $iErrorCode = (int) $this->getPaymentErrorNumber();

        // In case it is Paymorrow payment method unset error code and tell than validation passed.
        if ($this->isPaymorrowActive() and !$blIsValid and ($iErrorCode === 1)) {
            $this->_iPaymentError = null;

            return true;
        }

        return $blIsValid;
    }
public function isValidPayment($aDynValue, $sShopId, $oUser, $dBasketPrice, $sShipSetId)
    {
        /** @var OxpsPaymorrowOxPayment|oxPayment $this */

        $blIsValid = (bool) $this->_OxpsPaymorrowOxPayment_isValidPayment_parent(
            $aDynValue, $sShopId, $oUser, $dBasketPrice, $sShipSetId
        );

        $iErrorCode = (int) $this->getPaymentErrorNumber();

        // In case it is Paymorrow payment method unset error code and tell than validation passed.
        if ($this->isPaymorrowActive() and !$blIsValid and ($iErrorCode === 1)) {
            $this->_iPaymentError = null;

            return true;
        }

        return $blIsValid;
    }
public function isValidPayment ( $ aDynValue , $ sShopId , $ oUser , $ dBasketPrice , $ sShipSetId ) { /** @var OxpsPaymorrowOxPayment|oxPayment $this */ $ blIsValid = ( bool ) $ this -> _OxpsPaymorrowOxPayment_isValidPayment_parent ( $ aDynValue , $ sShopId , $ oUser , $ dBasketPrice , $ sShipSetId ) ; $ iErrorCode = ( int ) $ this -> getPaymentErrorNumber ( ) ; // In case it is Paymorrow payment method unset error code and tell than validation passed. if ( $ this -> isPaymorrowActive ( ) and ! $ blIsValid and ( $ iErrorCode === 1 ) ) { $ this -> _iPaymentError = null ; return true ; } return $ blIsValid ; }
Overridden parent method.
Ignores default payment method form error in case method is converted to a Paymorrow payment method.

@param $aDynValue
@param $sShopId
@param $oUser
@param $dBasketPrice
@param $sShipSetId

@return bool
Overridden parent method . Ignores default payment method form error in case method is converted to a Paymorrow payment method .