Attach string key-value pairs to payment requests with the data object on WidgetConfig. Values are forwarded to the Paysight API with each payment attempt (card, wallet, upsell). Some keys receive dedicated attribution handling; other keys are preserved as custom metadata.
Basic usage
Common keys
Do not use campaignId or affiliateId for your own identifiers. These deprecated fields accept only internal, Paysight-assigned IDs. Unknown values can cause the payment request to be rejected. Use campaignName and affiliateName instead.
Playground data shape
The Widget Playground starts with campaign, utm_source, and url rows to demonstrate generic custom metadata. The campaign key is not the dedicated Paysight campaign field. Use campaignName when you want Paysight campaign attribution, and use affiliateName for affiliate or traffic-source attribution.
Updating at runtime
UTM capture pattern
data values must be strings (Record<string, string>). Coerce numbers before passing.
Distinction from session IDs