An online payment service provider.

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=">

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

<form method='POST' action=''>
<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="">
<input type="hidden" name="order_id" value="7357">
<input type="hidden" name="cancel_url" value="">
<input type="hidden" name="callback_url" value="">
<input type="hidden" name="success_url" value=">
<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="http://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.