/** * Service Call: AddPaymentCard * @param AddPaymentCardRequest $addPaymentCardRequest * @return AddPaymentCardResponse * @throws APIException */ public function AddPaymentCard($addPaymentCardRequest, $apiUsername = null) { $ret = new AddPaymentCardResponse(); $resp = $this->call("AddPaymentCard", $addPaymentCardRequest, $apiUsername); $ret->init(PPUtils::nvpToMap($resp)); return $ret; }
/** * Service Call: AddPaymentCard * @param AddPaymentCardRequest $addPaymentCardRequest * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return AddPaymentCardResponse * @throws APIException */ public function AddPaymentCard($addPaymentCardRequest, $apiCredential = NULL) { $ret = new AddPaymentCardResponse(); $apiContext = new PPApiContext($this->config); $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $resp = $this->call('AdaptiveAccounts', 'AddPaymentCard', $addPaymentCardRequest, $apiContext, $handlers); $ret->init(PPUtils::nvpToMap($resp)); return $ret; }