Im trying to send a payment via the blockchain API v2 using PHP & Curl. Ths blockchain-wallet-service I am using is : 0.26.0 v node.js : 8.9.0 v
I am unable to send payments via the API, please help I have looked up many websites for answers.
Following is my PHP code:
$my_api_key = 'xxxxx';
$guid='xxxxx';
$firstpassword='xxxx';
$second_password = "xxxx";
$amount = '30000';
$to = '1AQDhKrjvAonjLAUv4PzM9NjGzZZ4HEpU1';
$fee = '2000';
$root_url = 'http://localhost:3000/merchant/'.$guid.'/payment';
$parameters = 'to='.$to.'&amount='.$amount.'&password='.$firstpassword.'&fee='.$fee.'&second_password='.$second_password;
$response = Curl::to($root_url . '?' . $parameters)->get();
return $response;
I am getting the following error: [object object] the response gives me : {"error":"Unexpected error, please try again"}
Please help.