config object of PaySightSDK.createWidget.
amount uses decimal major units (29.99). productId is a number. When shopify is set, pass amount: 0 — totals are computed from cart lines.Required fields
Paysight product ID from your dashboard.
Unique idempotency key per checkout attempt (you generate this).
Charge amount in decimal currency units. Ignored when
shopify is set (use 0).sandbox for testing, production for live payments.Customer and fields
Optional prefill — values merged into the form and payment request. Does not replace visible fields.
| Field | Type |
|---|---|
email | string |
phone | string |
firstName | string |
lastName | string |
address | string (street) |
city | string |
state | string |
zip | string |
country | string (two-letter ISO, required for many flows) |
Form layout — inputs rendered in the iframe. Product requirements determine the minimum set.
Card brands to hide. Values:
visa, mastercard, american-express, discover, diners, jcb, maestro, unionpay.3D Secure
Require 3DS when supported.
Cancel payment when 3DS fails.
Treat 3DS challenge as failure.
upsell.threeDSRequired, upsell.cancelOnThreeDSFailure, upsell.failOnThreeDSChallenge.
Saved payment & upsell
On checkout, ask the API to store the payment method for a later charge. Works on card, Apple Pay, and Google Pay.
Charge using the stored method. Requires
upsell.initialPaymentSession (the paysightSession from page 1).Page-2 upsell configuration. Active when both
upsellId and initialPaymentSession are set.External pay button
Hide in-iframe Pay and Upsell buttons. Call
submitPayment() or submitUpsell() from the host page.When
true, charge as one-time purchase without subscription. Update at runtime via widget.update({ singlePurchase: true }).Shopify cart
Shopify-style cart checkout. Totals computed from line items.
Wallets
Hide card form when a configured wallet is available; falls back to full UI on error, timeout, or misconfiguration.
Enable Apple Pay (button renders on host page via
applePayContainerId).applePayMerchantId (required), optional style (buttonStyle, buttonType, borderRadius, size).Enable Google Pay (host-page container via
googlePayContainerId).googlePayMerchantId (required), optional style (buttonStyle, buttonType, borderRadius, size, locale).Presentation
font (Google Fonts URL) and css (class overrides on supported .ps-* classes). See Styling guide.UI locale. Default
en-US. See SDK for full list (19 locales).Display currency. Default
USD.In-iframe pay button label.
Custom success screen copy.
Mark the payment as ecommerce. When
true, sent to the API on card, wallet, and upsell payment paths.Tracking & attribution
Arbitrary key-value pairs sent with payment requests (affiliate IDs, UTM params, landing URL, etc.). See Tracking & attribution.
Advanced
Override default MID routing (account-specific).
Related
- API reference —
createWidget,update,submitPayment - Events reference
- Configuration guide — narrative setup