Building Bitcoin websites using the Blockchain API (video tutorial)
4 stars based on
53 reviews
There are a couple of intuitive methods you can easily guess: The second one is the amount that you want to send. Transaction notes will be available only to recipients that also have a Coinbase account. The method you will have to use is requestMoney and this is its syntax.
The mechanism, this time, is a little bit different. Coinbase will use the specified mail address as a first parameter to send a message in which Coinbase itself will explain to our BTC sender what to do and how to do it.
You can also use some methods to cancel or resend the same request, if you have some issues. As a key, you will have to use the previously obtained transaction key.
After the first parameter, the metod name, you can specify an array of options, if you need any. We are done with the basics. Now that we know the tools of the trade, what about trying to make a really simple application to deal with a payment? A really important cause: Install the SDK as demonstrated in Part 1.
After composer update you will be ready to go. On submit, data will be sent to the payment. Here we go to the next step: What we have here? This is what are we going to put in it. The first required is used to load the SDK. Further instructions are used to, respectively:. In a real world situation things would be different and we can use many tools and techniques to create better and safer code.
The final step is the button creation, using the createButton method. However, rembember that this is the parameter you have to use if you need it. It is a necessary step. Now that we have everything, we just have to set up our thanks. We made it to the end of this series. The Coinbase API is pleasing to work with and easy to implement. Francesco is a web developer and consultant from Italy. IT, the first italian web development portal. He also translated some books about Laravel.
In the meantime he follows other projects, works as a freelance backend consultant for PHP applications and studies IT Engineering in Rome.
He loves to learn new things, not only about PHP or development but everything. He hopes to work for IBM, sooner or later.