This is integration of payment gateway Platnosci (platnosci.pl) by inserting special code into thank you page defined in admin panel at platnosci.pl

1.

Setting up

Before integration, note that you need to have some PHP "thank you page" at the same server as where you have your shop buttons.
First, login to admin panel at platnosci.pl then navigate to My shops> "Shop name"> List of payment points> "Point name" - and setup UrlPositive to your web "thank you page"" and append following code to the link

?total=%amountCS%&ord_id=%orderId%

%amountCS% is variable for total cost and %orderId% is for order ID generated by platnosci.pl

You can use these additional variables if you need:
%transId% - identifier of a new transaction created in Platnosci.pl application
%posId% - pos_id values (can be used as category ID for registering product ID)
%payType% - pay_type value
%sessionId% - session_id values
%amountPS% - amount values - comma as a separator
%error% - error number, it is only used for UrlNegative

2.

Modifying the Thank you page

Now, each success sale will be redirected to this thank you page. This is the code for your thank you page to process proper sale commission (insert it between HTML tags <body> and </body>):


<script type="text/javascript">
var sale = PostAffTracker.createSale();;
sale.setTotalCost('<?php echo $_GET['total']; ?>');
sale.setOrderID('<?php echo $_GET['ord_id']; ?>');
PostAffTracker.register();
</script>

If you used any other parameter, do not forget to get it into the sale tacking code too.