PayPal button code not working...

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/4/2009 9:22:19 PM
Gravatar
Total Posts 9

PayPal button code not working...

I'm trying to place a simple PayPal "Donate" button in a charity/non-profit web site. I'm currently using the PayPal feature that creates the button code for me (I'm not a dev). When I place their button code into the HTML Content control in MP, the link doesn't seem to do anything. Any secrets to getting this going?  I've read a little about setting up the commerce piece but that seems like overkill if I'm willing to have the page shoot over to PayPal's checkout app (preferably in a separate window but it's ok if it is in the same window).

TIA...

Darrin

11/5/2009 5:26:15 AM
Gravatar
Total Posts 18439

Re: PayPal button code not working...

Hi,

The problem is that the button code they generate for you uses an html form. This cannot work in ASP.NET, we can only have one form on the page in ASP.NET and there is already a form there.

The solution is to just use a link with an image rather than a form. PayPal can generate one of these for you as well but it will be listed as buttons for email or something like that. ie the same kind of link you use to put paypal in an email can work in a web page. This is how the PayPal Donate button at the top of this site is configured, its just a link, not a form.

Hope it helps,

Joe

11/5/2009 3:17:10 PM
Gravatar
Total Posts 9

Re: PayPal button code not working...

Joe,

Bingo!!  Laughing   Simple stuff...rookie mistake!

Thank you!!!!

Darrin

11/5/2009 3:20:40 PM
Gravatar
Total Posts 18439

Re: PayPal button code not working...

Hey Darrin,

Many thanks for the beers! Much appreciated.

Cheers,

Joe

11/13/2009 11:55:13 AM
Gravatar
Total Posts 4

Re: PayPal button code not working...

Hi Joe and Darrin.

I also ran into this problem a couple of days ago. I have to admit I am new at this. I found a number of solutions to this issue of getting the PayPal buy it now button to work in due to forms nested in a form. To help people in the future I will post the links here. One solution is a link to a page where a guy by the name of James Bryd has created a converter to convert the button is found here http://www.nerdymusings.com/LPMTool.asp?TOOL=PayPalConvert the code to create it is here http://www.nerdymusings.com/LPMArticle.asp?ID=29 . I also found an interesting solution here by Jeremy Scheider to toggle the html form on and off http://jerschneid.blogspot.com/2007/03/hide-form-tag-but-leave-content.html . Lastely on codersbarn where I found reference Jeremy's page in the posts someone mention inserting a <form> </form> above the button code. Not sure why it worked but it did and so far no other issues to report. There were a lot of good ideas on dealing with this here http://www.codersbarn.com/post/Solution-to-ASPNET-Form---PayPal-Problem.aspx Sorry for the lengthy message. Hope this helps others in the future.

My 2 cents is it seems odd that PayPal has not provided this information to support their product. Cool

You must sign in to post in the forums. This thread is closed to new posts.