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

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

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

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

## Parameters

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