Point Redemption

For users who have not installed the app, points are recorded based on the hash of their phone number. These temporarily issued points must be converted into usable points for redemptions.

The conversion to usable points is achieved by installing the user app. When the wallet owner calls the smart contract’s point payment function using their wallet signature, the calculated points are deducted from the user’s balance.

Once this process is confirmed at the kiosk, the redemption is completed. Note that when a user redeems with points, an additional fee equivalent to 5% of the purchase amount must be paid.

New Payment

  1. The user generates a QR code for payment in the mobile app

  2. Create a temporary wallet address

  3. Response - Temporary wallet address

  4. The user enters the QR code from the mobile screen into the kiosk

  5. The kiosk checks the user’s balance using the temporary wallet address

  6. Response - Balance information

  7. Request - Payment information

  8. Response - Payment information

  9. Send a push message to the mobile app

  10. The user receives the push message and approves the payment

  11. Call the smart contract to process the payment

  12. Collect events after the smart contract executes

  13. Periodically request event updates

  14. Response

  15. Final confirmation

  16. Payment closure

  17. Response

  18. Response

Cancel Payment

  1. A cancellation request for the payment is initiated.

  2. Response.

  3. A push message is sent to the mobile app.

  4. The store owner receives the push message and approves the cancellation.

  5. The smart contract is called to cancel the payment.

  6. After the smart contract executes, events are collected.

  7. Periodically, event requests are made.

  8. Response.

  9. Final confirmation.

  10. Payment closure.

  11. Response.

  12. Response.

Last updated