Installation
Add the Quickei SDK to your page:Quick Start
API Reference
Constructor
quickei.pay(options)
Opens an inline iframe modal overlay on the current page. The customer completes payment without leaving your site.
quickei.popup(options)
Opens payment in a new popup window. Takes the same parameters as pay(). Use this when your site has strict CSP rules or you prefer a separate window.
quickei.close()
Programmatically close the payment modal or popup. Useful for timeout scenarios or navigation changes.
Parameters
All parameters forpay() and popup():
Callback Response
TheonSuccess callback receives a response object:
Sandbox vs Production
Use key prefixes to switch between environments:
The SDK automatically detects the environment based on your key prefix. No code changes needed — just swap the key.
Examples
Complete Checkout Page
A full checkout page with order summary and payment button:Custom Button Styling
You can trigger the payment from any element. Style it however you want:Security
Public key only
The SDK uses your public key (
client_id). Never include your client_secret in client-side code — it would allow anyone to make API calls on your behalf.Server-side verification
Always confirm payments server-side using webhooks or the payment status API. Client-side callbacks are for UX only — they can be tampered with.
HTTPS required
The SDK only loads on pages served over HTTPS. Callback URLs must also use HTTPS.
CSP compatible
If you use Content Security Policy headers, allow
https://quickei.io in frame-src and script-src directives.Browser Support
The SDK works in all modern browsers:Internet Explorer is not supported. The SDK uses modern JavaScript features (Promises,
fetch, arrow functions) that require a modern browser.
