This example shows how to use the alternate Javascript methods for performing a Hosted Payments - Get HostedPaymentsAccountId action
The standard flow requires you to call into the javascript setup at page load, and then the Hosted Payments JS hooks in to the form submission to perform the action. In some cases this conflicts with other actions needing to take place.
In this flow you simply call into "launchFullsteamHostedPayments" when you need it to launch, and provide a callback method in the parameters object that you want to be called when the action completes.