Version: 2.5.0
OrderCreateModal
Used to make users pay ecommerce orders.
Loading...
info
OrderCreateModal requires the order
to be set.
If you're using our default flow, the user sets this before moving to payment already.
But if you have your own custom flow, you can use the usePelcro hook to set it before switching to the payment view
like in the following example.
#
Usage#
Reference#
PropsonDisplay
#
() โ void
Callback function called when the modal is first displayed.
onClose
#
() โ void
Callback function called when the modal is closed.
onSuccess
#
(orderObject) โ void
Callback function called when the user orders succesfully.
onFailure
#
(errorObject) โ void
Callback function called when the order fails.