Version: 2.7.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.