|
Title: GWT Wallet & Billing API Post by: rupy on June 08, 2013, 06:01:04 PM
Title: Re: GWT Wallet & Billing API Post by: rupy on May 05, 2014, 08:16:09 AM Edit: Offline while working on accounts, distributed microtransactions and off-chain 100% uptime.
Instructions on how to use the bbb billing interface: 1) Register an account, bitcoinbankbook.com (http://bitcoinbankbook.com). 2) Add atleast one address by pressing the 'Add' button in the 'Menu'. 3) Browse here: bitcoinbankbook.com/id?mail=your@mail.com, after replacing the mail with the address used to register and copy your id. 4) Now you can redirect your customers to the following URLs: Manual payments: bitcoinbankbook.com/bill?id=<id>&meta=<meta>&price=<price>
If you are logged into the GWT GUI you will see the 'Transactions' dialog refresh in real-time with your <meta> as the transaction comes in! You will also receive an email once the transaction has one confirmation. Automated payments: bitcoinbankbook.com/bill?id=<id>&meta=<meta>&url=<url>&price=<price> <url> is the callback where you want us to inform you about billings; confirmations and errors, "successful" billings will call the <url> twice or more with these appended parameters: <url>?|&tx=<tx>&amount=<amount>&meta=<meta>&auth=<auth>&confirm=0,1...
Code: /* Pseudo code to verify <auth> */ String auth = SHA(SHA("<yourplaintextpass>") + "<id>" + "<meta>" + "<confirm>"); If you reply with a URL on the first callback request (confirm=0) in the response data (any string that starts with "http" will trigger this) we will try to redirect your customer to that URL upon successful billing (meta refresh after 5 seconds) with meta=<meta> appended to the parameters. If you receive the following parameters on your callback <url>, it means we already have that meta string in our database: <url>?|&meta=<meta>&error=meta+not+unique One last thing: if you use this please leave a comment here so I can send you a PM before updates go live. ----- TODO: calculator and timer. pay with bbb account. |