Version: 1.0.0
PaymentMethodUpdateContainer
Handles updating the user's payment method.
Usage#
Reference#
PaymentMethodUpdateContainer#
Props#
onSuccess#
(userObject) โ void
Callback function called when the user updates payment method succesfully.
onFailure#
(errorObject) โ void
Callback function called when the payment update fails.
Children components#
Alert#
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.
Props#
name#
string?
The title displayed inside the button