PayPal Buttons not working on Google Sites

georgew77
Contributor
Contributor

PayPal Buttons recently quite working on our Google Sites hosted site.  Has anybody else run into this problem?  And how have you been able to resolve it?

Login to Me Too
30 REPLIES 30
Solved

DaveM1
Contributor
Contributor

Ok, for those still looking for a solution, I've manged to get it working with the "New" Google sites.

Take your button code and stick it in an embed box.....then....

 

Then edit the first line of code as follows:

Old Code: method="post" target="_top" Replace with: method="post" target="_blank"

Google just doesn't like you overriding their pages with other pages. This will open PayPal in a new tab.

Login to Me Too

vincentrh
Member
Member

Thank you Dave for your solution.

Nota bene : it works also with the 'old' Google sites.

 

Vincent

Login to Me Too

Fercho17
Member
Member

Thank you DaveM1:

 

I worked for me. 

 

 

Login to Me Too

kiwanis
Contributor
Contributor

THANK YOU DaveM1 !

 

Your altered line    method="post" target="_blank"

worked like a charm !

 

Gary

Login to Me Too

wbschwab
New Community Member

You're a lifesaver, DaveM1! Thanks much!

Login to Me Too

life saverrrr

Login to Me Too

AngieClifford
Contributor
Contributor

Sadly, this did not work for me.  Any other ideas?

Login to Me Too

DaveM1
Contributor
Contributor

Hmm.

Still works over here.

 

Thing I'd check in order I'd check them:

  1. Turn off any add blockers that may interfere with new tabs being opened (Really  they shouldn't, but never hurts to check)
  2. Try a different browser and see if it's the browser you're using.
  3. Make sure your button code is freshly generated with Paypal's button generator: https://paypal.com/buttons
  4. Make sure you are only changing "_top" to "_blank" and not removing other code from your button.

99% of the time I've personally found that I forgot to close a " or something similar in the code.  Usually it's a typo.

 

Hope that you can find it using the above.

 

 

 

Login to Me Too

AngieClifford
Contributor
Contributor

Mine works in Safari but not Chrome or Firefox and I've tried it on a Mac and a PC.  I have to go into Google Incognito to even get the code to embed.  I've changed it to method="post" target="_blank" only deleting the _top and changing it to _blank.

Login to Me Too

DaveM1
Contributor
Contributor

If you would like, I can try and visit the page you are having trouble with from my Win10 Chrome browser.

I understand it can be a privacy issue, so I understand if you'd rather not.

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.