Claim

This process is only applicable on merchant-linked quests. Not to be interchanged with collect, claiming is the process of using cashdrop vouchers to purchase a product on the linked merchant. Vouchers can only be collected from merchant linked quests and can only be used on the merchant it is linked to.

claim.png

  1. User must go to the physical merchant store that is linked to the voucher.
  2. User selects the voucher(s) he or she wants to send. A user can only claim 1 to 3 vouchers at a time, and the total amount of the vouchers must be greater than or equal to the amount of the product to be purchased. On the case that a user’s vouchers are less than the product’s price, the app automatically tops-up the remaining BCH needed to purchase the product.
  3. User scans the merchant Paytaca POS (Point-of-Sales) payment QR code and sends it. The QR code address points to the merchant vault covenant’s p2sh32 address.
  4. Once a key NFT voucher is received by a vault, it validates the voucher as follows:
    1. It checks if the key NFT belongs to the merchant
    2. It checks if the pair lock NFT is in the contract
    3. It checks if the key and lock NFT have the same category and commitment
  5. If the validation on step 4 passes, it constructs the claiming transaction outputs as follows:
    1. Lock NFT which has the voucher embedded BCH amount gets burned and sent to the merchant recipient address
    2. Key NFT which has the dust amount, gets burned as the transaction fee
    3. (Optional) Topped-up BCH amount gets sent to the merchant recipient address