Skip to main content

Documentation Index

Fetch the complete documentation index at: https://primer.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Enable or disable tokenization and payment creation. Use this if you would like to prevent users from paying because your side of the checkout is not valid.
TS
const universalCheckout = await Primer.showUniversalCheckout(
  clientToken,
  options
);

// Disable payment creation
universalCheckout.setTokenizationEnabled(false);

// Enable payment creation
universalCheckout.setTokenizationEnabled(true);

Parameters