data-channel-keyattribute on the script tag.
hidePointsProductsIdvariable in order to hide it from the dropdown.
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