Skip to main content
This guide covers the smallest working integration. For every config option, see Configuration reference.

Prerequisites

Paysight account

An active merchant account with a configured product.

Product ID

A numeric product ID from the Paysight dashboard.

HTTPS

Production pages must use HTTPS.

Steps

1

Load the SDK

2

Add a container

3

Initialize the widget

Customer object vs fields

These serve different purposes:
customer alone does not replace fields. If you omit fields, the widget uses your product’s default field requirements. If required data is missing at submit time, you receive ERROR with VALIDATION_FAILED.
Example — prefill email but still show the field:
See Configuration guide for semi-required customer data.

Important types

Optional: Wallet-only checkout

If you enable Apple Pay and/or Google Pay, set showOnlyWalletMethods: true to hide the card form when a wallet is available, with automatic fallback to the full card UI.

Wallet-only checkout

Requirements, layout, fallbacks, and examples.

Apple Pay via Widget

Domain verification and parent-hosted Apple Pay.

Try it live

Open playground

Interactive sandbox — edit config, watch events, copy embed code.

Playground guide

Walkthrough of all 12 presets and inspector tabs.

Next steps

Configuration

Customer prefill, fields, and full setup

Events

Handle payment, 3DS, and cart events

External button

Host your own pay CTA

Upsell flow

Two-page saved-payment checkout