Widget installation

Show customers how they can pay with Scalapay while they are still choosing what to buy. One script, one tag per page.

Scalapay widget on a product page: from 37.08 euro per month in 12 installments, APR 15% APRC 26.8%, with the info band and a Learn more link

Why add the widget

Price in the buyer's terms

Customers see the monthly amount next to the price, on the product, in the catalog and in the cart, before they reach checkout.

Compliant, with no copy to maintain

The text follows your contract and each country's consumer credit rules, and updates itself when they change.

Install once, stay current

New releases reach your site through the same script. You change nothing to get them.

📘

Ready for the new consumer credit rules

The EU Consumer Credit Directive (EU) 2023/2225, known as CCD2, sets how credit is offered and advertised to consumers. From 20 November 2026 it also covers buy now, pay later.

The Scalapay widget is built for these rules and for the national laws that apply them, such as Italy's Legislative Decree 212/2025 and France's Ordonnance 2025-880. What this means for the widget:

  • It shows what each plan costs next to the installments: no additional costs, the fee, or APR and APRC.
  • It always links to a window with the full credit details.
  • Its text follows the rules in force and updates on your site automatically when they change.

APR is the annual nominal interest rate; APRC is the annual percentage rate of charge, the total cost of the credit as a yearly rate. In the other widget languages: Italian TAN / TAEG · Spanish TIN / TAE · Portuguese TAN / TAEG · German Sollzins / Effektivzins · French taux débiteur / TAEG.

Use the widget as provided, without editing its text, and the Scalapay messaging on your site stays aligned with the rules in force.


Where to show it

Recommended first.

What the customer sees. The plan the price unlocks and what it costs, then a band with all the ways to pay and a Learn more link to the details. The widget is the same on both pages: on the product page it uses the product price, in the cart the basket total. It updates when the customer changes size, quantity or basket.

Where. Product page: just below the price, above the add-to-cart button. Cart: below the total, above the checkout button.

Product page and cart. Example with a 12-installment financing plan: the cost line shows APR and APRC. With pay in 3 or pay in 4 it shows "no additional costs" or the fee on the first installment.

<scalapay-widget
  type="product"
  amount-selectors='["#product-price"]'
  merchant-token="YOUR_MERCHANT_TOKEN"
></scalapay-widget>
<scalapay-widget
  type="cart"
  amount-selectors='["#cart-total"]'
  merchant-token="YOUR_MERCHANT_TOKEN"
></scalapay-widget>

Quickstart

📘

Using a plugin or app?

The widget is already included. Follow the guide for your platform instead.

🚧

Offering Scalapay through an acquirer?

Adyen, Stripe, PPRO, Antom, PayPlug, Airwallex: your merchant token doesn't come from the Merchant Portal. See Widget for merchants using an acquirer before you go live.

1. Load the script

Add it to the <head> of every page that shows the widget.

<script type="module" src="https://cdn.scalapay.com/widget/scalapay-widget-loader.js?version=V5"></script>

2. Add the tag

Copy the snippet for your page from Where to show it. Set amount-selectors to the CSS selector of your price element. For testing, use the test token and the integration environment:

<scalapay-widget
  type="product"
  amount-selectors='["#product-price"]'
  merchant-token="8KDS3SPEL"
  environment="integration"
></scalapay-widget>

3. Test, then go live

Check that the widget shows the installments and updates when the price changes. Then switch to production:

TestingProduction
merchant-token8KDS3SPELYour production token. If you don't have it, contact Scalapay support.
environmentintegrationRemove the attribute

Offering Scalapay through an acquirer? See where to get your token.

🚧

Keep the widget text as it is

The text describes a credit offer and is regulated. Don't hide, cover or rewrite it with CSS or scripts. To change the look, use the supported attributes.


Troubleshooting

The widget explains most problems in the browser console.

SymptomFix
Nothing appears. Console: None of the amountSelectors resolved to a valid amountYour selector doesn't match the price element. Test it with document.querySelector() in the console.
Nothing appears. Console: Merchant configuration has no products configuredThe token and the environment don't match. Use the test token with integration, or your token without environment.
Nothing appears for some pricesExpected: the price is outside your contract limits, or no plan is available for it.
Listing labels are missingposition-selectors doesn't match an element inside the product cards.
Wrong languageSet locale. See Widget configuration.

Examples

<!-- Your page -->
<span id="product-price">€99.90</span>

<!-- Wrong: no element on the page has the class "price" -->
<scalapay-widget type="product" amount-selectors='[".price"]'></scalapay-widget>

<!-- Right -->
<scalapay-widget type="product" amount-selectors='["#product-price"]'></scalapay-widget>
<!-- Wrong: test token without the integration environment -->
<scalapay-widget merchant-token="8KDS3SPEL"></scalapay-widget>

<!-- Right, for testing -->
<scalapay-widget merchant-token="8KDS3SPEL" environment="integration"></scalapay-widget>

<!-- Right, in production: your token, no environment -->
<scalapay-widget merchant-token="YOUR_MERCHANT_TOKEN"></scalapay-widget>
<!-- Your product card -->
<div class="card">
  <span class="amount">€49.90</span>
  <div class="actions">…</div>
</div>

<!-- Wrong: there is no .buttons element inside the card -->
<scalapay-widget type="listing" amount-selectors='[".card .amount"]' position-selectors='[".card .buttons"]'></scalapay-widget>

<!-- Right -->
<scalapay-widget type="listing" amount-selectors='[".card .amount"]' position-selectors='[".card .actions"]'></scalapay-widget>