1. Create a publishable key
In Settings → API, create a key of type Publishable and list the websites it will be used on (for examplehttps://www.example.com). A publishable key can only verify scans, and
only from the websites you list, so it is safe to put in a web page. Never put a secret key
(vrq_…) in a page. See publishable keys.
2. Add the script and a button
data-satyakod-scan opens the scanner. Style the button however you like.
The same attributes on a button override the script’s for that button, so one page can open
the scanner in different languages.
3. Use the result (optional)
When a code is checked, the page receives asatyakod:verdict event:
verdict is genuine, suspicious or counterfeit. You can also open the scanner from your
own code with Satyakod.open({ lang: "hi", onVerdict: (detail) => … }).