PayPal Configuration

  • Unknown's avatar

    I am having trouble getting WordPress to correctly display the code for my PayPal buttons. I have read the directions on the WP support site. There are some differences between the PayPal directions and the WP directions. For example, WP directs users to choose a donate button. However, I want to add the “buy now” button. I understand that the PayPal code doesn’t work well on WP so I used the e-mail link as directed. When I follow the steps, the link appears and not the button.
    Blog url: http://butterflypages.wordpress.com/

    The blog I need help with is: (visible only to logged in users)

  • Hi there – would you mind pasting the PayPal code you’re trying to add in a Pastebin so I can have a peek? Thanks!

  • Unknown's avatar

    The e-mail code is:

    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=283KC6JZ622ME

    One other quick question that you might not be able to assist…
    I want to create a buy me button for each item I have for sale. Would that prevent someone from purchasing multiple items? It seems to me that I need to create a cart feature, but I am not sure if I can do that with out a custom web template.

    Thanks!

  • Unknown's avatar

    I just discovered information on how to create the carts experience with PayPal. Just want to make sure I can do it on my site with WP. This may have changed my question somewhat. I guess if I cannot then knowing how to creat e the buttons or what is going wrong would be nice.

  • Hi there, to answer your first question, one way to use the PayPal link you provided above is to use it in a link, which you then wrap around a button graphic, for example.

    Example:
    <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=283KC6JZ622ME"><img src="your-button-url.png"></a>

    Replace your-button-url.png with the full path to a button image that you’ve uploaded to your Media Library.

    You can also do this in the Visual Editor by uploading your image and adding the PayPal URL in the Link field.

    You could also create a text button instead, and style the button using CSS.

    Example:

    <a class="button" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=283KC6JZ622ME">Buy now</a>

    Then in your custom CSS, style the button code as you like, for example:

    .button {
      background-color: #000;
      padding: 5px;
      color: #fff;
    }

    I just discovered information on how to create the carts experience with PayPal.

    As long as the PayPal code doesn’t use any types that are not permitted on WordPress.com (such as JavaScript, iframe, form, input, etc.) you can use it on your site. You could put a link to the cart, if it’s just a plain link, in a sidebar or header widget, for example.

    You can learn more about the types of code you can use on WordPress.com.

    Let me know if you have any other questions.

  • Unknown's avatar

    So I have to save a paypal button to my media library? So the link itself does not become a button, it just leads to a payments page?
    I think I understand. I’ll give it a try.

  • Basically, yes. The link is just a link, but the button itself is the image file.

  • Unknown's avatar

    Where do I get the button image? Paypal’s website doesn’t mention an image. Should I just make up an image to use for the payment button?

  • Unknown's avatar

    Should I google a button image, add it to my media library and insert the URL from paypal in the link field?

  • You can right-click on any of the images offered by PayPal to download it, or use the code we have provided at http://en.support.wordpress.com/paypal/ if you’re looking for Donate buttons.

  • Just to add to what macmanx said above:

    Paypal’s website doesn’t mention an image.

    That’s probably because the link they provide is intended to be sent by email. When you use the link as a “button” as we’re suggesting here, you do need to wrap it around either text or an image, as in the examples above.

    PayPal provides a few “buy now” buttons you can download from here – the new versions are in the right column.

    https://www.paypal.com/newlogobuttons/

  • The topic ‘PayPal Configuration’ is closed to new replies.