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

<Expandable defaultOpen title="Parameters">
  <ResponseField name="enabled" type="boolean" required>
    True if tokenization should be enabled, false otherwise.
  </ResponseField>
</Expandable>
