Update Payment Method Form - Liquid Form Reference
On this page
Usage
```liquid
{% form “update-payment-method”, method_id: method.id %} {% endform %} ```
The update-payment-method form sets one of the customer’s saved payment methods as their default. It is typically rendered as a “Set as default” button next to each saved card on the account payment methods page.
| Property | Value |
|---|---|
| Form Name | update-payment-method |
| Category | Accounts |
Parameters
| Parameter | Required | Description |
|---|---|---|
method_id |
Yes | The ID of the saved payment method to set as the default. |
Form Object
Inside the form block, you can access the form object which provides:
form.errors— Any validation errors after submission
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.