Skip to main content
If you want a purely Ajax interaction, in which the browser does not redirect after form submission, use onSubmitCompleteEvent in your options and HOA with Hosted Fields will not redirect. (If you leave onSubmitCompleteEvent out of the options, redirect will occur.) In a purely Ajax interaction, when the customer clicks the Submit button in the parent window form an Ajax call submits all of the form fields back to Vindicia. Upon completion, there is typically a redirect to a Success or Error page. Place code similar to the following in your options and there will be no redirect. Instead, your function finishCheckout will be called after the Submit to Vindicia completes.