{"title":"Update Payment Method Form - Liquid Form Reference","slug":"update-payment-method-form-reference","url":"https://support.storeconnect.com/articles/update-payment-method-form-reference","url_markdown":"https://support.storeconnect.com/articles/update-payment-method-form-reference.md","subtitle":null,"summary":"The `update-payment-method` Liquid form sets a saved payment method as the default for the account.","type":"Developer_Documentation","video_url":"","keywords":"liquid, forms, update-payment-method, accounts, saved cards, default card, storeconnect","last_modified":"2026-07-30T00:28:16+0000","body_markdown":"## Usage\n\n\n```liquid\n\n{% form \"update-payment-method\", method_id: method.id %}\n  \u003cbutton type=\"submit\"\u003eSet as default\u003c/button\u003e\n{% endform %}\n```\n\n\nThe `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.\n\n| Property | Value |\n|----------|-------|\n| **Form Name** | `update-payment-method` |\n| **Category** | Accounts |\n\n## Parameters\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| `method_id` | Yes | The ID of the saved payment method to set as the default. |\n\n## Form Object\n\nInside the form block, you can access the `form` object which provides:\n\n- `form.errors` — Any validation errors after submission"}