The integration method integrated payment forms of Internet Secure.

1.

Plugin activation

To be able to parse information sent from Internet Secure, you have to activate the Internet Secure plugin in your Post Affiliate Pro. You can find the plugin in Plugins section. After activation, please configure the plugin at least to specify which custom field will you use for tracking. In this example we are using xxxVar1. Internet Secure gives us the option to use 5 custom variables, so you can choose.

2.

Integration of payment form

Your payment buttons/forms code look like this:
<form name="form1" action="https://secure.internetsecure.com/process.cgi" method="get">
  <input type="hidden" name="MerchantNumber" value="123456" />
  <input type="hidden" name="language" value="English" />
  <input type="hidden" name="ReturnURL" value="http://www.yoursite.com/thanks.php" />
  <input type="hidden" name="Products" value="001,1|002,1" />
  <input type="submit" name="Submit" value="Check Out" />
</form>

To integrate it, you have to add this code to each form:

<input type="hidden" name="xxxVar1" value="" id="pap_dx8vc2s5" />
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

Remember, if you are already using xxxVar1 variable, you should use another one and set the same one in your Plugin configuration in Post Affiliate Pro.

Note:
If you have more than one payment form at a page, you can place the <script> part only once per whole page. The payment forms need <input> part only.

3.

Integrated form example 1

Here is an example of integrated form:

<form name="form1" action="https://secure.internetsecure.com/process.cgi" method="get">
  <input type="hidden" name="MerchantNumber" value="123456" />
  <input type="hidden" name="language" value="English" />
  <input type="hidden" name="ReturnURL" value="http://www.yoursite.com/thanks.php" />
  <input type="hidden" name="Products" value="001,1|002,1" />
  <input type="submit" name="Submit" value="Check Out" />

<input type="hidden" name="xxxVar1" value="" id="pap_dx8vc2s5" />
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

</form>

4.

Integrated form example 2

Here you are an example of more than one payment form at one page:

<form name="form1" action="https://secure.internetsecure.com/process.cgi" method="get">
  <input type="hidden" name="MerchantNumber" value="123456" />
  <input type="hidden" name="language" value="English" />
  <input type="hidden" name="ReturnURL" value="http://www.yoursite.com/thanks.php" />
  <input type="hidden" name="Products" value="001,1|002,1" />
  <input type="submit" name="Submit" value="Check Out" />

<input type="hidden" name="xxxVar1" value="" id="pap_dx8vc2s5" />

</form>

<form name="form1" action="https://secure.internetsecure.com/process.cgi" method="get">
  <input type="hidden" name="MerchantNumber" value="123456" />
  <input type="hidden" name="language" value="English" />
  <input type="hidden" name="ReturnURL" value="http://www.yoursite.com/thanks.php" />
  <input type="hidden" name="Products" value="004,1|005,1|006,1" />
  <input type="submit" name="Submit" value="Check Out" />

<input type="hidden" name="xxxVar1" value="" id="pap_dx8vc2s5" />

</form>

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

As you can see, the xxxVar1 variable is used per form, but the tracking script is there only once, for the whole page.

5.

Internet Secure setup

To finalize the integration, you have to set the Internet Secure configuration to notify Post Affiliate Pro about any payment. Login to your admin panel and follow these steps:

  1. Navigate to Export Script and then to Export Script Options
  2. Set Domain Name to domain of your PAP: http://URL_TO_PostAffiliatePro
  3. Set Web Page to: /plugins/ISecure/isecure.php
  4. Choose type of transactions you want to receive notifications for.
  5. You can set confirmation string, in that case you have to set the same one in plugin configuration in Post Affiliate Pro
  6. Finally set your alert email. It will issue an Alert Email to advise you that the export script has failed.
    That's it. Now your payments are integrated.


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