Bitcoin Forum
November 08, 2024, 03:53:19 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info Wallet API  (Read 501 times)
gigamike (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
March 14, 2014, 09:25:33 AM
 #1

Guys,

I hope you can help me. Im working on a project and im using https://blockchain.info/api/blockchain_wallet_api. I know that the logic is that you create an address for every customer wherein they can send there payment. My question is how i can identify if the user paid on the created address?

I know the API has a callback but how can identify on what invoice reference it is. Can the blockchain API can send a custom variable for callback? I can see in there documentation Http Callbacks {Custom Parameters} but when you can pass it?

Thanks in advance,

Mike
mintodev
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
March 14, 2014, 10:57:55 AM
 #2

Did you read this?

$label An optional label to attach to this address. It is recommended this is a human readable string e.g. "Order No : 1234". You May use this as a reference to check balance of an order (documented later)

Under the Section of Generating New Address.

Does it Help you? I think you can identify using that method.
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
March 14, 2014, 03:18:40 PM
 #3

Guys,

I hope you can help me. Im working on a project and im using https://blockchain.info/api/blockchain_wallet_api. I know that the logic is that you create an address for every customer wherein they can send there payment. My question is how i can identify if the user paid on the created address?

I know the API has a callback but how can identify on what invoice reference it is. Can the blockchain API can send a custom variable for callback? I can see in there documentation Http Callbacks {Custom Parameters} but when you can pass it?

Thanks in advance,

Mike

You can store the address in your database and associate it with an order that way.
gigamike (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
March 15, 2014, 02:13:39 AM
 #4

Guys,

many thanks for the help, i figure it out. What i did was i have a cron that checks the balance provided by Listing Addresses API by blockchain. Then from there i check each address balance.

Thanks.

Mike
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!