Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dukesy 5 posts 35 karma points
    May 27, 2013 @ 02:26
    Dukesy
    0

    Paypal button problem...form??

    Hi Guys,

    Trying to add a paypal button to a website (using Umbraco 4) and having the issue of it just refreshing when clicked and not doing anything else. I understand there are problems with forms within a form etc? I've read quite a few forum posts/solutions and tried a few things with the button code without any luck.

    Wondering if anyone can help?

    I can get around my site for basic things (updates etc) but fairly novice with any serious coding..

    Thanks,

     

    Nick

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 27, 2013 @ 10:06
    Alex Skrypnyk
    0

    Hi Nick,

    Do you have UpdatePanel on your page ?

    THanks,

    Alex

  • Dukesy 5 posts 35 karma points
    May 27, 2013 @ 11:10
    Dukesy
    0

    Hey Alex,

    Thanks for the reply mate. Umm don't think so? Had a bit of a look...where would that be?

    Nick

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 27, 2013 @ 11:25
    Alex Skrypnyk
    0

    What type of Paypal button do you use? Could you give the code ?

    Alex

  • Dukesy 5 posts 35 karma points
    May 27, 2013 @ 11:27
    Dukesy
    0

    Here you go mate......

     

    <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="X2XJBBVJW53AJ">
    <table>
    <tr><td><input type="hidden" name="on0" value="Choose Postage Option">Choose Postage Option</td></tr><tr><td><select name="os0">
     <option value="'Ain't Coming Back To You' CD + postage within Australia">'Ain't Coming Back To You' CD + postage within Australia $17.00 AUD</option>
     <option value="'Ain't Coming Back To You' CD + postage outside Australia">'Ain't Coming Back To You' CD + postage outside Australia $20.00 AUD</option>
    </select> </td></tr>
    </table>
    <input type="hidden" name="currency_code" value="AUD">
    <input type="image" src="https://www.paypalobjects.com/en_AU/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.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1">
    </form>

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 27, 2013 @ 11:29
    Alex Skrypnyk
    0

    This code didn't work properly because it is in the basic asp.net form. You have to create post to the https://www.paypal.com/cgi-bin/webscr manually or create page without <form runat="server"></form> and post this form )

    Alex

  • Dukesy 5 posts 35 karma points
    May 27, 2013 @ 11:34
    Dukesy
    0

    Thanks Alex.

    Sorry to sound dumb but how do I do either of those? Just remove the form tags? or?

    Nick

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 27, 2013 @ 11:36
  • Dukesy 5 posts 35 karma points
    May 27, 2013 @ 11:43
    Dukesy
    0

    It worked! Thanks so much Alex!

    Now I just have to work out the code to get Paypal to open in a new window and I'm good.

    Thanks again mate :)

    Nick

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 27, 2013 @ 11:45
    Alex Skrypnyk
    0

    You are welcome ) 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies