/** * Añade un usuario por BankStore JET mediante web service * @param int $jettoken Token temporal del usuario en PAYTPV * @return object Objeto de respuesta de la operación * @version 1.0 2016-06-02 */ public function AddUserToken($jettoken) { $signature = sha1($this->merchantCode . $jettoken . $this->jetid . $this->terminal . $this->password); $ip = $_SERVER['REMOTE_ADDR']; try { $clientSOAP = new SoapClient($this->endpoint); $ans = $clientSOAP->add_user_token($this->merchantCode, $this->terminal, $jettoken, $this->jetid, $signature, $ip); } catch (SoapFault $e) { return $this->SendResponse(); } return $this->SendResponse($ans); }