I have installed the API properly and have cross verified it. I can do the basic functions like generating addresses and interacting with wallet. Now I am using the following code to send a payment:
$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;
But it does not work. I get the following error:
error : - error: [object object] the response gives me : {"error":"Unexpected error, please try again"}
I don’t understand what the problem is. How do I solve this?