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
number
required
Paysight product ID from your dashboard.
string
required
Unique identifier per checkout attempt (you generate this), up to 50 characters. The Widget forwards it to Card Submit as
partnerSession.number
required
Charge amount in decimal currency units. Ignored when
shopify is set (use 0).'sandbox' | 'production'
required
sandbox for testing, production for live payments.Customer and fields
CustomerMetadata
Optional prefill — values merged into the form and payment request. Does not replace visible fields.
FieldConfig[]
Form layout — inputs rendered in the iframe. Product requirements determine the minimum set.
CardType[]
Card brands to hide. Values:
visa, mastercard, american-express, discover, diners, jcb, maestro, unionpay.3D Secure
boolean
Require 3DS when supported.
boolean
Cancel payment when 3DS fails.
boolean
Treat 3DS challenge as failure.
upsell.threeDSRequired, upsell.cancelOnThreeDSFailure, upsell.failOnThreeDSChallenge.
Saved payment & upsell
boolean
On checkout, ask the API to store the payment method for a later charge. Works on card, Apple Pay, and Google Pay.
boolean
Charge using the stored method. Requires
upsell.initialPaymentSession (the paysightSession from page 1).UpsellConfig
Page-2 upsell configuration. Active when both
upsellId and initialPaymentSession are set.External pay button
boolean
Hide in-iframe Pay and Upsell buttons. Call
submitPayment() or submitUpsell() from the host page.boolean
When
true, charge as one-time purchase without subscription. Update at runtime via widget.update({ singlePurchase: true }).Shopify cart
ShopifyConfig
Shopify-style cart checkout. Totals computed from line items.
Wallets
boolean
Hide card form when a configured wallet is available; falls back to full UI on error, timeout, or misconfiguration.
boolean
Enable Apple Pay (button renders on host page via
applePayContainerId).object
applePayMerchantId (required), optional style (buttonStyle, buttonType, borderRadius, size).boolean
Enable Google Pay (host-page container via
googlePayContainerId).object
googlePayMerchantId (required), optional style (buttonStyle, buttonType, borderRadius, size, locale).Presentation
WidgetTheme
font (Google Fonts URL) and css (class overrides on supported .ps-* classes). See Styling guide.SupportedLocale
UI locale. Default
en-US. See SDK for full list (19 locales).SupportedCurrency
Display currency. Default
USD.string
In-iframe pay button label.
{ title?: string; description?: string }
Custom success screen copy.
boolean
default:"false"
Mark the payment as ecommerce. When
true, sent to the API on card, wallet, and upsell payment paths.Tracking & attribution
Record<string, string>
String key-value data sent with payment requests. Use
campaignName and affiliateName for free-form campaign and affiliate values; campaignId and affiliateId are deprecated internal Paysight identifiers. UTM values, click IDs, landing URLs, and other keys are forwarded as custom metadata. See Tracking & attribution.Advanced
string
Override default MID routing (account-specific).
Related
- API reference —
createWidget,update,submitPayment - Events reference
- Configuration guide — narrative setup