src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/AutomaticPaymentsSimpleCheckoutExample.php
public function closeBillingAgreement ()
    {
        $closeBillingAgreementRequest = new OffAmazonPaymentsService_Model_CloseBillingAgreementRequest();
        $closeBillingAgreementRequest->setSellerId($this->_sellerId);
        $closeBillingAgreementRequest->setAmazonBillingAgreementId($this->_amazonBillingAgreementId);
        $closeBillingAgreementRequest->setClosureReason("Automatic payment complete");
        
        return $this->_service->closeBillingAgreement($closeBillingAgreementRequest);
    }
public function closeBillingAgreement ()
    {
        $closeBillingAgreementRequest = new OffAmazonPaymentsService_Model_CloseBillingAgreementRequest();
        $closeBillingAgreementRequest->setSellerId($this->_sellerId);
        $closeBillingAgreementRequest->setAmazonBillingAgreementId($this->_amazonBillingAgreementId);
        $closeBillingAgreementRequest->setClosureReason("Automatic payment complete");
        
        return $this->_service->closeBillingAgreement($closeBillingAgreementRequest);
    }
public function closeBillingAgreement ( ) { $ closeBillingAgreementRequest = new OffAmazonPaymentsService_Model_CloseBillingAgreementRequest ( ) ; $ closeBillingAgreementRequest -> setSellerId ( $ this -> _sellerId ) ; $ closeBillingAgreementRequest -> setAmazonBillingAgreementId ( $ this -> _amazonBillingAgreementId ) ; $ closeBillingAgreementRequest -> setClosureReason ( "Automatic payment complete" ) ; return $ this -> _service -> closeBillingAgreement ( $ closeBillingAgreementRequest ) ; }
Close this billing agreement to indicate that the billing agreement is
complete, and
no further authorizations and captures will be performed on this billing
agreement.

@return OffAmazonPaymentsService_Model_CloseBillingAgreementResponse
service response
Close this billing agreement to indicate that the billing agreement is complete and no further authorizations and captures will be performed on this billing agreement .