/** * Elimina un usuario de PAYTPV mediante llamada soap * @param int $idpayuser Id de usuario en PAYTPV * @param string $tokenpayuser Token de usuario en PAYTPV * @return object Objeto de respuesta de la operación * @version 1.0 2016-06-02 */ public function RemoveUser($idpayuser, $tokenpayuser) { $signature = sha1($this->merchantCode . $idpayuser . $tokenpayuser . $this->terminal . $this->password); $ip = $_SERVER['REMOTE_ADDR']; try { $clientSOAP = new SoapClient($this->endpoint); $ans = $clientSOAP->remove_user($this->merchantCode, $this->terminal, $idpayuser, $tokenpayuser, $signature, $ip); } catch (SoapFault $e) { return $this->SendResponse(); } return $this->SendResponse($ans); }