getting the accessToken from NETELLER

//getting the accessToken from NETELLER's response $accessToken = $_POST['accessToken']; $service_url = "https://test.api.neteller.com/v1/transferIn"; $curl = curl_init($service_url); $curl_post_data = array( "paymentMethod" => array( "type" => "neteller", "value" => "netellertest_USD@neteller.com" ), "transaction" => array( "merchantRefId" => "20140203113704", "amount" => 25, "currency" => "USD" ), "verificationCode" => "234124" ); $jsonDataEncoded = json_encode($curl_post_data); curl_setopt($curl, CURLOPT_POSTFIELDS, $jsonDataEncoded); $headers = array( "Content-type: application/json", "Authorization: Bearer " . $accessToken ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); $curl_response = curl_exec($curl); curl_close($curl);
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free