Skip to main content
The vindici.setup() method takes one argument, options:
Setup options include the following:

formID

Required: string This is the ID of the form as shown below in this sample HTML:
and would look like this:

VindiciaServer

Optional: string Defaults to “secure.vindicia.com”
Use this if you want to point to Staging or QA.

hostedFields

Required: string This option has many sub objects, one for each input field that you want protected, and a “styles” sub object. View the list of allowed expiration date formats. View the list of allowed styles.

iframeHeightPadding

Optional: integer During vindicia.setup() the iframe height is adjusted to be the size of the input field inside of it. If any styles require some extra padding around the input box, this is the way to do that. It defaults to zero px.

onSubmitEvent

Optional: integer This is where you will define a function to be executed when the submit button is pressed. It can be anonymous or a call to an existing function.

onSubmitCompleteEvent

Optional: function If you do not want the browser to redirect to the success or error page, use this function. This allows you to perform a purely AJAX interaction. When the submit event to Vindicia is complete, this function will be called. It can be anonymous or a call to an existing function.

onVindiciaEvent

Optional: function To have access to realtime validation of iframe blur events, use this optional handler:
Parent topic:Implementing HOA with Hosted Fields