public function getPayload()
    {
        $payload = $this->getService('com:subscriptions.domain.payment.payload', array(

           'order_id' => $this->orderId,
           'description' => $this->_package->name,
           'amount' => $this->getItemAmountAfterDiscount(),
           'tax_amount' => $this->getTaxAmount(),
           'payment_method' => $this->getPaymentMethod(),
           'currency' => $this->currency,

        ));

        if ($this->_package->recurring) {
            $payload->setRecurring(1, $this->_package->billingPeriod, AnDomainAttributeDate::getInstance()->getDate(DATE_FORMAT_ISO_EXTENDED));
        }

        return $payload;
    }
public function getPayload()
    {
        $payload = $this->getService('com:subscriptions.domain.payment.payload', array(

           'order_id' => $this->orderId,
           'description' => $this->_package->name,
           'amount' => $this->getItemAmountAfterDiscount(),
           'tax_amount' => $this->getTaxAmount(),
           'payment_method' => $this->getPaymentMethod(),
           'currency' => $this->currency,

        ));

        if ($this->_package->recurring) {
            $payload->setRecurring(1, $this->_package->billingPeriod, AnDomainAttributeDate::getInstance()->getDate(DATE_FORMAT_ISO_EXTENDED));
        }

        return $payload;
    }
public function getPayload ( ) { $ payload = $ this -> getService ( 'com:subscriptions.domain.payment.payload' , array ( 'order_id' => $ this -> orderId , 'description' => $ this -> _package -> name , 'amount' => $ this -> getItemAmountAfterDiscount ( ) , 'tax_amount' => $ this -> getTaxAmount ( ) , 'payment_method' => $ this -> getPaymentMethod ( ) , 'currency' => $ this -> currency , ) ) ; if ( $ this -> _package -> recurring ) { $ payload -> setRecurring ( 1 , $ this -> _package -> billingPeriod , AnDomainAttributeDate :: getInstance ( ) -> getDate ( DATE_FORMAT_ISO_EXTENDED ) ) ; } return $ payload ; }
Return a payload object for this order.

@return ComSubscriptionsDomainPaymentPayload
Return a payload object for this order .