Buy Now going nowhere

ScottPaul
New Community Member

After generating a Buy Now button and placing it on my page, the page just reloads itself when I click it.  It's not going to

https://www.paypal.com/cgi-bin/webscr.  I'm inserting this into a .NET ASPX web page.  Any ideas?

Login to Me Too
4 REPLIES 4

PP_MTS_Volker
PayPal Employee
PayPal Employee

Hi,

This is actually a common issue. aspx sites are built as a form. Unfortunately, our buttons are a form as well, and if you are pasting the button on the existing form, your site will always refresh. This is called nested forms. To resolve this issue you have two options.

 

1. Close the aspx form before the paypal button code starts. To do that have a look in the code and look for this line:

 

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

 and close the form before that line like this:

 

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

 Alternatively you could use the payment links instead of the HTML Version of the Buttons. To get the link for a button, open the button in your paypal account and then click on view code. You will see the HTML Code for the Button, please click now on the email tab and you will receive the link for that button.

Login to Me Too

JAM1958
Contributor
Contributor

 


@PP_MTS_Volker wrote:

Hi,

This is actually a common issue. aspx sites are built as a form. Unfortunately, our buttons are a form as well, and if you are pasting the button on the existing form, your site will always refresh. This is called nested forms. To resolve this issue you have two options.

 

1. Close the aspx form before the paypal button code starts. To do that have a look in the code and look for this line:

 

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

 and close the form before that line like this:

 

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

 Alternatively you could use the payment links instead of the HTML Version of the Buttons. To get the link for a button, open the button in your paypal account and then click on view code. You will see the HTML Code for the Button, please click now on the email tab and you will receive the link for that button.


Appreciate the tips, as I also have a paypal code that goes nowhere. It's being placed on a pagemodo form on facebook. So, I tried closing the form as you suggested, but still got a blank page. Your next option was to view the code then click on the email tab. WHERE is the email tab???

Does firefox have anything to do with this issue?


Will appreciate a speedy reply. Thanks in advance.

JulieSmiley Sad

Login to Me Too

MTS_MichaelL
PayPal Employee
PayPal Employee

Julie,

 

If you've added any interactive elements, you won't get the email tab (as they cannot be translated into the link format). Here is where you can see the tab:

 

 

I hope this helps.

 

Michael

Login to Me Too

MTS_MichaelL
PayPal Employee
PayPal Employee

Hi,

 

This is the case with nested forms (one form inside another) or incorrect action in the <form> tag. I recommend trying a payment link instead of the <form> button. It should solve both problems. If not, feel free to open a ticket at www.paypal.com/mts and send us the URL where we can test the page.

 

Regards,

Michael

MTS

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.