Installing PayPal buttons

by 17 replies
20
I created some PayPal buttons for a web site I am working on and now I have the code. But I don't know what to do with it. I know what to do with a link when I want someone to click a button for something, but I have no idea what to do with this code. I am not even sure what kind of code it is.

So I guess I am revealing how ignorant I am in this area. I guess I am still a nube. But can someone help me and explain what I do with this code?
#programming #buttons #installing #paypal
  • Hi Tim,

    What are you using to create the site? I used front page for one of my sites, and with that, all I do is put the cursor in the place I want the button, switch to "code" and paste the code in from paypal.

    I'm not sure if that helps or not:-)
  • I forgot to tell folks what I am using to create the site and I was coming here to do that.

    I am using Dreamweaver. When I try to enter code into an object, I get a dialog that allows me to enter a URL. So what I am not getting is I have a buy now button, if I highlight that and paste in the code, the button will disappear I think.

    It has been a long time since I used FrontPage, so I don't remember much about how that worked.
  • If you're using dreamweaver you have the option of seeing the working window in 3 modes, design, split or html. The paypal code needs to be placed in the html mode.
    • [1] reply
    • Yes, but I am not sure how it is entered.

      Here is my code:
      <img
      style="width: 296px; height: 100px;" alt="buy now"
      src="graphics/BuyNowRed.gif">

      That is my button, so where does the nine lines of code go?
  • Gosh, no one can tell me how to do this? I can't find any useful information on the web, so i thought for sure a Warrior could help me.
    • [1] reply
    • You would go to your HTML view, and add the code where you want the button to appear. Just copy and paste all the lines of code at the place where you want it to appear.
      • [1] reply
  • It may be that the code from PayPal includes the button, in which case you could use that. It may also be that you wish to use your own graphic instead of the PayPal button.

    If it's the latter, paste the PayPal code (blank out any URLs that may be there to your site for thankyou pages etc) here and I can advise how to alter the code to use your button.

    David
  • Hi Tim

    Once you have chosen your PayPal buttons options you have two options to get code of.

    1. PayPal Button Code For Email (URL)
    2. PayPal Button Code For Website

    Mostly, PayPal code for email is used when you have already designed button but you want to link it.

    PayPal code for website is used when you don't have any buttons at all. So now the question is how to use it?

    Since you have already image button code it mean that you need to use the email version of code because it doesn't contain any graphical button, just plain code.

    Here's what you have to do:

    1. Copy your PayPal button code for email to Notepad
    2. Add following piece of tag <a href="Place PayPal button code URL here">before your <img> code.
    3. Add following ending tag </a> after <img> code

    So it would look like this:

    <a href="Place here PayPal button email code"><img style="width: 296px; height: 100px;" alt="buy now" src="graphics/BuyNowRed.gif"></a>

    Then you should have ready made button with PayPal feature so that if somebody clicks that button he/she will be directed to PayPal payment page of your product.

    Hope this helps
    • [1] reply
    • I am not sure I am following you correctly as when I did this it just distorted the page and didn't work

      Here is my button code:
      <img
      style="width: 296px; height: 100px;" alt="buy now"
      src="graphics/BuyNowRed.gif">

      Here is my code from PayPal:
      <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="cmd" value="_s-xclick">
      <input type="hidden" name="hosted_button_id" value="ZH8G7CKFTJS5S">
      <input type="image" src="http://bestlinkbuildingservice.net/graphics/buynowred.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
      <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1">
      </form>

      Can you show me how it should look after it is finished. I have six more like this.
  • I got it figured out. David set me on the right path and I was able to fumble around till I got it working.

    The think I didn't understand is that I didn't need my own button to link the code to. The code already contained the button within it. So I took out the button and replaced it with the code, and it works.

    Thanks to all that helped.
    • [2] replies
    • Exactly Tim.

      When you create a paypal button you will receive the standard paypal code(below):


      <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="cmd" value="_s-xclick">
      <input type="hidden" name="hosted_button_id" value="DT3UCRFTL3CWU">
      <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
      <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
      </form>


      Remember to replace that written in bold with the name or URL of your own button.


      Glad you solved,
      all the best,
      Devid
    • Glad you got it sorted.
  • Banned
    [DELETED]
  • Great that you solved the problem

Next Topics on Trending Feed

  • 20

    I created some PayPal buttons for a web site I am working on and now I have the code. But I don't know what to do with it. I know what to do with a link when I want someone to click a button for something, but I have no idea what to do with this code. I am not even sure what kind of code it is. So I guess I am revealing how ignorant I am in this area. I guess I am still a nube. But can someone help me and explain what I do with this code?