in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Paypal IPN with two sites?

Last post 02-12-2009 10:15 AM by Naz. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-30-2008 12:42 AM

    Paypal IPN with two sites?

    Hello,

     I currently have a Paypal account with the IPN set to go to a website I have had for several years. I'm starting another smaller site that is the same company just a different DBA. It seems since the IPN is setup to go to the other site when someone pays on the Dash site it goes there instead sending the info to the dash site.

     My question is:

     On my original site I can clearly detect that the order is not an order from that site due to the order number so at that point could I somehow redirect the response to the dash site?

    Also exactly what should the IPN url be set to if I created a new Paypal account just for the Dash site?

  • 12-30-2008 7:00 PM In reply to

    Re: Paypal IPN with two sites?

    Okay I fixed this issue and wanted to inform everyone how.

     The paypal checkout button will except a value for notify_url so dash needed to pass the IPN url upon checkout for me. notify_url will override anything that is setup on the account already. I found this info here

    http://www.paypaldeveloper.com/pdn/board/message?board.id=ipn&thread.id=6963

    The first site uses the URL that is setup in the paypal profile under IPN URL

    Dash sends the IPN url upon checkout and it IPN for that transaction goes back to dash

    I added

    queryString.AppendFormat("&notify_url={0}", HttpUtility.UrlEncode(https://www.mywebsite.com/dashCommerce/paypal/ipnhandler.aspx));

    to PaypalServices.cs on line 260

    This should get a variable that is passed to CreateCartUrl that is retrieved from the provider maybe??  For now my site is hard coded. 

     

  • 02-12-2009 10:15 AM In reply to

    • Naz
    • Top 25 Contributor
    • Joined on 02-11-2008
    • Posts 71
    • dashCommerce Core Team

    Re: Paypal IPN with two sites?

    Thanks for the find gnomee2 i've added this feature to the current revision
    www.objectreference.net - My Blog
    www.vortexleather.com - My Leather clothing store

    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!
Page 1 of 1 (3 items)