Membership Services and Paypal and User/Roles not working in 3.x

Last post 05-18-2006 10:17 PM by mikemog. 12 replies.

Sort Posts:

  • Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2005, 8:31 AM
    • Contributor
      6,080 point Contributor
    • rodneyjoyce
    • Member since 10-24-2002, 3:45 AM
    • London
    • Posts 1,216
    Hello

    Users are not being assigned to the Role they subscribe to on my website.

    Is there anything I have to do to tell PayPal to post back to the DNN PayPal IPN page? I see there is a file called
    PayPalIPN.aspx
    in the core - must I put this into the IPN address in Paypal?

    I searched these forums and can't seem to find anyone who has had the same problem and found a fix - people either seem to have this problem (with no futher posts or solution) OR they have just entered the PayPal details in the Admin section and it worked fine.

    I have read Scott's article on Subscription sites, but it doesn't go into any more detail on the URL return call from PayPal - is the address of the IPN sent in the URL to PayPal? Or do I have to set it up manually in my PP account? Comon people with membership websites - you must now if you did this or not ;)

    Rodney

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2005, 9:54 AM
    • Participant
      890 point Participant
    • midspot
    • Member since 01-02-2003, 12:02 PM
    • Posts 178
    this has been addressed in the forums before. I guess this is not "baked" into the core as expected. I use the "GDXM (sp?) Buy it now" module from snow to accomplish this role payment without hassle.
    Cheers
    midspot
  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2005, 11:02 AM
    • Contributor
      6,080 point Contributor
    • rodneyjoyce
    • Member since 10-24-2002, 3:45 AM
    • London
    • Posts 1,216
    Thanks midspot - I did a pretty intensive search and from what I could gather it was baked into the core. There is definitely a PayPalIPN page for the response and the code is in there to add the user to the role, so if it is not baked into the core is there a reason why it is not activated? Is this code in limbo for a later version?
    Here is the code in question (3.0.13) : \admin\Sales\PayPalIPN.aspx.vb

                        Dim objRequest As HttpWebRequest = CType(WebRequest.Create("https://www.paypal.com/cgi-bin/webscr"), HttpWebRequest)
                        objRequest.Method = "POST"
                        objRequest.ContentLength = strPost.Length
                        objRequest.ContentType = "application/x-www-form-urlencoded"

                        objStream = New StreamWriter(objRequest.GetRequestStream())
                        objStream.Write(strPost)
                        objStream.Close()
    ...
                          ' user subscription
                            Dim objRoleInfo As RoleInfo = objRoles.GetRole(intRoleID, intPortalID)
                            Dim rolePrice As Double = objRoleInfo.ServiceFee
                            If (rolePrice.ToString = dblAmount.ToString) And (HttpUtility.UrlDecode(strPayPalID.ToLower) = strProcessorID) Then
                                objRoles.UpdateService(intPortalID, intUserID, intRoleID, blnCancel)


    It would be great if this could be cleared up once and for all - possibly by a core team member because it seems to be confusing a lot of people... if this code doesn't work and this is not possible then it should not be in there confusing little old me ;)

    Rodney

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2005, 11:21 AM
    • Participant
      890 point Participant
    • midspot
    • Member since 01-02-2003, 12:02 PM
    • Posts 178
    I agree. It seems like some of the functionality is there but no one seems to have gotten it to work without writing some code. Would be interested as well to hear a core members thoughts...
    Cheers
    midspot
  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2005, 1:27 PM
    • Contributor
      2,850 point Contributor
    • Nocturnal
    • Member since 10-14-2003, 10:58 PM
    • Ridgefield, CT - USA
    • Posts 570
    I believe this was the top e-commerce use-case that people want to see implemented in DNN. Frankly it's a bit of a tease to see the Paypal and other providers listed but have no actual use for them. I hope I'm wrong with that assessment and that someone who knows better will explain how to use stock DNN to accept membership payments that automatically modify a member's status.
    SquadEngine for game squad and clan hosting
    GravityPoint for all other group portal hosting
    TungstenTech: DNN Site
  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2005, 2:22 PM
    • Contributor
      6,080 point Contributor
    • rodneyjoyce
    • Member since 10-24-2002, 3:45 AM
    • London
    • Posts 1,216
    It's just that some people have said they have got it working without any PayPal IPN return URL setup - as in they put the details in and it started working. I would love to hear from any of them if they had to do anything specifically in their PayPal acc.

    The only way I can imagine that PayPal called post the relevant success codes back to DNN would be if the information went out in the call to PayPal (eg. ReturnDNNIPNPageURL).. so PP would know where to send the result to...

    I await a core team answer patiently (I know 3.1 is around the corner ;)

    Rodney

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-19-2005, 7:36 PM
    • Contributor
      6,930 point Contributor
    • smcculloch
    • Member since 06-17-2002, 8:48 PM
    • Sydney, Australia
    • Posts 1,386
    To receive IPN notifications you need to enable it in your paypal account, and specify the URL in the settings page to send IPN notifications. Otherwise I think it uses your site's IP or something like that.
    Modules, Skins & Skin Objects @ www.smcculloch.net
  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-19-2005, 8:22 PM
    • Contributor
      6,080 point Contributor
    • rodneyjoyce
    • Member since 10-24-2002, 3:45 AM
    • London
    • Posts 1,216
     smcculloch wrote:
    To receive IPN notifications you need to enable it in your paypal account, and specify the URL in the settings page to send IPN notifications. Otherwise I think it uses your site's IP or something like that.

    Hmmm - can you elaborate a bit please Scott? I went to Paypal and there is Auto Return - is that it? (The IPN link takes you to the button creation screen - very hacky ;)

    Then do I paste this into the Auto Return screen?
    http://www.dumbtv.com/admin/sales/PayPalIPN.aspx

    and I presume I want Payment Data Transfer so it can tell the returning page whats happening? Is any of this documented anywhere - I can RTFM if it is? Also - testing is quite tricky - is there an easy way to test?
    Rodney

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-21-2005, 6:54 PM
    • Contributor
      6,080 point Contributor
    • rodneyjoyce
    • Member since 10-24-2002, 3:45 AM
    • London
    • Posts 1,216
    I did some debugging (still can't get IPN to work), and it seems that in Admin\Sales\PayPalSubscription it does this:

                            strPayPalURL += "&return=" & HTTPPOSTEncode("http://" & GetDomainName(Request))
                            strPayPalURL += "&cancel_return=" & HTTPPOSTEncode("http://" & GetDomainName(Request))
                            strPayPalURL += "&notify_url=" & HTTPPOSTEncode("http://" & GetDomainName(Request) &     "/admin/Sales/PayPalIPN.aspx")

    Implying that it sends out the return IPN URL - Scott- would you mind checking exactly which property on your PP account you had to set and to what value?


    Rodney

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-30-2005, 6:56 AM
    • Contributor
      6,080 point Contributor
    • rodneyjoyce
    • Member since 10-24-2002, 3:45 AM
    • London
    • Posts 1,216
    Well this is pretty wierd - my PayPal subscriptions have suddenly started working, and I have made no changes!
    The only thing that is different that I can spot is that my PayPal account is now Verified.
    I double checked PP and I don't have anything set for the IPN or return address... oh well I'll keep an eye on it

    Rodney

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    10-08-2005, 10:44 AM
    • Contributor
      5,389 point Contributor
    • IndianGuru
    • Member since 02-22-2004, 3:25 AM
    • India
    • Posts 1,091

    I notice that PayPalIPN.aspx uses the Form Variables ( Request.Form() )

    As per the Documentaion of PayPal, if you wish to receive the IPN, by Post ( Request.Form() ), you need to set send a varialbe called rm = 1 (may be an acronym fo ReturnMethod). However, I dont see it been set in the Subscription Post.

    Has it got to do with all above ?

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2006, 7:48 PM
    • Member
      10 point Member
    • mikemog
    • Member since 05-18-2006, 7:36 PM
    • Posts 2

    I have spent all day trying to get this to work in DNN 4.0.3 Still no luck. I have the url in the IPN setup as you do, payment is processed but no round trip appears to occur. Paypal sends me to an errant URL when I hit the continue or return to merchant...

    paypal account is business and verified. IPN - http://www.mysite.com/admin/sales/paypalipn.aspx

    http://http/www.mysite.com << the bad URL

    So you dont have IPN address? Is it still activated in your PP profile though?

    Can anyone tell me what is going on here? So promising yet so frustrating!

     

  • Re: Membership Services and Paypal and User/Roles not working in 3.x

    05-18-2006, 10:17 PM
    • Member
      10 point Member
    • mikemog
    • Member since 05-18-2006, 7:36 PM
    • Posts 2
    This same PP account works as advertised in a DNN 3.X deployment. All I can figure is that it is a bug in 4.x Can anyone confirm this?
Page 1 of 1 (13 items)