Home
Integration Methods
2Checkout INS integration
2Checkout INS integration
To integrate with 2Checkout using , you need 2Checkout plugin for PAP4.
1
Plugin configuration in PAP
First you have to activate "2Checkout" plugin in PAP (You can find plugins in Start -> Plugins).
2
HTML Sale form
You have to pass PAPvisitorId from your cookies to 2checkout. To do this fill html input field with name 'merchant_order_id' with PAPvisitorId. (you can use javascript method 'writeCookieToCustomField()')
Example of such input field in your sale form:
To fill it you can use this javascript method:
<script id="pap_x2s6df8d" src="http://www.yoursite.com/affiliate/scripts/salejs.php" type="text/javascript">
</script>
<script type="text/javascript">
PostAffTracker.writeCookieToCustomField('merchant_order_id');
</script>
3
2Checkout settings in vendor area
After you login to 2checkout, navigate to NOTOFICATIONS and set 'Order Created' notification URL to:
where 'http://www.yoursite.com/affiliate/' is a directory with your PAP4 installation.
Tip: If you want to use recurring commissions you have to activate 'Recurring commissions' feature.