Developer Documentation
Integrate NIAPAY on your product pages. Lightweight script, minimal setup.
The Nia-Script (Lightweight Integration)
To show the NIAPAY price breakdown on your
product page, add this script to your <head>:
<script src="https://cdn.niapay.biz/v1/nia-badge.js"></script>
Place this tag where you want the price split to appear:
<nia-price-badge amount="45000" currency="KES"></nia-price-badge>
Attributes
| Attribute | Required | Description |
|---|---|---|
amount |
Yes | Price in smallest currency unit (e.g. 45000 for KES 45,000) |
currency |
Yes | ISO 4217 code (e.g. KES, USD) |
Live Demo
Preview of the badge with KES 45,000: