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

# setPaymentCreationEnabled

> [!NOTE]
>
> Alias of the setTokenizationEnabled() method.

```ts TS theme={"dark"}
const universalCheckout = await Primer.showUniversalCheckout(
  clientToken,
  options
);

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

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

## Parameters

**Parameters**

**enabled** `boolean` *required*

True if payment creation should be enabled, false otherwise.


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