const token = checkout.paymentTokens.value[0];
const cvvInput = token.getPaymentElement({
hostedForm: {
cvvPlaceholder: '123',
cvv4Placeholder: '1234',
cvvInputLabel: 'Security code',
cvv4InputLabel: 'Security code',
cvvRequiredError: 'Enter your card security code.',
cvvFormatError: 'Enter a valid security code.',
cvvCannotBeEmptyError: 'Security code cannot be empty.',
cvvTooltipText: 'The 3–4 digit code on the back (or front for Amex).'
}
});
cvvInput.appendTo(document.getElementById("form"));