returnURL attribute of the WebSession object. (This is generally a dynamically generated page that intersperses Subscribe API calls with HTML to be sent to the browser.)
If a failure occurs when HOA stores the form data, HOA redirects the customer’s browser to the page specified in the WebSession object’s errorURL attribute. (This is also a dynamically generated page hosted on your server, but which in this case is used to notify your customer of a failure, and its causes.) If you do not specify the errorURL attribute, HOA will use the returnURL for redirection upon failure.
To work with the Subscribe API and your success and failure pages:
- When HOA redirects to the success or failure pages, it passes the
WebSessionobject’sVID. Use thisWebSessionVidto make afinalize()call on theWebSessionVidobject. Upon finalization, HOA internally makes the call specified in themethoddata member of the correspondingWebSessionVidobject, creates the desired object or objects on the Vindicia server, and updates theWebSessionVidobject with the call’s results. This updatedWebSessionVidobject is available to you in the response to yourfinalize()call. - When creating a success page, extract the non-Vindicia form data submitted by the customer by examining the
WebSessionobject’spostValuesdata member. - On the success page, fetch the object created by the API call made by HOA. For example, if your
WebSessionobject’smethoddata member is set toAutoBill.update, after finalization of theWebSession, HOA creates anAutoBillobject. Fetch that object with theWebSessionobject’sVIDby callingAutoBill.fetchByWebSessionVid(). Similar methods are available for theAccount,Transaction, andPaymentMethodobjects. You may then include information from these objects on your success page.

