Anyone having problems with Paypal buttons
Last Post 05/10/2010 9:42 AM by Pingle2009. 6 Replies.
Author Messages
John
Nuke Newbie
Nuke Newbie
Posts:7


--
04/16/2010 3:15 PM
    About two weeks ago, I got a report from a customer who said they were having problem with their Shopping Cart not going to paypal correctly.  It had been working fine for over a year so I did some checking and paypal has made some changes that affect a lot of sites.  The specific error is 500 Internal Server Error.
    • I upgraded his cart to the latest version (which wasn't listed with the project on the DNN site), that didn't work.
    • I tried changing both url's to https://www.paypal.com/cgi-bin/webscr as suggested on s post, that didn't work.
    • I tried using this method http://blogs.snapsis.com/PermaLink,...cc8eb.aspx to place a simple buy now button on the site, that didn't work either.
    • I finally put the code on a plain html page and that works fine so I don't think it's paypal at this point and think its DNN.

    Is anyone else having problems?  I can't believe I can't find more post or anything on this as I don't think this is an isolated event.  I have tested this on several sites and get the same error on all.  Any help or insight would be greatly appreciated.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    04/17/2010 4:30 PM
    I just checked a site I manage that uses a Dyanmic Forms page to link to Paypal. This site posts the transaction to https://www.paypal.com/us/cgi-bin/webscr without any problem.

    Can you identify the full URL that is being sent to Paypal from your DotNetNuke site? That will probably contain enough to diagnose the problem. If you can't see it directly, perhaps you can use Fiddler to see it.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Pingle2009
    Nuke Master
    Nuke Master
    Posts:186


    --
    05/06/2010 4:14 AM
    Like the original poster, I am also having problems adding a PayPal Buy Now button on my DNN (5.4.1) site. I'm just adding the button to a HTML module and I've checked the code actually works from a web page created using Notepad. The original button code simply refreshes the page on my site.

    I have tried all the methods suggested above but with no joy. I get the 500 Server Error message when using the amended code.

    Here are the tags containing URL's --

    < form action="https://www.paypal.com/cgi-bin/webscr" method="post" >

    < input type="image" border="0" src="https://www.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." >

    < img height="1" border="0" width="1" alt="" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" >

    Any help gratefully accepted.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    05/06/2010 5:28 AM
    DotNetNuke pages are web forms, so you can have a form inside of a form.  That is why your button fails.

    Fortunately there is a simple fix outlined here by John Mitchell.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Pingle2009
    Nuke Master
    Nuke Master
    Posts:186


    --
    05/07/2010 5:27 AM
    Thanks for the info, good to know the reason why it fails.

    I had already tried the solution in that link but it failed PayPal validation even though the PaPal Developers site confirmed my code was OK.

    I took the route of adding a third party PayPal buton module and the orginal button code works!




    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/07/2010 5:53 AM
    There is also another simple alternative:

    When you create your PayPal Buy Now button, when it creates the form code, there is also the option for email code.

    This will just be a link that you can paste into an email.

    You could create your own "Buy Now" image and then link that image using the email link, this will take you to the PayPal site for the user to fill out their details.
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Pingle2009
    Nuke Master
    Nuke Master
    Posts:186


    --
    05/10/2010 9:42 AM
    Ah, thanks for that, Lee, I will try that next time!


    ---