Link to home
Start Free TrialLog in
Avatar of Kelly Martens
Kelly Martens

asked on

PayPal and the Web Browser Control

In my winforms .NET app I have a webbrowser control that I provide the code Paypal gave me for the button to have them make a purchase. Everything is fine until after they click on the button and it then informs them their "browser" is out of date and won't proceed. What can I do to this string to get them to PayPal site in this control?

WebBrowser1.DocumentText = "<form action=""https://www.paypal.com/cgi-bin/webscr"" method=""post"" target=""_top""> <input type=""hidden"" name=""cmd"" value=""_s-xclick""> <input type=""hidden"" name=""hosted_button_id"" value=""VXKQ9SM3HLK52""> <table> <tr><td><input type=""hidden"" name=""on0"" value=""Product Code"">Product Code</td></tr><tr><td><input type=""text"" name=""os0"" maxlength=""200""></td></tr> </table> <input type=""image"" src=""https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif"" border=""0"" name=""submit"" alt=""PayPal - The safer, easier way to pay online!""> <img alt="""" border=""0"" src=""https://www.paypalobjects.com/en_US/i/scr/pixel.gif"" width=""1"" height=""1""> </form> "

Open in new window

Avatar of John Gates, CISSP, CDPSE
John Gates, CISSP, CDPSE
Flag of United States of America image

What browser are they using?  Can you provide the site url?  When I browse to any of the urls I do not get a stop or can't proceed.

-J
Now on the other hand if they are using your browsercontrol in your program and you are not using .NET 4.5.1 or higher that could be contributing to the issue...  I am not sure as you have not given a lot of code to figure out completely what is going on.

-J
Avatar of Kelly Martens
Kelly Martens

ASKER

Thank you for taking the time to look at this. ok there really isn't much code to show then what I did. I dropped the web browser control onto the winform. Application Framework 4.6.1. Put the form code shown in the
DocumentText property of the first post. It shows up fine.
User generated image
THen it bombs when it gets clicked with the outdated message
User generated image
ASKER CERTIFIED SOLUTION
Avatar of Kelly Martens
Kelly Martens

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just hunting on the web for why it didn't work.