Allow admin to add NFT redemption data to Product

Status
Completed
Assign
type
Redemption w/ NFT
effort points
Start Date
End Date
priority
high
tags
NFT redemption
Github PR
There is already a defined namespace of β€œbanklessCheckout” in the code that we can reuse for all metafields.
The application should create the following three product metafields.
Check Miro for more details: https://miro.com/app/board/uXjVOGhcxcU=/
Β 
To access these metafields we need to get the β€œproduct” object and can then do:
Β 
{{ product.metafields.banklessCheckout.redeemable_with_nft.value }}
{{ product.metafields.banklessCheckout.nft_deployed_contract_address.value }}
{{ product.metafields.banklessCheckout.redemption_type.value }}
Add to product metafields:
  • Redeemable NFT Only Boolean
    • banklessCheckout.redeemable_with_nft
    • Boolean: True/False
  • NFT deployed contract address
    • banklessCheckout.nft_deployed_contract_address
    • Text Field: Single Line Text
    • RegEx: ^(0x)+([A-Za-z][0-9]){42,50}
  • type of redemption (1 nft for 1 redemption, etc)
    • banklessCheckout.redemption_type
    • Text Field: Single Line Text β†’ Limit to preset choices
      • 1_nft_1_redemption
Β 
Do we want to have a preselected list for type of redemption?
  • 1 nft for 1 redemption

Allow admin to add NFT redemption data to Product

Status
Completed
Assign
type
Redemption w/ NFT
effort points
Start Date
End Date
priority
high
tags
NFT redemption
Github PR
There is already a defined namespace of β€œbanklessCheckout” in the code that we can reuse for all metafields.
The application should create the following three product metafields.
Check Miro for more details: https://miro.com/app/board/uXjVOGhcxcU=/
Β 
To access these metafields we need to get the β€œproduct” object and can then do:
Β 
{{ product.metafields.banklessCheckout.redeemable_with_nft.value }}
{{ product.metafields.banklessCheckout.nft_deployed_contract_address.value }}
{{ product.metafields.banklessCheckout.redemption_type.value }}
Add to product metafields:
  • Redeemable NFT Only Boolean
    • banklessCheckout.redeemable_with_nft
    • Boolean: True/False
  • NFT deployed contract address
    • banklessCheckout.nft_deployed_contract_address
    • Text Field: Single Line Text
    • RegEx: ^(0x)+([A-Za-z][0-9]){42,50}
  • type of redemption (1 nft for 1 redemption, etc)
    • banklessCheckout.redemption_type
    • Text Field: Single Line Text β†’ Limit to preset choices
      • 1_nft_1_redemption
Β 
Do we want to have a preselected list for type of redemption?
  • 1 nft for 1 redemption