Skip to main content

HTML SDK Configuration Field Attributes

<netvalve-tokenfields> HTMl Element

These are the allowed attributes:

AttributeTypeDescription
formIdstringOptional. Provide the form element ID.
submitButtonIdstringOptional. Provide the submit button element ID.
stylestringOptional. Global CSS styles for all fields.
invalidStylesstringOptional. CSS styles applied when fields are invalid.
interceptFormSubmitboolean string (default “true”)Optional. By default the form will intercept the form submission, and if tokenization succeeds, it will call form.submit().
Set it to false if you would like to have control over the form submission, and perform tokenization using the tokenizeFields method on the netvalve-tokenfields web component. See Form Submission.

<netvalve-cardnumber>, <netvalve-expiry>, <netvalve-cvv> HTMl Elements

These are the allowed attributes:

AttributeTypeDescription
stylestringOptional. CSS styles specific to this field.

Example Usage

<netvalve-tokenfields
formId="payment-form"
submitButtonId="submit-btn"
style="font-size: 16px; color: #333;"
invalidStyles="border-color: red; color: red;">
<form id="payment-form">
<netvalve-cardnumber style="padding: 10px; border-radius: 4px;"></netvalve-cardnumber>
<netvalve-cvv style="padding: 10px; border-radius: 4px;"></netvalve-cvv>
<netvalve-expiry style="padding: 10px; border-radius: 4px;"></netvalve-expiry>
<button id="submit-btn" type="submit">Pay</button>
</form>
</netvalve-tokenfields>