aep saepudin Posted June 30, 2019 Share Posted June 30, 2019 I am using addOrder API, but the total still zero, how to use proceoverride properly? Here my code, $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://---/includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( array( "action" => "AddOrder", "identifier" => "---", "secret" => "---", "username" => "---", "password" => "---", "clientid" => 91, "paymentmethod" => "mandiriva", "priceoverride" => array(floatval(1000000)), "serviceid" => 1496, "addonid" => 24, "responsetype" => "json", ) ) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); echo $response ; curl_close($ch); thanks. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.