Previewing your application

It's time to try out what we have built. First, we need to start the merchant server by running npm start from the project root (bitcoin_payment/). Then, open your browser to visit the URL, http://<Machine_IP>:3000/checkout.

If all went well, the server will serve you a store page with a single item and a Pay with BTC button, as shown in the following screenshot:

While I am testing on the same Linux machine, I have changed the domain name for localhost to bip70.com by editing the /etc/hosts file and adding 127.0.0.1 bip70.com.

Once the client chooses to pay with bitcoin, they will be redirected to a new view with ...

Get Blockchain By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.