Cannot get a Donate button to work

richbrown
Contributor
Contributor

Cannot get a Donate button to work.

Clicking on the Donate button does not submit the form.  Form Code:

<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="XDTTRP46N3GCQ" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

sharpiemarker
Esteemed Advisor
Esteemed Advisor

@richbrown 

 

It's working for me. Something wrong with your webpage code independent of the button code. Nothing wrong with the code button itself. I tried it with a blank webpage and as an email url. It works.

 

Try it. Copy and paste this on a blank text file and save it and name it test.html and open it in a web browser.

 

<html lang="en">
<head>
<title>PayPal button</title>
</head>

<body>
<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="XDTTRP46N3GCQ" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
</body>
</html>

 

 

 

 

Or try it as an email url link:

https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XDTTRP46N3GCQ


Kudos & Solved are greatly appreciated. 🙂

View solution in original post

Login to Me Too
3 REPLIES 3
Solved

sharpiemarker
Esteemed Advisor
Esteemed Advisor

@richbrown 

 

It's working for me. Something wrong with your webpage code independent of the button code. Nothing wrong with the code button itself. I tried it with a blank webpage and as an email url. It works.

 

Try it. Copy and paste this on a blank text file and save it and name it test.html and open it in a web browser.

 

<html lang="en">
<head>
<title>PayPal button</title>
</head>

<body>
<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="XDTTRP46N3GCQ" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
</body>
</html>

 

 

 

 

Or try it as an email url link:

https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XDTTRP46N3GCQ


Kudos & Solved are greatly appreciated. 🙂
Login to Me Too

richbrown
Contributor
Contributor

Your solutions work. However, this is an Angular application and for some reason that disables the form. I'll have to run that down.

 

Thanks for your rapid response.

 

Rich <removed>

Login to Me Too

richbrown
Contributor
Contributor

An Angular issue. Adding the Angular Directive ngNoForm solves the problem

 

Thanks for your help. I should have tried your solutions before I posted the question.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.