Paypal, Passing Additional Form Fields

Discussion in 'Payments processing' started by komra, Sep 26, 2003.

  1. komra

    komra Guest

    I am integrating aMember Pro with Affiliate Pro. We are using PayPal as the payment processor. I need to pass additional hidden form fields (at least input type="hidden" name="custom" value="bleh") through to PayPal and have PayPal pass them through to my Affiliate script, to correctly record the sale. After that, the Affiliate script will pass all the variables provided by PayPal to /plugins/payment/paypal/ipn.php script via GET (querystring)...

    The problem is, that if I add hidden form fields to the signup.html form, they are not being passed on to PayPal. Even the "custom" field that paypal considers a pass-through variable.

    Please advise how I can have additional form fields recognized by signup.php and passed on to PayPal...thanks
  2. alex-adm

    alex-adm Guest

    Customization required to pass "custom" field to PayPal. You can edit file amember/plugins/paypal/paypal.inc.php to do this.
    Or email us (support@cgi-central.net) FTP info and we will help.
  3. komra

    komra Guest

    Hi Alex,

    Thanks for the reponse. I am looking at paypal.inc.php and seeing that it looks like you are already using the custom field for the member_id. Is this critical to the correct function of the script?

    'custom' => $member_id,

    thanks
  4. alex-adm

    alex-adm Guest

    Yes, it can be changed, this code is not used at all.

Share This Page