Affiliate Software Documentation

Commission Integration with Paypal

Paypal Created Buttons (buy now or shopping cart)

To integrate the affiliate software with Paypal Standard Buttons, follow these steps:

Buy Now and Subscription Buttons Made on Paypal Site

  1. You will have to enable IPN or Instant Payment Notification on your Paypal account and set the IPN URL to your domain name.
  2. If you are creating buttons on Paypal's website, you can integrate the affiliate software into your Paypal buttons like so:

        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="XXXXXXXXXX">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        <!-- INTEGRATION CODE -->
        <input type="hidden" name="notify_url" value="http://www.yourdomain.com/affiliates/sale/paypal/" />    
        <script language="JavaScript" type="text/javascript" src="http://www.yourdomain.com/affiliates/js/track/custom/"></script>    
        <!-- END INTEGRATION CODE --> 
       
        </form>
        
  3. You can now copy and paste the Paypal code to your web page.

Thank-you Page Integration

If you want to use a thank-you php page and integrate the Paypal code onto that page, you can do the following. This can work if you have lots of Paypal buttons already on your site and don't want to edit each button individually.

  1. If you are using Paypal buttons created on Paypal's site, you will need to add the following when creating the button:
    rm=2
  2. Add that option under the Customize Advance Features area.
  3. Make sure to also set the Take Customers to this URL when they finish checkout and have it point to your thank-you page. The thank-you page is where you would add your integration code for the affiliate software. Make sure it is a .php page, for example: thankyou.php
  4. Create your button.
  5. Once that is done, open up your thankyou.php page and add the following code:
    <img src="http://www.yourdomain.com/affiliates/sale/amount/<?=$_POST[''mc_gross'']?>/trans_id/<?=$_POST[''transid'']?>" border="0" height="1" width="1" />
  6. Save your thankyou.php page.

Paypal Subscription Payments (Subscriptions Not Created At Paypal's Site)

In order to integrate the affiliate software with Paypal subscription payments, You will have to enable IPN or Instant Payment Notification on your Paypal account.

  1. First, make sure you don't have recurring commissions enabled. You can check the setting in Programs > Manage Programs, under the Program Info > Commission Settings area. Look for the Recur Commissions field and set it to 0 (zero)
  2. Below is an example Paypal subscription button that uses the custom and notify_url fields.  If you have customized implementation of your Paypal subscription buttons, let us know and we can integrate the software with yours for a nominal fee.

Here is some sample code:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it''s fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<input type="hidden" name="business" value="paypal@domain.com" />
<input type="hidden" name="item_name" value="test subscription" />
<input type="hidden" name="item_number" value="1001" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="bn" value="PP-SubscriptionsBF" />
<input type="hidden" name="a3" value="1.00" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="D" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="srt" value="2" /> <!-- INTEGRATION CODE --> <input type="hidden" name="notify_url" value="http://www.yourdomain.com/affiliates/sale/paypal/" />
<script language="JavaScript" type="text/javascript" src="http://www.yourdomain.com/affiliates/js/track/custom/"></script> <!-- END INTEGRATION CODE --> </form>