Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: PayPal and IPN

  1. #1
    Join Date
    May 2005
    Location
    Tunbridge Wells, UK
    Posts
    93
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default PayPal and IPN

    Does anyone out there use IPN for Paypal payments on any sites hosted on RFH?

    I am using an ASP.NET script as supplied in the Paypal SDK to manage the IPN transaction, but the script is failing.

    When I looked up the error it is to do with certificates and the way the ASPNET service account is configured on the server. I am wondering if this is an RFH issue or maybe that I am just dong something wrong.

    Thanks, David.

  2. #2
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    I have used it, but with PHP and without ssl. It did work.

  3. #3
    Join Date
    Oct 2005
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I know nothing about Paypal but RF is running a medium trust configuration. I'm not sure the Paypal API would be allowed to talk to Paypal in that configuration. Have you got any exception dumps of the failure as I may be able to help more?

  4. #4
    Join Date
    May 2005
    Location
    Tunbridge Wells, UK
    Posts
    93
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Using the standard ASP.NET sample code supplied on Paypal I get the following error

    System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.
    at System.Net.HttpWebRequest.CheckFinalStatus()
    at System.Net.HttpWebRequest.EndGetRequestStream(IAsy ncResult asyncResult)
    at System.Net.HttpWebRequest.GetRequestStream()
    at EveryoneSayCheese.IpnCheeseHandler.Page_Load(Objec t sender, EventArgs e)

    The line of code that fails is:

    StreamReader stIn = new StreamReader(req.GetResponse().GetResponseStream() );

    The paypal forums are littered with people with the same problem. Some people use the same sample code without problem. The host configuration seems to be critical.

    Some are linking to here as a possible solution

    I tried using a plain ASP page for the paypal processing script but then that is also failing to do with the XML Parser. Again, another host configuration thing.

    Now I am investigating a PHP solution and I have even fewer hairs on my head.

    Its getting silly. :crying:

  5. #5
    Join Date
    Feb 2004
    Posts
    4,901
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by Viking
    I tried using a plain ASP page for the paypal processing script but then that is also failing to do with the XML Parser. Again, another host configuration thing.
    You shouldnt have any problems with ASP?
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  6. #6
    Join Date
    Oct 2005
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is Paypal IPN a SOAP request or some proprietary crap?

  7. #7
    Join Date
    May 2005
    Location
    Tunbridge Wells, UK
    Posts
    93
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by Warren Ashcroft
    You shouldnt have any problems with ASP?
    Unfortunately I do.

    The error I am getting is:


    msxml3.dllerror '80072efd'
    A connection with the server could not be established /paypal.asp, line 24

    The code that is failing is here :

    set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
    objHttp.open "POST", "
    https://www.sandbox.paypal.com/cgi-bin/webscr", false
    objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
    objHttp.Send str


    Various searches have suggested that msxml3.dll is the XML parser :crying:

  8. #8
    Join Date
    Feb 2004
    Posts
    4,901
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Try changing MSXML2.ServerXMLHTTP to MSXML2.ServerXMLHTTP.4.0

    I have had issues with MSXML and HTTPS calls in the past... Usually its caused because the MSXML HTTP engine is powered by Internet Explorer and when you connect to an HTTPS site you get that popup "You are about to connect to a secure site" in the virtual windows session.

    Other times its caused by some client side SSL certificate problem...
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  9. #9
    Join Date
    May 2005
    Location
    Tunbridge Wells, UK
    Posts
    93
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Thanks for that Warren, but unfortunately I now get a slighly different error

    msxml4.dll error '80072efd'
    A connection with the server could not be established

    Its msxml4 rather than msxml3 now. Error code remains the same.

    Any ideas?

  10. #10
    Join Date
    Feb 2004
    Posts
    4,901
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Try Microsoft.XMLHTTP

    (I just want to get a list of all the errors the objects return)
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Paypal Control
    By Viking in forum ASP.NET
    Replies: 10
    Last Post: 1st April 2006, 09:26 AM
  2. PayPal IPN and CubeCart
    By nick in forum E-Commerce/Shopping Cart Applications
    Replies: 11
    Last Post: 14th March 2006, 03:23 PM
  3. 2checkout vs. Paypal
    By terraqueotenaz in forum Garble
    Replies: 0
    Last Post: 19th January 2005, 04:38 AM

Bookmarks

Posting Permissions

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