How do I put variable features on my success page?


Sometimes it is helpful to have certain variables passed through to the success page so you can display them to your customer. 

For example you may wish to display the order number on the success page so customers can keep a record of this or a visual on your success page for completion.

One option would be to include a query string at the end of your success page URL, for example; if your success URL was http://yourdomain.com/success.html, you would include a query by adding something like http://yourdomain.com/success.html?name=customername&orderid=12345&description=Product

To learn more about how to create a POST to Nochex with the success URL read this article.

After your customer has completed the transaction and the success URL has been passed through successfully you can then catch the variables.

You can use code on your success page to capture the variables, verify and use the variables to display a confirmation message.

It is recommended to use our Automatic Payment Confirmation or Callback system to verify the payment amount paid by customers matches the amount on your order, update orders, etc; instead of using variables from the success url to update orders.

Please Wait!

Please wait... it will take a second!