Security
Public keys, unsigned payloads, and recommended server minting.
Public keys only
apikey in CheckoutPayload must be a public key. Secret keys (sk_…) are rejected by the SDK. The hosted checkout page only length-checks the key server-side, so never ship auth/secret credentials in browser code.
Payloads are not encrypted
The qp query param is double base64 for URL-safety — not encryption. Anything in a client-built payload can be read and changed in DevTools.
For production, mint the URL with buildUrl() on your server (or via @oleq-ai/pay/nest), then open that URL in the browser.
Validation
The SDK validates required fields before opening checkout so integrators get OleqPayCheckoutError instead of a bare 404 from the checkout page.
postMessage origin checks
Modal success/failure handlers ignore messages whose event.origin does not match the checkout URL origin.
pnpm