1.

Activate Netbilling in PAP

  1. Go to Plugins
  2. Find Netbilling integration plugin and click Activate

2.

Configure Netbilling Account

  • Login into your Netbilling Account
    2. Go to Netbilling Menu -> Setup -> Configuration and set Postback CGI URL to http://URL_TO_PostAffiliatePro/plugins/Netbilling/netbilling.php

    This option will apply as default setting for all buttons. If you generate buttons for more sites(other than your primary site) be sure that your Postback CGI URL config param is set for every of these sites (specific site settings: Netbilling Menu -> Setup -> Site tags -> your_site -> Config).

  • 3.

    Generate button code

    1. Make sure that forms you are using has set Request User Data Prefix to EcomUserData (form config: Menu -> Form editor -> your_form)
      2. Go to Menu->Button editor.
    2. Click Generate button

    4.

    Add code to every Netbilling button form

    <input type="hidden" name="Ecom_UserData_Pap" value="" id="pap_9ns6b41z" />
    <script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
    </script>
    <script type="text/javascript">
       PostAffTracker.writeCookieToCustomField('pap_9ns6b41z');
    </script>
    
    

    5.

    Example

    <!-- begin of netbilling form -->
    <form method="post" action="https://secure.netbilling.com/gw/native/interactive2.2" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="Ecom_Ezic_AccountAndSitetag" value="104901072025:GM_ESCAPE" />
    <input type="hidden" name="Ecom_Ezic_PaymentFormId" value="110524088704" />
    <input type="hidden" name="Ecom_Cost_Total" value="150.00" />
    <input type="hidden" name="Ecom_Receipt_Description" value="123456" />
    <input type="hidden" name="Ecom_Ezic_Payment_AuthorizationType" value="SALE" />
    <input type="hidden" name="Ecom_Ezic_Fulfillment_ReturnMethod" value="GET" />
    <input type="hidden" name="Ecom_Ezic_Security_HashFields" value="Ecom_Cost_Total Ecom_Receipt_Description Ecom_Ezic_Payment_AuthorizationType Ecom_Ezic_PaymentFormId" />
    <input type="hidden" name="Ecom_Ezic_Security_HashValue_MD5" value="41b8004714dbffc790100824eeac8273" />
    ...
    <input type="hidden" name="Ecom_UserData_Pap" value="" id="pap_9ns6b41z" />
       <script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
       </script>
       <script type="text/javascript">
           PostAffTracker.writeCookieToCustomField('pap_9ns6b41z');
        </script>
    ...
    <input type="submit" name=".submit" value="Buy now!" />
    </form>
    <!-- end of netbilling form -->