Home Integration Methods PremiumWebCart IPN integration

PremiumWebCart IPN integration

PremiumWebCart IPN is a very useful utility, which enables you not only to track transaction data, but also customer details.
Create custom product/bundle links
In PremiumWebCart admin, navigate to Cart Setting> Advance Integration> Pre-populating Checkout Page and read instructions on how to generate a product link, and based on the instructions, get product/bundle ID. The final link should
look like this:

Using the following code, you can create a "Buy Now" link, presetting up custom1 field with tracking value:
As you can see, there is a special ID in the link (id="affCookieLinkId") - this is needed. You have to add it to the link, otherwise the tracking won't work.

Remember the link in the code is just an example, use your own one. In case you already use custom1 field for something else, you can use other custom fields - up to 5.
Setup the IPN URL
Next step is to setup the URL where IPN notifications will be sent to. It is URL of your Post Affiliate Pro plugin:
Navigate to Cart Setting> Advance Integration> PWC IPN and enter the URL into the field. Do not forget to save it.
Enable the plugin
The last step is to enable your "Premium Web Cart IPN handling" plugin in your Post Affiliate Pro. Configure it in case you want to create an affiliate account right after successful payment, or in case you want to handle orders in a special way.
That's it.
Do not forget to integrate your site with the click tracking code, so the sale tracking can work.