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

1.

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">
</form>

Now, let's move to success.html

2.

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:

<?php
$queryString = $_SERVER['QUERY_STRING'];
parse_str($queryString);
?>

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

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