November 2018
Intermediate to advanced
528 pages
13h 21m
English
Now that our wallet is loaded and synced with the network, we can read the BIP 70 URI provided by the merchant in order to make the payment. You can write a few lines of code to directly parse the bitcoin payment URL and register your app as the bitcoin URI (:bitcoin) handler. But to keep it simple, we will manually copy the payment link provided by Node.js earlier and assign it to a local variable (I've omitted irrelevant parameters):
String url ="bitcoin:mhc5YipxN6GhRRXtgakRBjrNUCbz6ypg66?r=http://bip70.com:3000/request?amount=888888";
The important part in the URL is the r parameter, which represents the merchant server, so edit it to set your server's IP or domain name.
Prior to requesting payment details from merchant's ...
Read now
Unlock full access