Skip to main content

How do I carry out a test payment?

Testing payments through Nochex is an important process to check that everything has been integrated correctly. It also gives you a chance to see exactly what a customer would see when purchasing an item from your website. No money is transferred when the payments page or Nochex Widget is in test mode.

Note

It is not possible to use test mode for recurring or subscription payments.

Note

Always remember to remove the test values, when you want to accept live payments otherwise no real payments can be made.

Payment Page

To enable test mode you need to add the following extra parameters to the post made to the payments page:

test_transaction=100 test_success_url=http://yourdomain.com/successurl.html

Or you can add it to a payment link by adding:

&test_transaction=100&test_success_url=http://yourdomain.com/successurl.html to the end of the URL.

For example: https://secure.nochex.com/default.aspx&merchant_id=YourNochexEmail&amount=1.23&test_success_url=http://yourdomain.com/successurl.html&test_transaction=100

Nochex Widget

To enable test mode you need to add the following parameter to the configuration script

ncxField-test_transaction="true"

such as;

<form id="nochexForm" class="ncx-form" name="nochexForm">
<script id="ncx-config"
ncxField-api_key="nvk############################"
ncxField-merchant_id="primary@email.co.uk"
ncxField-amount="1.99"
ncxField-test_transaction="true"
ncxField-use_apc="true">
</script>
</form>

Please raise a support ticket containing details of the problem, error messages / logs, and print screens (If applicable).