Payment Filters


Payment filters show content about the store’s payment choices.


payment_button

Syntax
form | payment_button

Creates an HTML container to display dynamic checkout buttons for a product. Use the payment_button filter on the form object inside a product form.

Note: You can't display dynamic checkout buttons using AJAX requests, even with the Section Rendering API. These buttons are added by JavaScript from Shopify through the content_for_header object, which only runs when the page first loads.


payment_terms

Syntax
form | payment_terms

Creates the HTML for the Shop Pay Installments banner.

Use the payment_terms filter on the form object inside a product or cart form.


payment_type_img_url

Syntax
string | payment_type_img_url

Returns the URL for an SVG image of a specified payment type.


payment_type_svg_tag

Syntax
string | payment_type_svg_tag

Creates an HTML <svg> tag for a specific payment type.

class

Syntax
type | payment_type_svg_tag: class: string

Specify the class attribute of the <svg> tag.