Version: 2.0.0
GiftRedeemModal
The gift redeem modal is used when the user wants to start the flow of redeeming a gift code. once the user submits a gift code successfully in this modal, the code is stored in usePelcro's giftCode field.
Loading...
Usage#
Reference#
Props#
onDisplay#
() โ void
Callback function called when the modal is first displayed.
onClose#
() โ void
Callback function called when the modal is closed.
onSuccess#
(giftCode) โ void
Callback function called when the gift code is submitted succesfully.
onFailure#
(errorObject) โ void
Callback function called when submitting the gift code fails.