Widget installation
Show customers how they can pay with Scalapay while they are still choosing what to buy. One script, one tag per page.
Why add the widget
Customers see the monthly amount next to the price, on the product, in the catalog and in the cart, before they reach checkout.
The text follows your contract and each country's consumer credit rules, and updates itself when they change.
New releases reach your site through the same script. You change nothing to get them.
Ready for the new consumer credit rulesThe 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.

<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>New in V5.2.
What the customer sees. A one-line label in every product card, with a See costs and terms link that opens the details.
How. One tag for the whole page, not one per product. amount-selectors finds the price in each card, and position-selectors, required on listing, sets the element the label is placed after, for example the card's buttons. When filters, sorting or infinite scroll load new cards, the widget labels them by itself.

<!-- One tag per listing page -->
<scalapay-widget
type="listing"
amount-selectors='[".catalog .card .amount"]'
position-selectors='[".catalog .card .actions"]'
merchant-token="YOUR_MERCHANT_TOKEN"
></scalapay-widget>At payment.
What the customer sees. A short description under the Scalapay payment method: the installment options, the cards accepted and the credit risk warning, so the customer knows what to expect before choosing Scalapay.
Where. Inside the Scalapay option in your list of payment methods.

<scalapay-widget
type="checkout"
amount-selectors='["#order-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:
| Testing | Production | |
|---|---|---|
merchant-token | 8KDS3SPEL | Your production token. If you don't have it, contact Scalapay support. |
environment | integration | Remove the attribute |
Offering Scalapay through an acquirer? See where to get your token.
Keep the widget text as it isThe 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.
| Symptom | Fix |
|---|---|
| Nothing appears. Console: None of the amountSelectors resolved to a valid amount | Your selector doesn't match the price element. Test it with document.querySelector() in the console. |
| Nothing appears. Console: Merchant configuration has no products configured | The token and the environment don't match. Use the test token with integration, or your token without environment. |
| Nothing appears for some prices | Expected: the price is outside your contract limits, or no plan is available for it. |
| Listing labels are missing | position-selectors doesn't match an element inside the product cards. |
| Wrong language | Set 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>Updated about 15 hours ago
