PayPal\Service\PayPalAPIInterfaceServiceService::SetCustomerBillingAgreement PHP Method

SetCustomerBillingAgreement() public method

Service Call: SetCustomerBillingAgreement
public SetCustomerBillingAgreement ( SetCustomerBillingAgreementReq $setCustomerBillingAgreementReq, mixed $apiCredential = null ) : SetCustomerBillingAgreementResponseType
$setCustomerBillingAgreementReq PayPal\PayPalAPI\SetCustomerBillingAgreementReq
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
return PayPal\PayPalAPI\SetCustomerBillingAgreementResponseType
    public function SetCustomerBillingAgreement($setCustomerBillingAgreementReq, $apiCredential = null)
    {
        $apiContext = new PPApiContext($this->config);
        $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
        $this->setStandardParams($setCustomerBillingAgreementReq->SetCustomerBillingAgreementRequest);
        $ret = new SetCustomerBillingAgreementResponseType();
        $resp = $this->call('PayPalAPIAA', 'SetCustomerBillingAgreement', $setCustomerBillingAgreementReq, $apiContext, $handlers);
        $ret->init(PPUtils::xmlToArray($resp));
        return $ret;
    }