# Payments and trust

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

<figure><img src="https://475958657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fyt3Wwaqhge0XvrXmVj7D%2Fuploads%2F7o0lxxUU6dDebY9jvXvo%2Fpayment-secure.png?alt=media&#x26;token=2d4e6316-5173-4c92-8c85-479094c37c88" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Payment methods are a Shopify feature. Themes do not control which payment icons appear: see Shopify's [Payments manual](https://help.shopify.com/en/manual/payments) to learn more or contact [Shopify Support](https://help.shopify.com/en/support/) about payment icons.
{% endhint %}

## **Set up payments and trust block**

***

Under **Product overview**, click **(+) Add block** and select **Payments and trust**. Use the drag-and-drop handles **`⋮⋮`** to re-order blocks.

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

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your theme editor (**Customize**):

1. Under **Product overview**, click **(+) Add block** and select **Payments and trust**.
2. Click the new **Payments and trust** block to open the settings.
3. Select which **Column** to display the Text block: Either the **Right** (in the product form) or on the **Left** (beneath the product media).
4. Select the **Alignment** of the heading and text: Either **Left,** **Center,** or **Right**.
5. (*Optional*.) Choose whether to **Show payment icons**.

   > The block displays icons for accepted payment methods included in your payment gateway. See [Shopify's Payments guide](https://help.shopify.com/en/manual/payments) or contact [Shopify Support](https://help.shopify.com/en/support/) about issues with payment icons.
6. Change the **Heading** text for a title above your secure payments message.

   > We recommend a short title of a few words.
7. Select a**n Icon** to display next to the heading.

   > Select **None** at the top of the dropdown to remove the icon.
8. Change the **Text** for a message about your secure payment methods.
9. Select the **Text size** of the text: Either **Small**, **Medium**, or **Large**.
10. 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.
11. 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.
12. Click **Save**.

</details>

## Advanced: Add or remove payment icons

***

{% hint style="warning" %}
Our support does not cover custom code. These steps are offered only as a reference. For assistance, we recommend reaching out to a [verified Fluorescent partner](https://partners.fluorescent.co/).
{% endhint %}

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.

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

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:

```liquid
{% for type in enable_payment_types %}


```

6. Replace that code with the following code:

{% code overflow="wrap" %}

```
```

{% endcode %}

\`\`\`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`

<!---->

8. Click **Save**.
9. After testing, you can go to your Theme library to **Publish** the duplicated theme with your changes.

</details>

&#x20;
<br>

***

> **Related links**
>
> [Product template](../product-template.md)\
> [Product page blocks](./)
```

</details>
