i'm using instawallet.org's api using php, and all the other stuff works. creating wallets, getting address from wallet id, and checking wallet balance... but sending payment has not gone too well. here's the script i use to send payments using the api:
$wallet = $tmpLabelData['labelID'];
$address = $_POST['addr'];
$ammount = "0.01";
$url = "
https://www.instawallet.org/api/v1/w/$wallet/payment";
$postdata=array('address'=>$address,'amount'=>$amount);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.23 (Windows NT 5.1; U; en)');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
$result = curl_exec($ch);
exec('echo "'.$result.'" > send_btc');
and here's the log for the error that occurs
{"successful":false,"message":"Sorry, this does not look like a valid Bitcoin address.","message_code":4}
help preez