Version: Next
PaymentMethodSelectContainer
Handles selecting one of the user's payment methods.
Usage#
Reference#
PaymentMethodSelectContainer#
Props#
onSuccess#
(selectedPaymentMethodId) โ void
Callback function called when the PaymentMethod is selected succesfully.
onAddNewPaymentMethod#
() โ void
Callback function called when adding a new payment method, and swithing to checkout form.
Children components#
Alert#
Displays the relevant errors or success messages.
PaymentMethodSelectList Required#
A selectable list of all the user's payment methods.
PaymentMethodSelectSubmit Required#
Instance of Button
A button component that submits the selected payment method.
Props#
name#
string?
The title displayed inside the button