Version: Next
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, and if the gifted plan requires an address, then it takes you to the address select/create modal first before the gift is succesfully redeemed, otherwise the gift is redeemd right away.
Loading...
#
Usage#
Reference#
PropsonDisplay
#
() โ 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.