• Resolved laurelbj

    (@laurelbj)


    Hi,

    I want to add a “Donate” button and used the code that PayPal generated but if you click on the button it does not take you to the correct page for donating. It takes you to the log in page for PayPal.

    I called PayPal and was told that WordPress requires some special widget in order to have a PayPal button work.

    Please tell me what I need to do to get the button to work.

    https://entertainmentexplosion.org/

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter laurelbj

    (@laurelbj)

    If this is in the wrong forum, please tell me which forum I should put this.

    Thank you.

    You shouldn’t need anything special to use the code for the button. Where did you get the code from the PayPal site – from your user page where it has options to generate button code for you?

    Thread Starter laurelbj

    (@laurelbj)

    Yes, and when it didn’t work, I called PayPay and gave the tech the code and he said it was correct and that WordPress requires some kind of widget for it to work.

    Hmmm, I’ve put that kind of code in a regular page without problems, but it’s certainly easy to put it in a widget. Just go to Appearance > Widgets and put a text widget in a sidebar location. Then add your code.

    Oh one other thing – when you added it before, did you use the text editor and not switch to visual (that can corrupt code).

    Thread Starter laurelbj

    (@laurelbj)

    I almost always work in text. I put it in while in the text editor.

    That’s good – just wanted to rule that one out. But I did compare the code on your page to some I used recently to test a PP button and mine is a bit longer – here’s yours and then mine:

    <form target="_top" method="post" action="https://www.paypal.com/cgi-bin/webscr">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <br>
    <img width="1" height="1" border="0" alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
    </form>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="8M42NVXXXX2ZG">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_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">
    </form>

    EDIT – I did change the code in mine – in the value field just to remove identifying info since it’s not a live site yet.

    Thread Starter laurelbj

    (@laurelbj)

    Verrrry interesting. I went back and retrieved the code and put it in again. It worked. Then I remembered your comment about using the text editor. There was a big space between the text and the button. Rather than going and changing the CSS, I had been lazy and just did backspace backspace in visual to pretty it up. I copied my original button code on to a word doc and the repeated the backspace backspace and compared the code to the original. The code for the button had been scrambled. Teach me to be lazy!

    Thread Starter laurelbj

    (@laurelbj)

    Thank you for your help. All is well now.

    LOL – well, in any case, I’m glad it was a pretty simple fix. BTW, be careful about using Word for code – as it will cause problems too sometimes. Better to use a text editor.

    Thread Starter laurelbj

    (@laurelbj)

    I was just using word to hold the code. I don’t use it as a text editor. But thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How do I get the PayPal button to work?’ is closed to new replies.