POS application for accepting payments using Setu UPI Deeplinks via NFC
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.
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
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
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
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
npm install
npm run start
This repo comes with a Procfile
which you can use to deploy to Heroku following this guide.