> ## 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.

# setTokenizationEnabled

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 TS theme={"dark"}
const universalCheckout = await Primer.showUniversalCheckout(
  clientToken,
  options
);

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

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

## Parameters

**Parameters**

**enabled** `boolean` *required*

True if tokenization should be enabled, false otherwise.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.