SoEasyPay integration
SoEasyPay is a payment gateway, where the whole payment happens on themerchants webserver. When the merchant has all the details of thepayment including card number, cvv etc, he queries our gateway serverthat gives back as answer whether the payment has been accepted by thebank, and the merchant tells the customer accordingly afterwards.
Integration
All that is needed, is to display following code after the payment has been authorized by the SoEasyPay server:
<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('XXXXXXXXXXX');
sale.setOrderID('XXXXXXXXXXX');
sale.setProductID('XXXXXXXXXXX');
PostAffTracker.register();
</script>
where the values XXXXXX should be replaced with correct values, whichhave been already gathered before request was sent to SoEasyPay server:
- TotalCost (mandatory for % commissions) – price of the product
- OrderID (optional) – can be your unique generated order ID to cross-check the sale.
- ProductID (optional) – the ID of the product bought.
All fields are optional, but without TotalCost system will be not able to compute percentage commissions.
Also, ProductID is required if you plan to use Force choosing commission by product ID.
This is all that is required. Now whenever there’s sale, the saletracking script sale.php is called, and it will generate commission forthe affiliate.