--- title: 'Liquid filters: payment_button' description: >- Generates an HTML container to host [accelerated checkout buttons](https://help.shopify.com/manual/online-store/dynamic-checkout) for a product. The `payment_button` filter must be used on the `form` object within a [product form](/docs/api/liquid/tags/form#form-product). api_name: liquid source_url: html: 'https://shopify.dev/docs/api/liquid/filters/payment_button' md: 'https://shopify.dev/docs/api/liquid/filters/payment_button.md' --- # payment\_​button ```oobleck form | payment_button ``` returns [string](https://shopify.dev/docs/api/liquid/basics#string) Generates an HTML container to host [accelerated checkout buttons](https://help.shopify.com/manual/online-store/dynamic-checkout) for a product. The `payment_button` filter must be used on the `form` object within a [product form](https://shopify.dev/docs/api/liquid/tags/form#form-product). ##### Code ```liquid {% form 'product', product %} {{ form | payment_button }} {% endform %} ``` ##### Data ```json { "product": { "id": 6786188247105 } } ``` ##### Output ```html
```