Bitcoin Forum
May 21, 2024, 10:52:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blockchain wallet api -how to can i get parameter of callback  (Read 1953 times)
goldman (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile WWW
September 29, 2013, 09:39:56 AM
 #1

here is wallet api of blockchain
https://blockchain.info/api/blockchain_wallet_api

i want to generate a address that user can send payment and pass some parameters to callback ..how can i Combine with those two

(1)first i generate a address that user can send payment.

https://blockchain.info/merchant/$guid/new_address?password=$main_password&second_password=$second_password&label=$label

(2)second i set callback on notifcation section of account settings.
like this http://www.XXX.com/callback.php

(3)this two step i have done and combine like this ,but can not get parameters of callback...
https://blockchain.info/merchant/$guid/new_addresspassword=$main_password&second_password=$second_password&label=$label&label=Order No : 1234&callback=http://www.XXX.com/callback.php?who=2833

anyone here give me some advice...how can i get callback parameters...

piuk
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
September 29, 2013, 12:31:29 PM
 #2

/merchant/new_address doesn't accept a callback parameter, the callback set in account settings is global for all addresses and cannot be changed for individual addresses. Instead you could do either of the following:

1) When you create an address store in your database the user that it was created for. When a callback is received use the address to query the user that made the payment.

2) Use the receive payments API which can have a custom callback set for each address.

instead of using /merchant/new_address, use:

https://blockchain.info/api/receive?method=create&address=$your_address&callback=http://www.XXX.com/callback.php?who=2833

goldman (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile WWW
September 29, 2013, 03:33:45 PM
 #3

/merchant/new_address doesn't accept a callback parameter, the callback set in account settings is global for all addresses and cannot be changed for individual addresses. Instead you could do either of the following:

1) When you create an address store in your database the user that it was created for. When a callback is received use the address to query the user that made the payment.

2) Use the receive payments API which can have a custom callback set for each address.

instead of using /merchant/new_address, use:

https://blockchain.info/api/receive?method=create&address=$your_address&callback=http://www.XXX.com/callback.php?who=2833


i dont know why api_receive is not work for me,i test this  and  send 0.001 for serval times to the address blockchain generate... but payment not send back to my account ...all gone and never back...i dont know why...

piuk
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
September 29, 2013, 03:44:43 PM
 #4

i dont know why api_receive is not work for me,i test this  and  send 0.001 for serval times to the address blockchain generate... but payment not send back to my account ...all gone and never back...i dont know why...

Could you PM me or post one of the addresses.

goldman (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile WWW
September 29, 2013, 03:59:15 PM
 #5

i dont know why api_receive is not work for me,i test this  and  send 0.001 for serval times to the address blockchain generate... but payment not send back to my account ...all gone and never back...i dont know why...

Could you PM me or post one of the addresses.

problem just solved,i send some payment is too small,as the document said min is 0.001,other wise it will not execute it...
thank u for your kindly help...

thorta
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 18, 2013, 05:44:06 PM
 #6

Hello,

Have an account in which Blockchain created several portfolio that account.
You can implement a callback to inform me so some of these portfolios receive any payment?
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!