Internet Secure integration
A complete solution includes everything your business needs to accept credit cards, including Visa, MasterCard, American Express and Discover in two currencies (Canadian and US dollars).
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.
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="https://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.
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="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
</form>
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="https://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.
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:
- Navigate to Export Script and then to Export Script Options
- Set Domain Name to domain of your PAP: https://URL_TO_PostAffiliatePro
- Set Web Page to: /plugins/ISecure/isecure.php
- Choose type of transactions you want to receive notifications for.
- You can set confirmation string, in that case you have to set the same one in plugin configuration in Post Affiliate Pro
- 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.