Need help copying PayPal buttons via browser to a redesigned site
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm launching a website for a client today and I had a last minute need to copy their PayPal buttons from their old site to their new site.
I'm running into a snag in that when I use the browser's View Source feature to copy the code from the old site (which I don't have direct access to) and paste it into the page on the new website, the button on the new website doesn't do anything when clicked.
Unfortunately, I don't have access to their PayPal account because they're all out of the office and not responding to any emails this weekend.
Is there a domain dependency that PayPal's button checks before allowing the button to do its thing? I was thinking it was some script that I was missing in the <head> tag but there doesn't appear to be any script there on the old site. Just the buttons lower on the page.
Here's the snippet of code I'm trying to paste:
<input onclick="submitform('ctl00_IWS_WH_CPH_Content_PayPalControl1', '\x3cform id\x3d\x22ctl00_IWS_WH_CPH_Content_PayPalControl1_form\x22 target\x3d\x22paypal\x22 action\x3d\x22https\x3a\x2f\x2fwww.paypal.com\x2fcgi-bin\x2fwebscr\x22 method\x3d\x22post\x22\x3e\x3c\x2fform\x3e'); return false;" type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
I've also tried this:
<span id="ctl00_IWS_WH_CPH_Content_PayPalControl1" xmlns:iws="iws" style="float:none;margin-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;text-align:left;display:inline-block;"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="ZS7HQ8JM83Q36"> <input onclick="submitform('ctl00_IWS_WH_CPH_Content_PayPalControl1', '\x3cform id\x3d\x22ctl00_IWS_WH_CPH_Content_PayPalControl1_form\x22 target\x3d\x22paypal\x22 action\x3d\x22https\x3a\x2f\x2fwww.paypal.com\x2fcgi-bin\x2fwebscr\x22 method\x3d\x22post\x22\x3e\x3c\x2fform\x3e'); return false;" type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_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"> </span>
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- PayPal have railroaded my account in to the wrong type!!! in Getting started!
- Paypal Donate button not working in certain browsers in About Business
- Paypal website does not display properly on Chrome in About Settings
- Buy Now button takes user to different place depending on browser in About Business
- Sandbox Subscribe Button Broken in About Business