This is an integration method for Paysite Cash - secure payment and shared affiliation platform. It uses the Backoffice confirmation URL so the sale commission can be registered to a proper affiliate of PAP.

1.

Setting up the processing file

Login to your merchant panel and navigate to Plugins section. The first step is to activate the plugin 'PaySiteCash'. When active, login to your admin panel of  PaySiteCash. Navigate to your Credit Card menu and create a site (or select a created one; to modify general settings, navigate to General parameters). What you have to do is to setup the "Backoffice confirmation url". Please use this URL (its the URL of plugin you activated):

http://URL_TO_PostAffiliatePro/plugins/PaySiteCash/paysitecash.php

Save your changes and continue with next steps.

2.

Generate button code

For now, we setup file to receive the proper data. Now, we have to make buttons to send it. Paysite offers your the "link generator". You can easily create HTML form with button code.
Get back to site options and click on "Payment url generator". Setup all needed parameters. The code you will get looks like this:

<table width="400" border="0" align="center" cellpadding="0" cellspacing="5">
  <tr>
    <td>
      <center>Credit Card Secured Payment</center>
    </td>
  </tr>
  <tr>
    <td align="center">
      <form method="post" action="https://billing.paysite-cash.biz">
        <input type="hidden" name="site" value="1234" />
        <input type="hidden" name="montant" value="11" />
        <input type="hidden" name="devise" value="EUR" />
        <input type="hidden" name="test" value="1" />
        <input type="image" src="http://www.paysite-cash.biz/images/boutons/85x31_rond_us.jpg" border="0" name="submit" alt="Paysite Cash secured payment" />
</script>
      </form>
    </td>
  </tr>
  <tr>
    <td>
      <center>
        <a href="https://billing.paysite-cash.biz/customers/?site=2619" target="_blank">Cardholder Support</a>
      </center>
    </td>
  </tr>
</table>

To send all the needed info to the plugin URL we already set, you have to add some code into the form.

3.

Integrate the button

The code which has to be added is here, see the three new lines below the 'devise' line):

<table width="400" border="0" align="center" cellpadding="0" cellspacing="5">
  <tr>
    <td>
      <center>Credit Card Secured Payment</center>
    </td>
  </tr>
  <tr>
    <td align="center">
      <form method="post" action="https://billing.paysite-cash.biz">
        <input type="hidden" name="site" value="2619" />
        <input type="hidden" name="montant" value="11" />
        <input type="hidden" name="devise" value="EUR" />

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

        <input type="image" src="http://www.paysite-cash.biz/images/boutons/85x31_rond_us.jpg" border="0" name="submit" alt="Paysite Cash secured payment" />
      </form>
    </td>
  </tr>
  <tr>
    <td>
      <center>
        <a href="https://billing.paysite-cash.biz/customers/?site=2619" target="_blank">Cardholder Support</a>
      </center>
    </td>
  </tr>
</table>

If you will have any problems with testing, add this part of code:
<input type="hidden" name="debug" value="1" />
place it over </form> tag.

Now, any sale that was referred by affiliate, will be tracked. Do not forget to integrate your pages with the click tracking code as well, to make it all working.