mysql_query("UPDATE `cashout` SET `pending`='5' WHERE `i`='{$cashout->i}'"); if ($usernamehere1->bought != '99') { mysql_query("UPDATE `instant_okpay` SET `paid_num`=`paid_num`+'1' WHERE `id`='1'"); mysql_query("UPDATE `instant_okpay` SET `paid`=`paid`+'{$cashout->cash}' WHERE `id`='1'"); mysql_query("UPDATE `instant_okpay` SET `wallet`=`wallet`-'{$cashout->cash}' WHERE `id`='1'"); ini_set("display_errors", 1); try { $secWord = "p3NDs7j5M8JgHz9x6R4Wtf2T9"; $WalletID = "OK232416930"; $datePart = gmdate("Ymd"); $timePart = gmdate("H"); $authString = $secWord . ":" . $datePart . ":" . $timePart; $sha256 = bin2hex(mhash(MHASH_SHA256, $authString)); $secToken = strtoupper($sha256); $client = new SoapClient("https://api.okpay.com/OkPayAPI?wsdl"); $webService = $client->Get_Date_Time(); $wsResult = $webService->Get_Date_TimeResult; $obj = new stdClass(); $e = new stdClass(); $obj->WalletID = $WalletID; $obj->SecurityToken = $secToken; $obj->Currency = "USD"; $webService1 = $client->Wallet_Get_Currency_Balance($obj); $wsResult1 = $webService1->Wallet_Get_Currency_BalanceResult; //print_r($wsResult1); $obj->WalletID = $WalletID; $obj->SecurityToken = $secToken; $webService1 = $client->Wallet_Get_Balance($obj); $wsResult1 = $webService1->Wallet_Get_BalanceResult; //print_r($wsResult1); $obj->WalletID = $WalletID;