Fusionquest Affiliate System and Paypal Recurring

Discussion in 'Integration' started by bill123, Apr 23, 2004.

  1. bill123

    bill123 New Member

    Joined:
    Sep 22, 2003
    Messages:
    38
    I am trying to integrate Amember, using Paypal_r with the Fusionquest affiliate system in a more secure manner than passing info back through the thanks.php page. The Fusionquest instructions for integrating with Paypal are as follows:

    Integrating With PayPal Web Accept
    The FusionQuest system integrates very closely and securely with PayPal payments through use of the PayPal Instant Payment Notification feature (IPN).

    You will first need to activate Instant Payment Notification for your PayPal account. To do this, log in to your PayPal account and click on the Profile tab. Then, under Selling Preferences, click on Instant Payment Notification Preferences. When that page comes up, click on the Edit button.

    You will see a check box and an input field. Check mark the box to activate Instant Payment Notification and enter the following URL in the field:

    http://www.fusionquest.com/cgi-bin/main/ipnint.cgi

    Finally, click Save and you are done.

    Note: If you already are using the IPN feature for another purpose, such as subscription password management, you can still do so. The FusionQuest system allows you to enter the URL of your management script and the PayPal IPN will be forwarded on to that script. To activate this feature, go ahead and change your IPN notification URL to the one listed above. Then, in your FusionQuest control panel, click on Program Profile. Toward the bottom, you will see PayPal IPN URL. Click edit for that item and enter the URL of your management script.

    Along with activating PayPal IPN, you will need to add the following code in the HEAD area of each page of your website that has PayPal Web Accept code on it:

    <script language="JavaScript" src="http://www.fusionquest.com/cgi-bin/main/printafltjs.js?user=xxx"></script>

    <script language="JavaScript">
    function setfq(form){
    form.custom.value="xxx_fq_"+aflt
    return true
    }
    </script>


    Next, you will need to modify all PayPal Web Accept codes on your website. Each Buy Now button, Add To Cart and Subscription payment form code will need to be modified as follows.

    Insert the following line into the form code for each button:

    <input type="hidden" name="custom">

    Finally, you will need to modify the <FORM> tag for each button. The following code must be entered into each <FORM> tag:

    onsubmit="return setfq(this)"



    The resulting <FORM> tag will look like this for each button:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="return setfq(this)">

    Recurring Commissions

    The beauty of this method of PayPal integration is that you are automatically set up to pay recurring commissions on PayPal subscription products. All you need to do to pay recurring commissions is go to your FusionQuest control panel, click on Program Profile, then click edit for the recurring commissions item. Enter a percentage in the appropriate box. That percentage will be applied to all subscription payments made by the customer. If the customer cancels their subscription, recurring payments to the affiliate automatically stop. PayPal sends the FusionQuest script a notice each time a subscription payment is made, which is then used to calculate the affiliate commission. If the subscription is cancelled, the notice is no longer sent by PayPal and no further commissions are earned by the affiliate.


    My questions:

    Would the "onsubmit" function work with Amember? Where would I put it?

    I assume adding the hidden custom field would not be a problem?

    Should I have the IPN forwarded from Amember to Fusionquest rather than
    what they suggest (Fusionquest to Amember in this case)? Seems like Amember to Fusionquest would be better because the account would be activated even if there is a glitch in the Fusionquest system.

    Do you see any show stoppers in this integration method?

    I like the idea of crediting affiliates for recurring payements and this is the main reason I'd like to integrate this way.

    thanks

    Bill
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Bill, I believe things are lot easier. Please send us
    FTP info and sample affiliate link to support@cgi-central.net and we will modify aMember Pro to work with your affiliate script.
  3. bill123

    bill123 New Member

    Joined:
    Sep 22, 2003
    Messages:
    38
    Alex -- I have emailed you the info.

    thanks

    Bill

Share This Page