# Payment accordion

In the Product template, you can add a **Payment feature** block to display icons of accepted payment methods.

{% hint style="success" %} <mark style="color:green;">**Shopify**</mark> | 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 payment accordion**

Follow the steps to add a payment feature accordion and customize the layout and headings.

{% hint style="warning" %}
Editing a template changes all pages that use that template. To edit specific pages, you can [create and assign new templates](/spark/general/editing-themes/using-templates.md#create-and-assign-multiple-templates) or [insert dynamic content using metafields](/spark/general/adapting-your-theme/dynamic-content-with-metafields.md).
{% endhint %}

<details>

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

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

1. Choose the **Products** template you want to edit.
2. Under the **Product overview** section, click on the **Payment** block to open the settings.

   > Or click **(+) Add block** and select **Payment** widget.

   ![](https://github.com/fluorescent/kb-spark/blob/main/.gitbook/assets/payment-widget-settings.jpeg)
3. Select which column to display the feature: either **Left** or **Right**.

   > Choose **Left** for a larger block below the product media.
4. Choose whether to **Show payment icons**.
5. 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. we recommend working with a developer through [Shopify Experts](https://experts.shopify.com/) or [Task Husky](https://account.taskhusky.com/aff.php?aff=153\&page=fluorescent).
{% 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/)\
> [Security accordion](security-accordion.md)\
> [Shipping accordion](shipping-accordion.md)
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.fluorescent.co/spark/product-pages/product-page-blocks/payment-accordion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
