Handles payment for a new subscription.
SubscriptionCreateContainer requires the
plan 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.
(userObject) ⇒ void
Callback function called when the user subscribes succesfully.
(errorObject) ⇒ void
Callback function called when the subscription creation fails.
Displays the relevant errors or success messages.
When added, if authentication is required, the user will be redirected to the card issuer's website where they will be required to complete the card authentication.
Learn how 3D secure layer works.
Displays the selected payment method if the user has selected one.
Input field to receive the card's number.
Input field to receive the card's expiration date.
Input field to receive the card's CVC.
The coupon section.
Shows the discounted price when a coupon is applied.
A button component that submits the payment.
The title displayed inside the button
A button that opens Google Pay/Apple Pay flow for supported customers.
Learn how to configure Google Pay/Apple Pay with your app.
Pay with PayPal button.
Learn how to configure PayPal with your app.