Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 905 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 905 Bytes

DigiByte payment verification system using NOWNodes

This is an example payment verification system using node.js and NOWNodes for the blockchain interface

You can contact NOWNodes and request a free personal API key to begin with, by visiting https://nownodes.io/pricing and clicking "Order now". You will need this API key to interface with their service.

You can then define how much you expect a user to pay for your service, for example 100 DGB (Or you can extend upon this library and make it dynamic, for example if you were taking payments for varying goods and services), and then once it notices the payment has been made it will validate and permit the user to proceed to the next step in the process.

Configuration

  1. Edit .env.example and put your NOWNodes API key in there, save it as .env
  2. Modify the example.js
  3. Run
    npm update && npm install

  4. Run
    npm start