public function GetCredit() { // Check credit for the gateway if (!$this->username && !$this->password) { return; } $client = new SoapClient($this->wsdl_link); $args = array('PortalCode' => $this->has_key, 'UserName' => $this->username, 'PassWord' => $this->password); $result = $client->GetSystemCredit($args); return $result->GetSystemCreditResult; }