Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I have set

Code: Select all
<cms:editable name='pp_price' label='Price' desc='Amount in EUR (correct upto 2 decimal points)'
  maxlength='10'
  search_type='decimal'
  validator='non_negative_decimal'
  type='text' />
in the cms template declaration at the top of the page and set a value in the adming panel for pp_price


I have then declared the button on the page

Code: Select all
<cms:paypal_button />


in the config file I have set the sandbox to zero the paypal email address to the clients paypal email address and set the currency to 'EUR'

when the paage loads the button is showing but when I click the button, nothing happens.

I have read throught the documenttation for the paypal button and cant see that i have missed anything.

Is there something else I should be doing to get the button to work?

I have firebugged the button and this is the form it has created

Code: Select all
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" value="_xclick" name="cmd">
<input type="hidden" value="****@****.co.uk" name="business">
<input type="hidden" value="" name="item_name">
<input type="hidden" value="" name="item_number">
<input type="hidden" value="300" name="amount">
<input type="hidden" value="1" name="undefined_quantity">
<input type="hidden" value="1" name="no_shipping">
<input type="hidden" value="1" name="no_note">
<input type="hidden" value="EUR" name="currency_code">
<input type="hidden" value="2" name="rm">
<input type="hidden" value="" name="custom">
<input type="hidden" value="****/index.php" name="return">
<input type="hidden" value="****/index.php" name="cancel_return">
<input type="hidden" name="notify_url" value="****/index.php?paypal_ipn=1">
<input type="image" border="0" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img width="1" height="1" border="0" alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif">
</form>


*I have starred out the paypal email and the domain return address's for secutiry

thanks in advance
Hi,

Primarily the cms:paypal_button tag serves to output the form you quoted.
Nothing seems to be wrong with that but you can test it further by copying the generated form code from view-source and pasting it onto a plain HTML file. See how it works.
works perfectly when I put it into a seperate php file and run it from there.

There must be something blocking the click of the button.

I have only used couchcms and bootstrap

Ill try putting a standard form in my page and see if that clicks through
works perfectly when I put it into a seperate php
That was expected.

So the tag is working fine. You need to debug your front-end code to try and find what is causing the problem.

Thanks.
What's happening is the PayPal button is submitting the contact form on the same page. I need to work on the jquery for the contract form.

Thanks for the input
5 posts Page 1 of 1
cron