Author

Topic: blockchain wallet api -how to can i get parameter of callback (Read 1972 times)

newbie
Activity: 3
Merit: 0
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?
member
Activity: 70
Merit: 10
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...
hero member
Activity: 910
Merit: 1005
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.
member
Activity: 70
Merit: 10
/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...
hero member
Activity: 910
Merit: 1005
/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
member
Activity: 70
Merit: 10
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...
Jump to: