src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/AutomaticPaymentsSimpleCheckoutExampleCLI.php
private function _authorizePaymentAmount ($authorizationAmount, $authorizationReferenceId)
    {
        $response = $this->callStepAndCheckForException('authorizePaymentAmount', 
                array(
                    $authorizationAmount,
                    $authorizationReferenceId
                ));
        printAuthorizeOnBillingAgreementResponse($response);
        return $response->getAuthorizeOnBillingAgreementResult()
            ->getAuthorizationDetails()
            ->getAmazonAuthorizationId();
    }
private function _authorizePaymentAmount ($authorizationAmount, $authorizationReferenceId)
    {
        $response = $this->callStepAndCheckForException('authorizePaymentAmount', 
                array(
                    $authorizationAmount,
                    $authorizationReferenceId
                ));
        printAuthorizeOnBillingAgreementResponse($response);
        return $response->getAuthorizeOnBillingAgreementResult()
            ->getAuthorizationDetails()
            ->getAmazonAuthorizationId();
    }
private function _authorizePaymentAmount ( $ authorizationAmount , $ authorizationReferenceId ) { $ response = $ this -> callStepAndCheckForException ( 'authorizePaymentAmount' , array ( $ authorizationAmount , $ authorizationReferenceId ) ) ; printAuthorizeOnBillingAgreementResponse ( $ response ) ; return $ response -> getAuthorizeOnBillingAgreementResult ( ) -> getAuthorizationDetails ( ) -> getAmazonAuthorizationId ( ) ; }
Perform the authorize call for the billing agreement

@param float $authorizationAmount
amount to authorize from the buyer

@return string amazonAuthorizationId amazon generated authorization id
reference
Perform the authorize call for the billing agreement