Remove Payment Method Form - Liquid Form Reference
On this page
Usage
```liquid
{% form “remove-payment-method”, method_id: method.id %} {% endform %} ```
The remove-payment-method form deletes one of the customer’s saved payment methods. It is typically rendered as a “Remove” button next to each saved card on the account payment methods page.
| Property | Value |
|---|---|
| Form Name | remove-payment-method |
| Category | Accounts |
Parameters
| Parameter | Required | Description |
|---|---|---|
method_id |
Yes | The ID of the saved payment method to remove. |
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.