Bitcoin Forum
June 23, 2024, 08:51:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help with blockchain api_receive pls  (Read 507 times)
FFMG (OP)
Member
**
Offline Offline

Activity: 82
Merit: 10


View Profile
February 06, 2014, 04:45:24 AM
 #1

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

BTC : 1EQG1ZdThvkauvm2HBBWMvXTBBJQB5hfjG
bterproblems
Member
**
Offline Offline

Activity: 99
Merit: 10


View Profile
February 22, 2015, 08:57:47 PM
 #2

Hi,

I have the same problems! Did you find a solution?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!