Hi,
I am trying to add a payment system to my page using blockchain, (
https://blockchain.info/api/api_receive)
But the example they have on github does not work and even after a few tweaks it does not really seem to do the trick.
I am trying it on a local server, and I am reluctant to try it on a live server and/or press any button as there does not really seem to be a 'test' option.
I guess i could test sending from one address to another, but I then have to pay a fee for that.
In any case, am I right in saying that the steps are
1) Call the address "
https://blockchain.info/api/receive?method=create&address=$receiving_address&callback=$callback_url"
That will give me another address to ask my potential customer to send me BTC to.
I then tell them to send me 1BTC to that address and hope they click on it.
2) If they pay, and they pay the right amount, I will, eventually, get a response to my callback address to show that all is good.
I will use some of my custom parameters to handle the transaction.
I response *ok* to indicate that I am happy with the transaction.
3) The BTC will be moved from the temporary address to my actual receiving address.
Is the above ok?
My concerns is how this works, I have an address telling the user to pay and hope they come back and they pay the right amount, but it would be better if there was a javascript equivalent where the user remains on my page or is redirected back to a 'thank-you' page while waiting for processing.
The example they have
https://github.com/blockchain/receive_payment_php_demo does not work, maybe I am missing some settings, but as I said I am reluctant to just click to send payments.
Does anybody know where I can get a library/class to accept payment? I would like it to look professional for my visitors.
Thanks
FFMG