Skip to content

SetuHQ/upi-pos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UPI Deeplinks POS via NFC

POS application for accepting payments using Setu UPI Deeplinks via NFC

Demo

This app only works on mobile as browsers on desktop doesn't support NFC APIs.

This is a node server which uses Web NFC API to read and write to an NFC tag.

Merchants can generate an UPI link with desired amount using this application and write to a NFC tag. Customers can read the link from their NFC enabled mobile phones and make payments.

If you're looking to get NFC tags, you can check out these.

How it works

Step 1 - Attach NFC

Attach NFC tag to any place that you want to accept payments. In the video, NFC tag has been attached to the back of the book.

attach-nfc.mp4

Step 2 - Generate payment link and write to NFC tag

Merchant can generate a payment link with needed amount by visiting the page and write the generated link to the NFC tag.

Place phone near the tag until it is detected and click Write to Tag to write data

write-nfc.mp4

Step 3 - Read NFC tag to make payment

Customer can read the NFC tag by placing phone near the NFC tag to which the payment link has been written and make the payment.

read-nfc.mp4

How to

Setup UPI Deeplink with Setu

Follow this documentation to setup UPI Deeplinks with Setu. At the end of it, you would be able to get sandbox credentials, product_instance_id, client_id and client_secret for your product.

Replace the values in .env file

Running the app

Install dependencies

npm install

Start server

npm run start

Deploy to Heroku

This repo comes with a Procfile which you can use to deploy to Heroku following this guide.

Releases

No releases published

Packages

No packages published