private function shipping()
    {
        if ($this->_order->getIsVirtual()) {
            $this->_paymentRequest->setShipping()->setAddressRequired()->withParameters('false');
        } else {
            $this->_paymentRequest->setShipping()->setAddressRequired()->withParameters('true');
            $this->setShippingInformation();
        }
    }
private function shipping()
    {
        if ($this->_order->getIsVirtual()) {
            $this->_paymentRequest->setShipping()->setAddressRequired()->withParameters('false');
        } else {
            $this->_paymentRequest->setShipping()->setAddressRequired()->withParameters('true');
            $this->setShippingInformation();
        }
    }
private function shipping ( ) { if ( $ this -> _order -> getIsVirtual ( ) ) { $ this -> _paymentRequest -> setShipping ( ) -> setAddressRequired ( ) -> withParameters ( 'false' ) ; } else { $ this -> _paymentRequest -> setShipping ( ) -> setAddressRequired ( ) -> withParameters ( 'true' ) ; $ this -> setShippingInformation ( ) ; } }
Set shipping for payment
Set shipping for payment