Version: 1.0.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.
PelcroCardNumber
Required#
Input field to receive the card's number.
PelcroCardExpiry
Required#
Input field to receive the card's expiration date.
PelcroCardCVC
Required#
Input field to receive the card's CVC.
SubmitPaymentMethod
Required#
Instance of Button
A button component that submits the payment method.
Accepts any prop that HTML button element supports.
#
Propsname
#
string?
The title displayed inside the button