Results 1 to 9 of 9

Thread: PayPal IPN Help

  1. #1
    Join Date
    Apr 2009
    Posts
    6,388

    PayPal IPN Help

    Does anyone know if it is possible to setup multiple IPNs in PayPal?

  2. #2
    Join Date
    Nov 2007
    Location
    Dallas, TX
    Posts
    8,944
    I believe that it is limited to one IPN notification URL per account.

    That said, have you looked at using your IPN script to notify other scripts (e.g. data sharing)?

    -mike
    Mike G. - Limestone Networks - Account Specialist
    Cloud - Dedicated - Colocation - Premium Network - Passionate Support
    DDoS Protection Available - Reseller Program @LimestoneInc - 877.586.0555

  3. #3
    Join Date
    Apr 2009
    Posts
    6,388
    Quote Originally Posted by Mike - Limestone View Post
    I believe that it is limited to one IPN notification URL per account.

    That said, have you looked at using your IPN script to notify other scripts (e.g. data sharing)?

    -mike
    Not sure, can you forward me to a link? I saw some posts on some forum about it.

  4. #4
    Join Date
    Jul 2009
    Location
    UK
    Posts
    1,308
    Nope, afaik it only works for that one account..
    IPN's are sent when any activity happens to your account.

    Ie: you make a sale.

    as Mike said,
    If you were to put custom fields into your payment page and have the ipn script check for them then you can have the script do whatever you want..

    https://cms.paypal.com/uk/cgi-bin/?c...Implementation is quite handy to get started.

    Once you know what data paypal sends to your script you can then do whatever you want.

    id suggest playing with the paypal ipn sandbox to see what happens.
    Live Chat Support Software for your Business website - IMsupporting.com

  5. #5
    Join Date
    Apr 2009
    Posts
    6,388
    Quote Originally Posted by lynxus View Post
    Nope, afaik it only works for that one account..
    IPN's are sent when any activity happens to your account.

    Ie: you make a sale.

    as Mike said,
    If you were to put custom fields into your payment page and have the ipn script check for them then you can have the script do whatever you want..

    https://cms.paypal.com/uk/cgi-bin/?c...Implementation is quite handy to get started.

    Once you know what data paypal sends to your script you can then do whatever you want.

    id suggest playing with the paypal ipn sandbox to see what happens.
    That seems very difficult to setup. :/

  6. #6
    Join Date
    Jul 2009
    Location
    UK
    Posts
    1,308
    Quote Originally Posted by Zach Nelson View Post
    That seems very difficult to setup. :/
    Not really.

    Paypal will send your script a bunch of values..
    This is what MY ipn script pulls from paypal when a payment is received.


    You can then do whatever you want with em..

    ie:
    if ($item_name == "uberdooper2000") {
    // do something with the vars below
    }

    if ($item_name == "uberdooper3000") {
    // do somethingelse with the vars below
    }

    Code:
    // assign posted variables to local variables
    $item_name = $_POST['item_name'];
    $business = $_POST['business'];
    $item_number = $_POST['item_number'];
    $payment_status = $_POST['payment_status'];
    $mc_gross = $_POST['mc_gross'];
    $payment_currency = $_POST['mc_currency'];
    $txn_id = $_POST['txn_id'];
    $receiver_email = $_POST['receiver_email'];
    $receiver_id = $_POST['receiver_id'];
    $quantity = $_POST['quantity'];
    $num_cart_items = $_POST['num_cart_items'];
    $payment_date = $_POST['payment_date'];
    $first_name = $_POST['first_name'];
    $last_name = $_POST['last_name'];
    $payment_type = $_POST['payment_type'];
    $payment_status = $_POST['payment_status'];
    $payment_gross = $_POST['payment_gross'];
    $payment_fee = $_POST['payment_fee'];
    $settle_amount = $_POST['settle_amount'];
    $memo = $_POST['memo'];
    $payer_email = $_POST['payer_email'];
    $txn_type = $_POST['txn_type'];
    $payer_status = $_POST['payer_status'];
    $address_street = $_POST['address_street'];
    $address_city = $_POST['address_city'];
    $address_state = $_POST['address_state'];
    $address_zip = $_POST['address_zip'];
    $address_country = $_POST['address_country'];
    $address_status = $_POST['address_status'];
    $item_number = $_POST['item_number'];
    $tax = $_POST['tax'];
    $option_name1 = $_POST['option_name1'];
    $option_selection1 = $_POST['option_selection1'];
    $option_name2 = $_POST['option_name2'];
    $option_selection2 = $_POST['option_selection2'];
    $for_auction = $_POST['for_auction'];
    $invoice = $_POST['invoice'];
    $custom = $_POST['custom'];
    $notify_version = $_POST['notify_version'];
    $verify_sign = $_POST['verify_sign'];
    $payer_business_name = $_POST['payer_business_name'];
    $payer_id =$_POST['payer_id'];
    $mc_currency = $_POST['mc_currency'];
    $mc_fee = $_POST['mc_fee'];
    $exchange_rate = $_POST['exchange_rate'];
    $settle_currency  = $_POST['settle_currency'];
    $parent_txn_id  = $_POST['parent_txn_id'];
    $pending_reason = $_POST['pending_reason'];
    $reason_code = $_POST['reason_code'];
    Live Chat Support Software for your Business website - IMsupporting.com

  7. #7
    Join Date
    Jul 2009
    Location
    UK
    Posts
    1,308
    Things like:

    $option_name1 = $_POST['option_name1'];
    $option_selection1 = $_POST['option_selection1'];
    $option_name2 = $_POST['option_name2'];
    $option_selection2 = $_POST['option_selection2'];

    Can be changed on the payment form.

    So you can define certain things with them to make your script do different things..
    Live Chat Support Software for your Business website - IMsupporting.com

  8. #8
    Join Date
    Nov 2007
    Location
    Dallas, TX
    Posts
    8,944
    Zach, you may want to hire someone on rentacoder or elance to help. Especially with rentacoder, it may only be $10-20.

    Edit: rentacoder is now apparently known as vworker.com. I used to hire for projects on rentacoder back when it was rentacoder, and it was pretty good. I haven't used the now-renamed vworker.com, though.

    -mike
    Mike G. - Limestone Networks - Account Specialist
    Cloud - Dedicated - Colocation - Premium Network - Passionate Support
    DDoS Protection Available - Reseller Program @LimestoneInc - 877.586.0555

  9. #9
    Join Date
    Apr 2009
    Posts
    6,388
    Alright we'll take a look at it. Thanks for your help.

Similar Threads

  1. Paypal IPN
    By amelen in forum Running a Web Hosting Business
    Replies: 12
    Last Post: 12-05-2008, 01:22 PM
  2. Paypal IPN
    By jsquared in forum Programming Discussion
    Replies: 8
    Last Post: 08-24-2004, 09:26 AM
  3. PayPal IPN
    By Research Names in forum Ecommerce Hosting & Discussion
    Replies: 1
    Last Post: 02-17-2004, 04:32 AM
  4. HELP! Paypal IPN!
    By MEGaming in forum Employment / Job Offers
    Replies: 2
    Last Post: 02-14-2003, 05:09 PM
  5. HELP! Paypal IPN!
    By MEGaming in forum Programming Discussion
    Replies: 1
    Last Post: 02-14-2003, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •