> For the complete documentation index, see [llms.txt](https://docs.ecwid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecwid.com/guides/payments/customize-payments/show-payment-icons-near-your-payment-method-at-the-checkout.md).

# Show payment icons near your payment method at the checkout

When you add a new payment method to the checkout, it’s displayed without any payment icons on the storefront. However, you can show icons like Visa or AMEX near your payment method to earn more trust from customers.

You need a self-hosted JavaScript file assigned to the app to do so. [Set up self-hosted JS file](/storefronts/get-started/storefront-customization-options.md)

Use the following script as a template for adding an image of payment icon to your payment method. It only requires a link to the image and your app’s `client_id`:

```javascript
var client_id = "custom-app-1003-1"  //  your app’s client_id
var image_link = "https://mitra-sezzle.free.nf/img/Color-BuyNowPayLater.png"  //  your image URL (must be https)

// function that adds an image
var CheckoutIconLoad = function () {
   var icon = "<div class='icon_resizer' style='height:40px; overflow:hidden'> <img style='width:auto; height:100%; display:block;' src='"+image_link+"'></img> </div>";
   document.querySelector("label.ec-radiogroup__item--app_id-"+client_id+" div.ec-radiogroup__info:empty").innerHTML = icon;
}

// call function on the page load
Ecwid.OnAPILoaded.add(function () {
   Ecwid.OnPageLoaded.add(function (page) {
      if (page.type == "CHECKOUT_PAYMENT_DETAILS") {
         CheckoutIconLoad();
      }
   });
});
```

How it looks at the checkout:

<figure><img src="/files/HHbwo8X4Hc8ytK7nSoBR" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.ecwid.com/guides/payments/customize-payments/show-payment-icons-near-your-payment-method-at-the-checkout.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.
