ext/bestitamazonpay4oxid_oxorder.php
public function validateDeliveryAddress($oUser)
    {
        $oBasket = $this->_getContainer()->getSession()->getBasket();

        if ($oBasket && (string)$oBasket->getPaymentId() === 'bestitamazon') {
            return 0;
        } else {
            return parent::validateDeliveryAddress($oUser);
        }
    }
public function validateDeliveryAddress($oUser)
    {
        $oBasket = $this->_getContainer()->getSession()->getBasket();

        if ($oBasket && (string)$oBasket->getPaymentId() === 'bestitamazon') {
            return 0;
        } else {
            return parent::validateDeliveryAddress($oUser);
        }
    }
public function validateDeliveryAddress ( $ oUser ) { $ oBasket = $ this -> _getContainer ( ) -> getSession ( ) -> getBasket ( ) ; if ( $ oBasket && ( string ) $ oBasket -> getPaymentId ( ) === 'bestitamazon' ) { return 0 ; } else { return parent :: validateDeliveryAddress ( $ oUser ) ; } }
Skips delivery address validation when payment==bestitamazon

@param oxUser $oUser user object

@return int
@throws oxSystemComponentException
Skips delivery address validation when payment == bestitamazon