Inspiration

Gift Cards enable retailers to accept advanced payments from customers for products and services that will be provided at a later time, this increases cashflow and allow retailers to offer discounts and rebates. The end result is improved sales, cashflow, and a loyalty effect. Gift Cards represent a multi-billion dollar market worldwide. Until now businesses depended on financial institutions and third party companies to host and manage the gift cards, The retailers have to comply with rules and regulations from those companies, and pay direct and indirect fees for hosting the gift cards. TRON POS changes this by enabling big and small retailers to issue their own gift cards in web3, hosting them in TRON blockchain, all they need is a mobile phone and TRX bandwith to create the gift cards and record the information in the blockchain.

What it does

The application enables retailers to use TRON blockchain to issue, redeem and check the balance of their digital Gift Cards. Customers buy the Gift Cards paying to the retailer with Cash, Credit, Debit or Crypto, for sending as gifts to family and friends or use for themselves. Customers redeem the gift cards for products and services at the retailer location. The store owner (Retailer) links a TRON wallet to the Point of Sale Application (TRON POS) by importing the private keys from an external TRON wallet, this will provide TRX bandwith. When a customer wants to buy a Gift Card, the clerk receives the payment and enters the amount on the application, the application will create a new TRON account and transfer TRX funds equal to a small fraction of the amount paid ( 1/1000), it generates the account and prints the public key as a QR code which represent the actual gift card number. It also activates the card by transferring a small fee (1 TRX in this version) from the Gift Card account to company that owns the TRON POS software, definining the validity of the card and currency. Different currencies will have different accounts.

The application runs in Android phones and Android POS terminals, and generate and sends the gift cards via messenger or WhatsApp, or print a voucher if provided with Bluetooth receipt printer or with a Sumni V2 or Wiseasy POS terminal.

How we built it

  • Android application with enbedded TRIDENT-JAVA to generate the Gift Cards,
  • Communication to api.trongrid.io to obtain transaction information from the blockchain
  • Tronlink wallet to generate the accounts and manage the TRX bandwith.
  • Server application using MAKE (integromat) for registration of the customer details ( for record keeping only)

Issuing Gift Cards: The Android application creates a private/public key by diversifying the retailer's private key with a sequential number. The generated public key becomes the actual gift card number which is send or shared as a QR code. The application writes the Gift Card account with the store name, a sequential number, and an encrypted PIN (future implementation) for validation. It also transfer 1 TRX + Amount/1000 from from the gift card to the company that owns the TRON POS application. This is required for validation and to mark the currency.

Redeeming Gift Card: Every time a customer wants to redeem an card, the clerk scans the QR code obtaining the public key of the card, reads the history in the blockchain to validate it is a valid card for that retailer, determines the initial load amount, validate that it matches the retailer account in that first transfer and that has enough balance. If it has enough balance the application transfers an amount equal to 1/1,000 of amount charged from the retailers account to the gift card account, and prints a receipt.

Gift Card Balance: It is calculated by locating the initial transaction, amount and currency sent from the gift card account to the Validation Account minus all the charges and fees made to that gift card account.

Gift Card Transactions: All the transfers made from the retailers account to the gift card account. Also can generate a report with all the cards issued by the retailer account (Future implementation)

Challenges we ran into

Compile Triton-Java into Android

Accomplishments that we're proud of

  • Design and implementation of the concept
  • Embedding the new Gift Cards functionality to the existing USDT POS application.

What we learned

  • How Triton-Java works

What's next for TRON WEB3 GIFT CARDS

  • Implement a 4 digit PIN encrypted into the Gift Card account name such that customers can validate the card. Keep in mind that the card information is available in the block chain.
  • Report with all the cards issued by the retailer account
  • Enabling issuing the Gift Cards online and loading funds with credit/debit/Crypto

Built With

Share this project:

Updates