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