src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/AutomaticPaymentsSimpleCheckoutExample.php
public function validateBillingAgreement ()
    {
        $validateBillingAgreementRequest = new OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest();
        $validateBillingAgreementRequest->setAmazonBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $validateBillingAgreementRequest->setSellerId($this->_sellerId);
        
        return $this->_service->validateBillingAgreement($validateBillingAgreementRequest);
    }
public function validateBillingAgreement ()
    {
        $validateBillingAgreementRequest = new OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest();
        $validateBillingAgreementRequest->setAmazonBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $validateBillingAgreementRequest->setSellerId($this->_sellerId);
        
        return $this->_service->validateBillingAgreement($validateBillingAgreementRequest);
    }
public function validateBillingAgreement ( ) { $ validateBillingAgreementRequest = new OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest ( ) ; $ validateBillingAgreementRequest -> setAmazonBillingAgreementId ( $ this -> _amazonBillingAgreementId ) ; $ validateBillingAgreementRequest -> setSellerId ( $ this -> _sellerId ) ; return $ this -> _service -> validateBillingAgreement ( $ validateBillingAgreementRequest ) ; }
Check that the billing agreement is in valid status and the selected payment
method is also valid.

@return OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse
service response
Check that the billing agreement is in valid status and the selected payment method is also valid .