Version: 2.7.0
PaymentMethodUpdateContainer
Handles updating the user's payment method.
#
Usage#
ReferencePaymentMethodUpdateContainer
#
#
PropsonSuccess
#
(userObject) โ void
Callback function called when the user updates payment method succesfully.
onFailure
#
(errorObject) โ void
Callback function called when the payment update fails.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
CheckoutForm
Required#
Contains all stripe's checkout form fields in one component (PelcroCardNumber, PelcroCardExpiry, PelcroCardCVC)
PelcroCardNumber
#
Input field to receive the card's number.
PelcroCardExpiry
#
Input field to receive the card's expiration date.
PelcroCardCVC
#
Input field to receive the card's CVC.
SubmitPaymentMethod
Required#
A button component that submits the payment method.
Accepts any prop that HTML button element supports.