This SDK is separate from the entitlements JS SDK. Use this SDK when you need PPP / country-based discount banners and price display.
Installation
1. Add the Script
Paste this snippet just before the closing<head> tag on your pricing page:
2. Initialize the SDK
Copy your promotion ID from the promotion detail page and callinit():

init() options
Auto price update
Afterinit() resolves, every element with data-kq-price on the page is automatically updated with the discounted price for the visitor’s country.
Basic usage
Price container attributes
Sub-element attributes
Place these inside a price container to receive individual parts of the formatted price:JS API
All methods return Promises and requireinit() to have been called first.
getUpdatedPrice(price, options?)
Computes the discounted price and returns a PriceObject without touching the DOM.
Returns —
PriceObject
updatePriceElement(element, options?)
Updates a specific DOM element with the computed discounted price. The element must have a data-kq-price attribute. All elements linked to it via data-kq-rel are updated as well.
Returns a
PriceObject (same shape as getUpdatedPrice).
updatePrice(configs[])
Batch-update multiple elements, optionally rendering each with an HTML template.
Available template variables (any field from
PriceObject):
{{price}} · {{formattedPrice}} · {{integerPart}} · {{decimalPart}} · {{decimalSeparator}} · {{currencySymbol}} · {{currencyCode}}
Returns Promise<PriceObject[]> — one entry per config.
CSS hooks
The SDK adds classes todocument.body that you can target in your stylesheets:
Sandbox
Setenvironment: "sandbox" to test against the Kelviq sandbox environment.