A flexible, secure, and bank neutral online & mobile credit card payment processing solution.
This is integration method with Beanstream – payment gateway, merchant account provider and online credit card processing service.
Integrate your payment form
The first step is to integrate your payment form – the integration works thanks to custom fields (ref1 to ref5). In this example, we are working with ref1 field, so if you are already using it for something else, just use any other custom field available.
First thing to do is to add a hidden field for the custom variable and then to add the tracking script which reads referrer affiliate value. This is the code, you can copy it and paste it to your payment form directly:
Save your changes.
Track the response
Your payment form should have a approvedPage param with a URL defined. It is the place where responses are sent to. That is also the place where we will track commissions.
The example below it a PHP code, so if your approvedPage script is ASP or something else, try to adjust it:
<?php include_once('PapApi.class.php'); // ------ correct path to your API file !!! $saleTracker = new Pap_Api_SaleTracker('https://URL_TO_PostAffiliatePro/scripts/sale.php'); $saleTracker->setAccountId('Account_ID'); $sale = $saleTracker->createSale(); $sale->setTotalCost($_POST['trnAmount']); $sale->setOrderID($_POST['trnOrderNumber']); $saleTracker->register(); ?>
Please correct the include path to connect to your API file, which is in each Post Affiliate Pro installation. You can find it in api/ directory.
In case you are tracking sales on a different server than the one where your Post Affiliate Pro is installed at, then you have to copy the API file and paste it to the server with the tracking script above…
When you are done, save your changes and you are done… The sale tracking integration has just been completed.
Do not forget to integrate your website with the click tracking code to make it all working correctly.