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.

1234567
const universalCheckout = await Primer.showUniversalCheckout(clientToken, options)
// Disable payment creationuniversalCheckout.setTokenizationEnabled(false)
// Enable payment creationuniversalCheckout.setTokenizationEnabled(true)
ts
copy

Parameters

enabled
booleanRequired
True if tokenization should be enabled, false otherwise.