Skip to main content
Drop a single script tag into your website and start accepting payments with Quickei. No backend required — the SDK handles the entire checkout flow in a secure inline modal or popup window.

Installation

Add the Quickei SDK to your page:
Load the script before your payment code runs. Place it in the <head> or just before your closing </body> tag.

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 for pay() and popup():

Callback Response

The onSuccess callback receives a response object:
Always verify the payment on your server using the callbackUrl webhook or the Check Payment Status endpoint. Client-side callbacks can be spoofed.

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.