Home Integration Methods BluePay

BluePay

To integrate with BluePay, you need BluePay plugin for PAP4.
1
Plugin configuration in PAP
First you have to activate "Bluepay" plugin in PAP (You can find plugins in Start -> Plugins).
After the activation, you have to configure two values in plugin configuration:
 - Custom value separator
 - Variable: Bluepay will send PAPvisitorId to PAP tracking through this variable.

2
HTML form
You can use BluePay Manager to generate HTML payment form.
In form generator you have to set "Approval URL" to "www.yoursite.com/affiliate/plugins//Bluepay/bluepay.php".
Example of generated form:


3
HTML form - Variable value
Regarding how you configured plugin in PAP, you have to set correct value to form variable which you choose in configuration. Value of variable have to contain its value, than value separator and after the separator will be PAPvisitorId.
Example: If you set custom value separator to "||", and variable to "ORDER_ID", your HTML form should look like this:
Most important is correct value of ORDER_ID variable
<input type=hidden name="ORDER_ID" value="myOrderId||<?php echo $_COOKIE['PAPVisitorId']; ?>">

NOTE: your html button needs to be placed into a .php file in order to have the <?php echo  $_COOKIE['PAPVisitorId']; ?>  work.