/** * Elimina una suscripción en PAYTPV sobre una tarjeta. * @param string $idpayuser Identificador único del usuario registrado en el sistema. * @param string $tokenpayuser Código token asociado al IDUSER. * @return object Objeto de respuesta de la operación * @version 2.0 2016-06-07 */ public function RemoveSubscription($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_subscription($this->merchantCode, $this->terminal, $idpayuser, $tokenpayuser, $signature, $ip); } catch (SoapFault $e) { return $this->SendResponse(); } return $this->SendResponse($ans); }