data-channel-keyattribute on the script tag.
data-points-product-idproperty with the ID that you selected in the previous step.
applyPointsPurchaseToCartfunction is triggered when the customer clicks the "Redeem" button. Within this method, you'll have access to the discount code which will need to be applied to the cart. The code is available via