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