aep saepudin Posted December 5, 2019 Share Posted December 5, 2019 Hello, myabe someone can help me. I can't use API AddOrder. This is only happen in addOrder API. I am using another API and it work. <?php $postField = array( 'action' => 'AddOrder', 'identifier' => '------', 'secret' => '--------', 'clientid' => 44370, // '3', 'paymentmethod' => 'mandiriva', //'banktransfer', 'domain' => array('dsadsadsad.id'), // array('domain1.com', 'domain2.com'), 'domaintype' => array('register'), // array('register ', 'transfer') 'regperiod' => array(1), 'responsetype' => 'json', ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://-------/includes/api.php"); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( $postField ) ); $response = curl_exec($ch); echo $response; echo '<br/>'; echo curl_errno($ch); echo '<br/>'; echo curl_error($ch); 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.