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