In the Product template, you can add a Secure payment block to display a payment and security message with icons of accepted payment methods.
Shopify | The theme automatically displays icons for the payment options enabled in your Shopify admin, depending on your customer's region and currency. Payment methods are a Shopify feature. See Shopify's Payments manual ↗ to learn more.
Set up secure payment block
Follow the steps to add a secure payment block and customize the layout, headings, and add ab optional image.
STEPS
In your theme editor (Customize):
Under Product overview, click (+) Add block and select Secure payment.
Click on the new Secure payment block to open the settings.
Select which Column to display the Text block: Either the Right (in the product form) or on the Left (beneath the product media).
Select the Text alignment of the heading and text: Either Left or Center.
Select the Text position of the heading and text: Either Above payment icons or Below payment icons.
(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.
Change the Heading text for a title above your secure payments message.
We recommend a short title of a few words.
Select a Heading icon to display next to the heading.
Select None at the top of the dropdown to remove the icon.
Change the Text for a message about your secure payment methods.
Select the Text size of the text: Either Small, Medium, or Large.
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.
Choose to display the secure payments block as a Collapsible row.
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.
(Optional.) Click and hold the drag handles ⋮⋮ to rearrange the blocks:
Click Remove block in the block settings to delete a block.
Click the Eye icon to hide or unhide a block.
Click Save.
Advanced: Add or remove payment icons
Our support does not cover custom code. These steps are offered only as a reference. we recommend working with a developer through Shopify Experts ↗ or Task Husky ↗.
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:
Go to Online store > Themes.
Find your current theme, then click the ... button and select Duplicate theme.
On the duplicated theme, click the ... button and select Edit code.
In the Snippets folder, click payment-icons.liquid to open the file.
Find the following code:
{% for type in enable_payment_types %}
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 %}
</div>
7. Edit the payment type values to change which icons are displayed. Separate each value with a comma.
> The default list is `visa,master,american_express,paypal`. Find all [available payment values](https://github.com/activemerchant/payment\_icons/tree/master/app/assets/images/payment\_icons). Copy the name but do not include `.svg`
<figure><img src="../../.gitbook/assets/payment-icons-code.gif" alt=""><figcaption></figcaption></figure>
<!---->
8. Click **Save**.
9. After testing, you can go to your Theme library to **Publish** the duplicated theme with your changes.
</details>
<br>
***
> **Related links**
>
> [Product template](../product-template/)