Installing PayPal buttons

17 replies
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?
#buttons #installing #paypal
  • Profile picture of the author laurie390
    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:-)
    Signature

    Laurie Neumann
    Huge PLR Closeout Sale at Quality Internet Marketing PLR

    {{ DiscussionBoard.errors[3743232].message }}
  • Profile picture of the author timpears
    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.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[3743268].message }}
  • Profile picture of the author AgentP
    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.
    {{ DiscussionBoard.errors[3743685].message }}
    • Profile picture of the author timpears
      Originally Posted by AgentP View Post

      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.
      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?
      Signature

      Tim Pears

      {{ DiscussionBoard.errors[3743745].message }}
  • Profile picture of the author timpears
    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.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[3744974].message }}
    • Originally Posted by timpears View Post

      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.
      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.
      {{ DiscussionBoard.errors[3745073].message }}
      • Profile picture of the author Devid Farah
        Tim,

        How did you do to create a paypal button?

        I mean,have you followed the 3 step process to create a "buy now" button on paypal site?

        If yes,paypal then gives you a code...what is that code?

        Let me know so i can help you.

        Devid
        {{ DiscussionBoard.errors[3745133].message }}
        • Profile picture of the author TG12
          Wow, How do people get by without knowing the basics. You need to look up the basic structure of a HTML page.

          You need to place that "code" between the <body> and </body> tags. This is where your page content goes. BASICS!!!! Near the top of bottom depending on where you want your button to sit.
          Signature
          Vaoser Link Ninja Software
          DHV Delivery Systems FAILING at online dating???
          {{ DiscussionBoard.errors[3745257].message }}
          • Profile picture of the author timpears
            Originally Posted by TG12 View Post

            Wow, How do people get by without knowing the basics. You need to look up the basic structure of a HTML page.

            You need to place that "code" between the <body> and </body> tags. This is where your page content goes. BASICS!!!! Near the top of bottom depending on where you want your button to sit.
            Well this people got by because I have not been building web sites. I am just now learning. Maybe you mama taught you when you were in diapers. But mine didn't. I am just now learning the basics.

            Thanks for your help. I would have thought that someone like you that knew EVERYTHING could have been a little more help, rather than trying to make me look small. Hope you feel better now you have shown us how impressive you are.
            Signature

            Tim Pears

            {{ DiscussionBoard.errors[3747034].message }}
        • Profile picture of the author timpears
          Originally Posted by Devid Farah View Post

          Tim,

          How did you do to create a paypal button?

          I mean,have you followed the 3 step process to create a "buy now" button on paypal site?

          If yes,paypal then gives you a code...what is that code?

          Let me know so i can help you.

          Devid
          David,

          The code is in the post above this one, where I couldn't follow the instructions that Lokki08 gave me.

          I am using my own button if that matters.
          Signature

          Tim Pears

          {{ DiscussionBoard.errors[3747001].message }}
  • Profile picture of the author David Allen
    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
    {{ DiscussionBoard.errors[3745307].message }}
  • Profile picture of the author Lokki08
    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
    {{ DiscussionBoard.errors[3746246].message }}
    • Profile picture of the author timpears
      Originally Posted by Lokki08 View Post

      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
      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.
      Signature

      Tim Pears

      {{ DiscussionBoard.errors[3746933].message }}
  • Profile picture of the author timpears
    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.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[3747235].message }}
    • Profile picture of the author Devid Farah
      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
      {{ DiscussionBoard.errors[3747462].message }}
    • Profile picture of the author David Allen
      Originally Posted by timpears View Post

      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.
      Glad you got it sorted.
      {{ DiscussionBoard.errors[3748863].message }}
  • {{ DiscussionBoard.errors[3753193].message }}

Trending Topics