<< Home

Button not directing to paypal

Use this forum for issues related to TriniTronic's Nice PayPal Button Plugin.

Moderator: jamesSBT

Button not directing to paypal

Postby Sparkyrowe » Thu Jul 12, 2012 4:33 am

Hi,

I'm using Joomla 1.7.3 just downloaded the Paypal button plugin and it is all set up within an article and the button is showing but when I click on it it just reloads the same page again, it doesn't driect me to a paypal screen?

Thanks

Mark Rowe
Sparkyrowe
Lithos
Lithos
 
Posts: 1
Joined: Thu Jul 12, 2012 4:20 am

Re: Button not directing to paypal

Postby Michael » Thu Jul 12, 2012 2:42 pm

Hi Mark,

That's not normal Nice PayPal Button behavior. Is it possible for me to take a look at the actual button? It may help me to find some clues as to why this is happening?

~ All the best
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Re: Button not directing to paypal

Postby Chris31 » Fri Jul 20, 2012 2:57 am

Hello, I have 2 buttons on same page, one "donate" who work fine and one "buy" don't work (like Mark).
When I click on button "buy" page reload, that's all !

My config : Jomla 2.5.6 and Nice Paypal 2.90

Code: Select all
{nicepaypal:pay|95|Formule Premium}

Code: Select all
{nicepaypal:donate|0|Don à Hébergement Motard}


Source code in page :
Code: Select all
<form name="nicepaypalbtn" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">

                       <input type="hidden" name="business" value="chris@moto-web.net" />

                       <input type="hidden" name="cmd" value="_xclick" />

                       <input type="hidden" name="item_name" value="Formule Premium H&eacute;bergement Motard" /><input type="hidden" name="amount" value="95" /><input type="hidden" name="currency_code" value="EUR" />

                       <input type="hidden" name="lc" value="FR" />

                       <input type="hidden" name="mrb" value="YRDKF6S68Y7DS" />

                <input type="hidden" name="charset" value="utf-8" /><input type="image" name="submit" style="border: 0;" src="https://www.paypal.com/fr_FR/i/btn/btn_paynow_LG.gif" alt="PayPal - The safer, easier way to pay online" />

                     </form>

<form name="nicepaypalbtn" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">

                       <input type="hidden" name="business" value="chris@moto-web.net" />

                       <input type="hidden" name="cmd" value="_donations" />

                       <input type="hidden" name="item_name" value="Don &agrave; H&eacute;bergement Motard" /><input type="hidden" name="amount" value="0" /><input type="hidden" name="currency_code" value="EUR" />

                       <input type="hidden" name="lc" value="FR" />

                       <input type="hidden" name="mrb" value="YRDKF6S68Y7DS" />

                <input type="hidden" name="charset" value="utf-8" /><input type="image" name="submit" style="border: 0;" src="https://www.paypal.com/fr_FR/i/btn/btn_donate_LG.gif" alt="PayPal - The safer, easier way to pay online" />

                     </form>


I tried with the "pay" button only, it is the same

Thank you for help, Chris
Chris31
Lithos
Lithos
 
Posts: 2
Joined: Fri Jul 20, 2012 2:51 am

Re: Button not directing to paypal

Postby Michael » Mon Jul 23, 2012 4:10 pm

Hi,

I tested both of your tags and they work great on my test site. Plus, I reviewed the code samples that you supplied in detail and the HTML form code looks correct.

The only thing that I noticed is that you are not using a full monetary amount in your pay button.

Example
Use 95.00 instead of 95

However, in my tests the amount syntax did not matter.

Notice that in both HTML forms there is an "action" attribute.
Code: Select all
<form name="nicepaypalbtn" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">


The action attribute tells the browser where to submit the form information.
Code: Select all
action="https://www.paypal.com/cgi-bin/webscr"


So, in our case the forms are supposed to be submitted to: https://www.paypal.com/cgi-bin/webscr

So this issue is a bit puzzling since the correct URL is present as the form action. When the form button is clicked the browser should submit the form information to Paypal.

Perhaps, there is another plugin or extension that is conflicting with the button HTML form code. Have you tried enabling and disabling any of your extensions to see if it makes a difference?

Also, what browser are you using? Do you get the same results when you use a different browser?

~ All the best
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Re: Button not directing to paypal

Postby Chris31 » Fri Jul 27, 2012 12:08 am

I disabled all unnecessary plugins and now it works well.

thank you very much, Chris
Chris31
Lithos
Lithos
 
Posts: 2
Joined: Fri Jul 20, 2012 2:51 am


Return to Joomla: Nice PayPal Button

Who is online

Users browsing this forum: No registered users and 1 guest