For the complete documentation index, see llms.txt. This page is also available as Markdown.

Secure payment

In the Product template, you can add a Secure payment block to display a payment and security message with icons of accepted payment methods.


Set up block

Under Product overview, click (+) Add block and select Secure payment. Use the drag handles ⋮⋮ to re-order blocks.

Click the block to select the layout and position.

Editing templates change all pages that use that template. For unique pages, use new templates or dynamic metafields

Block layout

Click the block to find layout settings.

Column

Display the block in the left or right column of the product overview.

Display as collapsible row

Display the block within an expandable row that opens when clicked.


Layout and style

Click the block to find settings for the layout, headings, and optional image.

STEPS

In your theme editor (Customize):

  1. Under Product overview, click on the Secure payment block to open the settings

  2. Select the Text alignment of the heading and text: Either Left or Center.

  3. Select the Text position of the heading and text: Either Above payment icons or Below payment icons.

  4. (Optional.) Choose whether to Display payment icons.

    The block displays icons for accepted payment methods included in your payment gateway. See Shopify's Payments guide or contact Shopify Support about issues with payment icons.

  5. Change the Heading text for a title above your secure payments message.

    We recommend a short title of a few words.

  6. Select a Heading icon to display next to the heading.

    Select None at the top of the dropdown to remove the icon.

  7. Change the Text for a message about your secure payment methods.

  8. Select the Text size of the text: Either Small, Medium, or Large.

  9. Under Image, click Select image to upload an image or icon to display below the text.

    Use the Image size to increase or decrease the pixel width of your image.

  10. As a collapsible row, the products Expand by default. You can choose to disable this option.

    (Optional.) Change the Collapsible row title that appears as the toggle that opens the row when clicked.

  11. Click Save.

Click block to find settings

Setting
Description

Text alignment

Align the text to the Left or Center.

Text position

Display text Above payment icons or Below payment icons.

Show payment icons

Heading text

Heading icon

Text

Text size

Image

Select or upload an image. There are no required dimensions. We recommend an image with a minimum width of 50px.

Use PNG files for images with a transparent background.

Image size

Set the maximum width (in pixels) of the image for desktop.

Mobile image size

Set the maximum width (in pixels) of the image for mobile.

Advanced: Add or remove payment icons


If you are familiar with coding, you can edit the payment-icons.liquid file to add or remove payment icons that are displayed.

When editing theme code, always duplicate your current theme and use the unpublished theme copy to test your changes before publishing.

STEPS

From your Shopify admin:

  1. Go to Online store > Themes.

  2. Find your current theme, then click the ... button and select Duplicate theme.

  3. On the duplicated theme, click the ... button and select Edit code.

  4. In the Snippets folder, click payment-icons.liquid to open the file.

  5. Find the following code:

  1. Replace that code with the following code:

```liquid

{% assign enabled_payment_types = 'visa,master,american_express,paypal' | remove: ' ' | split: ',' %} {% for type in enabled_payment_types %}

Last updated