__setup($setup); $this->__createClient($this->__setup->getPxSubscriptionWSDL()); } function Stop($userType, $userRef, $subscriptionNumber) { $hash = $this->__generateHash($this->__accountNumber, $userType, $userRef, $subscriptionNumber); $params = array( 'accountNumber' => $this->__accountNumber, 'userType' => (int) $userType, 'userRef' => (string) $userRef, 'subscriptionNumber' => (string) $subscriptionNumber, 'hash' => $hash ); $return_data = $this->client->Stop($params); return $this->__processResponse($return_data); } function Check($userType, $userRef, $subscriptionNumber) { $hash = $this->__generateHash($this->__accountNumber, $userType, $userRef, $subscriptionNumber); $params = array( 'accountNumber' => $this->__accountNumber, 'userType' => (int) $userType, 'userRef' => (string) $userRef, 'subscriptionNumber' => (string) $subscriptionNumber, 'hash' => $hash ); $return_data = $this->client->Check($params); return $this->__processResponse($return_data); } function getStopDate() { return $this->stopDate; } function getSubscriptionStatus() { return $this->subscriptionStatus; } function setStopDate($stopDate) { $this->stopDate = $stopDate; } function setSubscriptionStatus($subscriptionStatus) { $this->subscriptionStatus = (int) $subscriptionStatus; } } ?>