Hello,
Welcome to Bitcointalk! This post would be better suited for the Service Discussion board (
https://bitcointalk.org/index.php?board=85.0), a mod will likely move it for you.
As for blockchain.info's API it is very easy to send a payment using their Wallet API.
Here's a snippet of code that I wrote, feel free to use it.
I included some error catching as well based on the JSON response you get from the API request to BC.info
if(isset($_POST['paymentBtn'])){
if(!isset($_POST['userInput']) || trim($_POST['userInput']) ==''){
echo "You must include your bitcoin address";
} else {
$address = $_POST['userInput'];
$address = mysqli_real_escape_string($con, $address); //YOU DONT HAVE TO DO THIS BUT I ALSO PUT THIS INFO INTO A DB
$amount = $balance; //THIS IS THE AMOUNT YOU WANT TO SEND IM JUST USING A VARIABLE
$ID = "a1a1a1-1a1a1-a11a11a1a1-a1a1"; //YOUR BLOCKCHAIN.INFO USER ID
$PW = "abcdefghijk"; //YOUR BLOCKCHAIN.INFO PASSWORD
$sendPayment = json_decode(file_get_contents("https://blockchain.info/merchant/$ID/payment?password=$PW&to=$address&amount=$amount"), true);
if(isset($sendPayment["error"])){
echo "Error: ".$sendPayment["error"];
} else if(isset($sendPayment["tx_hash"])){
echo "tx: ".$sendPayment["tx_hash"]."<br>".$sendPayment["message"];
} else {
echo "Sorry, Blockchain.info appears to be down. Please try again later.";
}
}
}
I've created some video tutorials on youtube on how to do this that might help. Blockchain.info has given them their blessings through their blog and twitter.
https://twitter.com/blockchain/status/636197788158676992http://blog.blockchain.com/2015/07/30/building-bitcoin-websites-using-the-blockchain-api-video-tutorial/https://www.youtube.com/watch?v=dQbah3IYMOs