Ziad and Support,
I am having an almost identical problem, and i have additional questions also.
My snippet for the paypal submit button is like this:
‘[paypalsubmit email:paypal@xyz.com itemamount:fee itemname:your-name quantity:quantity return_url:http://www.xyz.com cancel_url:http://www.xyz.com “Send”]’
What am I doing wrong?
The additional questions are about the itemamount, itemname and quantity fields.
1 – I would like to use a set amount for the itemamount and the quantity. In another post i read that I can accomplish this by inserting a hidden field – but I tried to insert such fields and the type “hidden” was not recognized – the snippet, which was something like [hidden fee 10], showed up on the page. Can you give example of the syntax for a hidden field?
2 – I followed the example for itemname – but I keep thinking that it is wrong. The value your-name is the value that comes from the name field of the form – is that correct?
Hello,
This error occurs “You are not redirected to PayPal as you have not configured PayPal Submit Button properly.” when you might not have configured Item Amount Field ID, Item Name Field ID or Quantity field ID..
Else it works fine.
You need to set id:fieldid attribute to any of the Contact Form 7 fields and assign that id to itemname, itemamount and quantity field. Static values are not allowed.
You can refer this documentation for further details,
https://opensource.zealousweb.com/wp-content/uploads/2015/08/Contact_form_7-PayPal_Extension.pdf
Hi -this is now marked as resolved, but it is not resolved.
In the code snippet above I have assigned fields just as you said.
– itemamount:fee (fee is defined as a number field). The code for fee is:
[number* fee min:5 max:5 placeholder “5.00”]
– itemname:your-name (you-name is a text field). The code for your-name is:
[text* your-name]
– quantity:quantity (quantity is a number field). The code for quantity is:
[number quantity min:1 max:1 placeholder:”1″]
Again – is there something i am doing wrong?
Thanks so much…
Hi krblaker,
You are missing to add ‘id:’ attribute for these 3 fields, it should be like
[number* fee min:5 max:5 placeholder “5.00” id:fee]
[text* your-name id:item]
[number quantity min:1 max:1 placeholder:”1″ id:quantity]
And then provide values of this id attribute in paypalsubmit tag.
Please follow the example given in the documentation here,
https://opensource.zealousweb.com/wp-content/uploads/2015/08/Contact_form_7-PayPal_Extension.pdf
Hope this helps you. Please feel free to ask your queries further.
Thanks,
ZealousWeb
Could you please show a picture of the correct settings?
I’m so confused!
Please show in a picture how I am supposed to add those 3 fields.
I read your pdf, but it doesn’t show a picture of the CORRECT settings.
Thanks.
Nevermind (a sample was given in the pdf, here it is for all who need it):
Code given below will help you to set Contact Form 7 with PayPal Extension.
* Install “Contact Form 7 Modules” plugin to use hidden field with Contact Form 7.
https://wordpress.org/plugins/contact-form-7-modules/
You can see its demo here, https://opensource.zealousweb.com/demo-page/
9 | P a g e
Contact Form 7 – PayPal Extension PRO – User Guide
Developed by http://www.opensource.zealousweb.com
<p><label>Name</label>[text* name]</p>
<p><label>Email</label>[email* email]</p>
<p><label>PayPal Item</label>[text item id:itemfield]</p>
<p>[hidden price id:pricefield “20”]</p>
<p><label>Quantity</label>[radio quantity id:qtyfield “1” “2” “3”]</p>
<p> [paypalsubmit email:testing.demo@gmail.com itemamount:pricefield
itemname:itemfield quantity:qtyfield
return_url:http://opensource.zealousweb.com/contact-form-7-paypal-extension-pro/
cancel_url:http://opensource.zealousweb.com/contact-form-7-paypal-extension-pro/
sandbox “View Plugin Demo”] </p>