PayPal "Buy Now" Button links to PayPal homepage instead of service payment form on blogger post

CheyenneElla
Contributor
Contributor

http://cheyenneellafit.blogspot.com/2014/03/3-Day-Shakeology-Cleanse-Results-Whitney.html

 

I created a "Buy Now" button for this post using the PayPal generated code. I pasted the HTML code into the blogger HTML window for my post and the button appears properly, but when clicked, the button directs users to the PayPal website (https://www.paypal.com/cgi-bin/webscr) and not the payment form where they can "check out" and make a purchasee.  

 

What am I doing wrong? 

 

Thanks,

Cheyenne

Login to Me Too
7 REPLIES 7

snowshoe
Frequent Advisor
Frequent Advisor

You're missing two very important lines of code, the "command line" and the "hosted button id".   The "command line" tells PayPal what type of item button and function to do while the "hosted button id" is how PayPal knows that item button is associated with your PayPal Account.  Without those two lines of code, when you click on the Buy Now button, all you will get is the PayPal Login Screen.

 

Many HTML Editors, web sites and even ISP hosts sometimes don't play well with PayPal's item button code.  PayPal's item butto code is simply an HTML Form.  What you need to do is find out how your site blog or Editor or ISP host deals HTML Forms.  For example, some Editors have to be in a specific editing mode for working with HTML Forms.   Should you find out that your site blog will not accept Forms, then you would have to use the email or hyperlink version of the code.  The downside of doing that is that you can't use dropdown selections or text input options.

 

I suspect that your Editor may have stripped out those two lines of code although you copied it correctly. When the code was inserted into your web page, your Editor may have removed those two lines.

 

Go back your PayPal Account, My Saved Buttons and look at the item button code you generated.  You should see two lines of code that are similar to this:

<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXNNNXXXNNXXX">

 The value for the "hosted_button_id" will have a unique set of characters composed of letters and numbers.

 

If you look at the code you created, then compare that to the code you have on your web page, you will see that the two lines of code are missing.  

 

Login to Me Too

CheyenneElla
Contributor
Contributor

Thank you! I use blogger so I guess it is interfeing w/ the code. I used the email link instead and that seems to work just fine. Thanks again!

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

scotia1998
Contributor
Contributor

Hi, I'm having the same problem you had w/the PayPal button 😞 Could you please tell me how to use the email work-around you described? Thanks! Scottie

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

You can build your own Button Text Links from scratch or take advantage of the Online Button Creator within your PayPal Account.   After generating the button code online, select the "Email" tab to view the Text Link Code.   Note, the "Email" tab will not be available if have included dropdown selections or text boxes in your item button code.   This is because you cannot include dropdown selections or text boxes in a Text or Hyperlink.

Login to Me Too

scotia1998
Contributor
Contributor

Thanks much, will give this a try!

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

Haven't Found your Answer?

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