–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.


This is an integration method with Nochex, the online payment service.

Modify your button forms

To start with the integration, you have to modify your button form code. You only need to add this line:

<input type="hidden" name="success_url" value="http://yourwebsite.com/success.php>

If you already use this, do not create a duplicate line. This is an example form:

<form method='POST' action='https://secure.nochex.com/'>
<input type="hidden" name="merchant_id" value="yournochexemail">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="description" value="Product 1">
<input type="hidden" name="billing_fullname" value="Test">
<input type="hidden" name="billing_address" value="Test Street, Test, TE55ST, UK">
<input type="hidden" name="email_address_sender" value="test@nochex.com">
<input type="hidden" name="order_id" value="7357">
<input type="hidden" name="cancel_url" value="http://yourwebsite.com/cancel.html">
<input type="hidden" name="callback_url" value="http://yourwebsite.com/callback.php">
<input type="hidden" name="success_url" value="http://yourwebite.com/success.php>
<input type="submit" name="submit">

Now, let’s move to success.html.

The ‘Thank you’ page

To track the transaction, you need to modify your success.php or create it to start registering commissions there. The code you need to have in the file is this:

$queryString = $_SERVER['QUERY_STRING'];

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo $amount; ?>');
sale.setOrderID('<?php echo $ordernumber; ?>');
sale.setProductID('<?php echo $description; ?>');

Please, insert the code to the HTML body only, not into the header or behind the whole page code.

Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.


Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call