Widget security
Why it is safe to publish your key, and what protects your shoppers.
- The key in your page is public. It identifies you; it can never move money on its own.
- Every call is checked live: the key is active, your account is active, the page's address is on the key's allowed list, the product is allowed, and the rate limit holds.
-
Keys are locked to exact domains. There are no wildcards, and
wwwis added separately. - Revoke or rotate a key at any time. A revoked key stops working on its very next request.
- Checkout happens on a Naara-hosted page, so card and wallet details never touch your site.
- Shoppers see only their own orders, placed through your site, after signing in with an emailed code.
Optional integrity pin
You can pin the script with a Subresource Integrity hash so a tampered copy is refused by the browser. Your Widgets page can show the hash for the current file.
<script src="https://naara.app/widgets/merchant-widget.js"
data-naara-key="wk_live_your_public_key"
integrity="sha384-..." crossorigin="anonymous" defer></script>