Load the Hosted Payment Page
When your customer is ready to enter their payment details, load the Hosted Payment Page. To do this, add a button to your checkout page that sends a POST request to our gateway. When we receive the POST request, the Hosted Payment Page loads and the customer can submit their payment details.
Note: The Hosted Payment Page doesn’t return a transaction type in the transaction response. Because you can run sales, run pre-authorizations, and save a customer’s payment details, we recommend that you record the transaction type in your system.
Before you begin
If you’ve already integrated with Hosted Payment Pages run a sale, the request parameters for running a pre-authorization are the same as the parameters for running a sale, but the URLs are different.
Send a POST request to load the Hosted Payment Page
To load the page, send a POST request to the Pre-authorization Page URL.
Request parameters
Note: You can send additional optional parameters to enhance your request. For more information about what you can add, go to Optional Parameters.
To create the body of your request, use the following parameters:
Example request
Errors
INVALID HASH
If we can’t authenticate your request, the Hosted Payment Page displays INVALID HASH in plain text. Check that you have set up your HASH correctly. For more information about the hash, go to Authenticate your requests.
Validation Errors
The Hosted Payment Page runs basic validation checks on the customer’s input. If the customer enters incorrect information, for example, a card number that is too short, the page displays an error message and prompts the customer to correct the information.
Your integration doesn’t need to handle these validation errors because the Hosted Payment Page handles these errors for you.