src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/AutomaticPaymentsSimpleCheckoutExample.php
private function _createAuthorizeOnBillingAgreementRequest ($authorizationAmount, 
            $authorizationReferenceId, $CaptureNow)
    {
        $authorizeOnBillingAgreementRequest = new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest();
        $authorizeOnBillingAgreementRequest->setAmazonBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $authorizeOnBillingAgreementRequest->setSellerId($this->_sellerId);
        $authorizeOnBillingAgreementRequest->setAuthorizationReferenceId($authorizationReferenceId);
        $authorizeOnBillingAgreementRequest->setAuthorizationAmount(
                new OffAmazonPaymentsService_Model_Price());
        $authorizeOnBillingAgreementRequest->getAuthorizationAmount()->setAmount(
                $authorizationAmount);
        $authorizeOnBillingAgreementRequest->getAuthorizationAmount()->setCurrencyCode(
                $this->_service->getMerchantValues()
                    ->getCurrency());
        $authorizeOnBillingAgreementRequest->setCaptureNow($CaptureNow);
        return $authorizeOnBillingAgreementRequest;
    }
private function _createAuthorizeOnBillingAgreementRequest ($authorizationAmount, 
            $authorizationReferenceId, $CaptureNow)
    {
        $authorizeOnBillingAgreementRequest = new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest();
        $authorizeOnBillingAgreementRequest->setAmazonBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $authorizeOnBillingAgreementRequest->setSellerId($this->_sellerId);
        $authorizeOnBillingAgreementRequest->setAuthorizationReferenceId($authorizationReferenceId);
        $authorizeOnBillingAgreementRequest->setAuthorizationAmount(
                new OffAmazonPaymentsService_Model_Price());
        $authorizeOnBillingAgreementRequest->getAuthorizationAmount()->setAmount(
                $authorizationAmount);
        $authorizeOnBillingAgreementRequest->getAuthorizationAmount()->setCurrencyCode(
                $this->_service->getMerchantValues()
                    ->getCurrency());
        $authorizeOnBillingAgreementRequest->setCaptureNow($CaptureNow);
        return $authorizeOnBillingAgreementRequest;
    }
private function _createAuthorizeOnBillingAgreementRequest ( $ authorizationAmount , $ authorizationReferenceId , $ CaptureNow ) { $ authorizeOnBillingAgreementRequest = new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest ( ) ; $ authorizeOnBillingAgreementRequest -> setAmazonBillingAgreementId ( $ this -> _amazonBillingAgreementId ) ; $ authorizeOnBillingAgreementRequest -> setSellerId ( $ this -> _sellerId ) ; $ authorizeOnBillingAgreementRequest -> setAuthorizationReferenceId ( $ authorizationReferenceId ) ; $ authorizeOnBillingAgreementRequest -> setAuthorizationAmount ( new OffAmazonPaymentsService_Model_Price ( ) ) ; $ authorizeOnBillingAgreementRequest -> getAuthorizationAmount ( ) -> setAmount ( $ authorizationAmount ) ; $ authorizeOnBillingAgreementRequest -> getAuthorizationAmount ( ) -> setCurrencyCode ( $ this -> _service -> getMerchantValues ( ) -> getCurrency ( ) ) ; $ authorizeOnBillingAgreementRequest -> setCaptureNow ( $ CaptureNow ) ; return $ authorizeOnBillingAgreementRequest ; }
Create AuthorizeOnBillingAgreement request

@param float $authorizationAmount
@param string $authorizationReferenceId
@param bool $CaptureNow

@return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest
Create AuthorizeOnBillingAgreement request