src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/AutomaticPaymentsSimpleCheckoutExample.php
public function addSellerInformationToBillingAgreement ()
    {
        $sellerBillingAgreementAttributes = new OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes();
        $sellerBillingAgreementAttributes->setSellerBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $sellerBillingAgreementAttributes->setStoreName("Your store name here");
        $sellerBillingAgreementAttributes->setCustomInformation(
                "Additional information you wish to include with this billing agreement.");
        
        $billingAgreementAttributes = new OffAmazonPaymentsService_Model_BillingAgreementAttributes();
        $billingAgreementAttributes->setSellerNote(
                "Description of the billing agreement that is displayed to the buyer in the emails.");
        $billingAgreementAttributes->setSellerBillingAgreementAttributes(
                $sellerBillingAgreementAttributes);
        
        $setBillingAgreementDetailsRequest = new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest();
        $setBillingAgreementDetailsRequest->setAmazonBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $setBillingAgreementDetailsRequest->setSellerId($this->_sellerId);
        $setBillingAgreementDetailsRequest->setBillingAgreementAttributes(
                $billingAgreementAttributes);
        return $this->_service->setBillingAgreementDetails($setBillingAgreementDetailsRequest);
    }
public function addSellerInformationToBillingAgreement ()
    {
        $sellerBillingAgreementAttributes = new OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes();
        $sellerBillingAgreementAttributes->setSellerBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $sellerBillingAgreementAttributes->setStoreName("Your store name here");
        $sellerBillingAgreementAttributes->setCustomInformation(
                "Additional information you wish to include with this billing agreement.");
        
        $billingAgreementAttributes = new OffAmazonPaymentsService_Model_BillingAgreementAttributes();
        $billingAgreementAttributes->setSellerNote(
                "Description of the billing agreement that is displayed to the buyer in the emails.");
        $billingAgreementAttributes->setSellerBillingAgreementAttributes(
                $sellerBillingAgreementAttributes);
        
        $setBillingAgreementDetailsRequest = new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest();
        $setBillingAgreementDetailsRequest->setAmazonBillingAgreementId(
                $this->_amazonBillingAgreementId);
        $setBillingAgreementDetailsRequest->setSellerId($this->_sellerId);
        $setBillingAgreementDetailsRequest->setBillingAgreementAttributes(
                $billingAgreementAttributes);
        return $this->_service->setBillingAgreementDetails($setBillingAgreementDetailsRequest);
    }
public function addSellerInformationToBillingAgreement ( ) { $ sellerBillingAgreementAttributes = new OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes ( ) ; $ sellerBillingAgreementAttributes -> setSellerBillingAgreementId ( $ this -> _amazonBillingAgreementId ) ; $ sellerBillingAgreementAttributes -> setStoreName ( "Your store name here" ) ; $ sellerBillingAgreementAttributes -> setCustomInformation ( "Additional information you wish to include with this billing agreement." ) ; $ billingAgreementAttributes = new OffAmazonPaymentsService_Model_BillingAgreementAttributes ( ) ; $ billingAgreementAttributes -> setSellerNote ( "Description of the billing agreement that is displayed to the buyer in the emails." ) ; $ billingAgreementAttributes -> setSellerBillingAgreementAttributes ( $ sellerBillingAgreementAttributes ) ; $ setBillingAgreementDetailsRequest = new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest ( ) ; $ setBillingAgreementDetailsRequest -> setAmazonBillingAgreementId ( $ this -> _amazonBillingAgreementId ) ; $ setBillingAgreementDetailsRequest -> setSellerId ( $ this -> _sellerId ) ; $ setBillingAgreementDetailsRequest -> setBillingAgreementAttributes ( $ billingAgreementAttributes ) ; return $ this -> _service -> setBillingAgreementDetails ( $ setBillingAgreementDetailsRequest ) ; }
Set seller specific information to the billing agreement details.

@return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse
service response
Set seller specific information to the billing agreement details .