Version: 3.5.2
SubscriptionSuspendContainer
Handles suspending for a subscription.
info
SubscriptionSuspendContainer requires the subscriptionToSuspend
to be set.
If you're using our default flow, the user selects those before moving to payment already.
But if you have your own custom flow, you can use the usePelcro hook to set them before rendering the payment view
like in the following example.
#
Usage#
ReferenceSubscriptionSuspendContainer
#
#
PropsonSuccess
#
(userObject) โ void
Callback function called when the user subscribes succesfully.
onFailure
#
(errorObject) โ void
Callback function called when the subscription creation fails.
#
Children componentsSubscriptionSuspendDate
#
Displays datepicker to pick date.
SubscriptionSuspendButton
#
Button to submit the suspending date.