CommerceGate provides a complete set of online billing solutions that can be instantly used to sell your services to your costumers quickly and safely. The integration with it is pretty simple thanks to built-in plugin in Post Affiliate Pro.

It handles automatic affiliate signup, declining of affiliate in case they stopped paying for membership. It supports lifetime commissions and per product ordering.

1.

Form integration

The first step is to integrate the payment form. Each form is pointing to commercegate secure URL:
https://secure.commercegate.com/payment/ccform.php?cid=XXXXX&wid=YYYYY
where XXXXX is your commercegate account ID and YYYYY is a special code for your (validated) website.

The integration is based on commercegate option of using custom data. In case you are using op1 already, use op2 or op3. In our example, we are using op1. Add this code to the code of your payment form:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.writeVisitorIdToAttribute('vd35c0e5hw','action','op1');
</script>

As you can see, the function writeVisitorIdToAttribute() uses a value vd35c0e5hw and also op1. The value vd35c0e5hw is used to identify the form, so your payment form has to have an ID:
<form id="vd35c0e5hw" ...

The op1 value is the custom value. In case you need to change one of the two values mentioned above, you can do it.

2.

Plugin activation

Second step is to activate CommerceGate plugin in your Post Affiliate Pro. Just navigate to Plugins section, activate and configure it.

3.

Setup of notifications

The last step is to setup Callbacks in your CommerceGate admin panel. Navigate to Gateway Configuration section and use the following link as a value for Callback URL:

http://URL_TO_PostAffiliatePro/plugins/CommerceGate/commercegate.php

In case you are already using the Callback URL field for another URL, just ask commercegate technical team to configure another URL for you - provide them with your plugin URL (from above). They will help you. 
Finally, set the Callback type to XML. That is all you have to do.


Do not forget to integrate your site with the click tracking code.