To integrate with PremiumWebCart, you need PremiumWebCart plugin for PAP4.

This plugin does NOT support PremiumWebCart post upsells. If you want to track upsells as well, you have to check the other integration "PremiumWebCart IPN integration".

1.

Plugin configuration in PAP4

Activate plugin in Start -> Plugins

In plugin configuration set Merchant ID and API Signature

2.

Thankyou page

Login to premiumwebcart.com

  1. Set Thank You Page URL
  2. Navigate to Cart Settings -> Basic Options -> Default Checkout URLs
  3. Set URL of yout Thank You Page script

  4. Obtain Thank You Page script:

  5. Navigate to Cart Settings -> Advanced Integration

  6. Copy Thank You Page script and paste it to your thank you page

  7. Thank you page have to contain this code:

<html>
<head>
	<script type='text/javascript' src='https://this.is.url.to.your.thankyoupage.script'></script>
	<script type="text/javascript" id='trackingScript'>
		document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" + (("https:" == document.location.protocol) ? "https://" : "http://") + "URL_TO_PostAffiliatePro/scripts/trackjs.js%27 type=%27text/javascript%27%3E%3C/script%3E")); 
	</script>
</head>
<body>
	<input type="hidden" id="customHiddenInput" /> 
	 
	<script type="text/javascript">
		PostAffTracker.writeCookieToCustomField('customHiddenInput');
		
		var trackingScriptElement = document.createElement('script');
		trackingScriptElement.type = 'text/javascript';
		 
		trackingScriptElement.src =  (("https:" == document.location.protocol) ? "https://" : "http://")   "URL_TO_PostAffiliatePro/plugins/PremiumWebCart/premiumwebcart.php?visitorId="   document.getElementById('customHiddenInput').value   "&order_unique_id="   order_unique_id;    
		 scriptElement = document.getElementById('trackingScript');
		 scriptElement.parentNode.insertBefore(trackingScriptElement, scriptElement.nextSibling);
		 
	</script>
	<h1>Thank you page.</h1>
</body>
</html>


If you wish to track discounted price or any other variables, then in
your PremiumWebcart admin panel navigate to Cart Settings> Advanced
Integration to see all the different variables which you can pass to your
thank you page.