How to create a cryptocurrency payment system in Node.js

How to create a cryptocurrency payment system in Node.js

  • English
  • Cryptocurrency
  • Cryptocurrency BasicsCryptocurrency Basics
  • (1101)
  • Project length: 3h 40m

In this project, we will be looking at creating adding in a cryptocurrency payment system in order to accept payment in bitcoin for an ecommerce type site. This project will be a great example on how to roll your own payments system and what to expect and consider when dealing with Cryptocurrencies. We will be adding to a premade basic ecommerce site all within nodejs and vuejs.

Overview

Introduction

This tutorial will cover all the details (resources, tools, languages etc) that are necessary to build a complete and operational Cryptocurrency payment system You will be guided through all the steps and concepts, starting from the basic ones like setting up the right tools and frameworks to the more advanced topics related to the development. And ultimately you will be able to create your own Cryptocurrency payment system on your own sites with little difficulty.

What are the requirements?

  • Javascript
  • MongoDB
  • Vuejs
  • And the most important is: desire to learn

What is the target audience?

  • You want to learn how to accept cryptocurrency payments
  • You want to understand how to build on top of cryptocurrencies
  • Anyone looking to improve their javascript

Project Outline

Session 1: Setting-up the Environment

  • Setting up the programming environment for linux
  • Choosing our version of node
  • Bitbooks - Our ebook ecommerce site
  • Adding Crypto currencies to our payment selection form

Session 2: Creating an orders endpoint

  • Adding a POST route to get an order
  • Tying it to our frontend

Session 3: The Order model schema

  • Creating the order schema for the database
  • Adding the routes for our API to interact

Session 4: Querying Bitcoin Price data

  • Getting price data from coindesk
  • Returning and applying it to our orders

Session 5: Bip39 & HD Wallets

  • Looking at Bip39
  • Creating a Mnemonic Phrase
  • Adding the XPub so we can generate addresses

Session 6: QR Codes and Bip21

  • Looking at Bip21
  • Creating a QR Code for use with mobile apps

Session 7: Socket.io

  • Adding websocket support to our frontend

Session 8: Coin Daemon

  • Setting up bitcoind and adding our addresses to watch for

Session 9: Wallet and Block Notifications

  • Notifying our api when we recieve a payment
  • Updating the frontend via socket.io

Session 10: Wrapping Up.

  • Updating our database once we've received enough confirmations
  • "Sending the ebook to our customers!"

Reviews

Average rating

5(1101 Reviews)
  • Avatar

    hanzhoumer

    5 months ago

    I was looking for a long time for a quality tutorial about cryptocurrency payment system. This was the best I could find.

  • Avatar

    sergeimali1

    5 months ago

    I think I watched all the videos this project creator made for this platform. Hope he will make more.

  • Avatar

    portoslanthimos

    5 months ago

    Just got the promotion today. Credits to this tutorial. Tnx a lot!