Form doesn’t submit with PayPal
-
Hi,
We have a form which accepts payments with PayPal. When a user fills out the form and pays with the Credit Card button it works. But when a user fills out the form and tries to pay with the yellow PayPal button, it takes their money but the form just never submits. It says Submitting… and just doesn’t submit. Meaning we don’t get the contact form details and so don’t know what the client has ordered.
I would be grateful if you could help.
Thanks!
The page I need help with: [log in to see the link]
-
Hello @gemgems89 ,
I’m sorry about this issue.
We don’t have reports for the standard PayPal button not working – I don’t see anything in your form that would prevent it from working, however, I would like to double-check that. Can you export your form and share it with us? Use Dropbox as a service to share the form with us.
I have tested PayPal button on my lab site and I wasn’t able to replicate this problem.
kind regards,
KasiaI have exported the form, it gave me some code so here it is. As I mentioned, the form submits when we press Credit/Debit card but not when we press PayPal Checkout though the money still gets taken. We need to be able to receive the form details as well as the money. Thank you for your help.
{“type”:”form”,”data”:{“fields”:[{“id”:”name-1″,”element_id”:”name-1″,”form_id”:”wrapper-1511347711918-1669″,”type”:”name”,”cols”:6,”required”:”true”,”field_label”:”First Name”,”placeholder”:””,”prefix_label”:”Prefix”,”fname_label”:”First Name”,”fname_placeholder”:”E.g. John”,”mname_label”:”Middle Name”,”mname_placeholder”:”E.g. Smith”,”lname_label”:”Last Name”,”lname_placeholder”:”E.g. Doe”,”required_message”:”Field is required.”,”wrapper_id”:”wrapper-1511347711918-1669″},{“id”:”phone-1″,”element_id”:”phone-1″,”form_id”:”wrapper-1511347711918-1669″,”type”:”phone”,”cols”:6,”required”:false,”field_label”:”Phone Number”,”placeholder”:””,”validation”:”false”,”phone_validation_type”:”standard”,”validation_text”:””,”required_message”:”Field is required.”,”wrapper_id”:”wrapper-1511347711918-1669″},{“id”:”email-1″,”element_id”:”email-1″,”form_id”:”wrapper-1511347712118-1739″,”type”:”email”,”cols”:12,”required”:”true”,”field_label”:”Email Address”,”placeholder”:””,”validation”:true,”validation_text”:””,”required_message”:”Field is required.”,”validation_message”:”Please enter a valid email address.”,”wrapper_id”:”wrapper-1511347712118-1739″},{“id”:”radio-1″,”element_id”:”radio-1″,”form_id”:”wrapper-1988247712118-9871″,”type”:”radio”,”options”:[{“label”:”Prayer for Health”,”value”:”prayer-for-health”,”key”:”5582-8950″},{“label”:”Prayer for Success”,”value”:”prayer-for-success”,”key”:”2868-9981″},{“label”:”Prayer for Thanksgiving”,”value”:”prayer-for-thanksgiving”,”limit”:””,”default”:false,”key”:”1013-2140″},{“label”:”Prayer for our Armed Forces”,”value”:”prayer-for-our-armed-forces”,”limit”:””,”default”:false,”key”:”2224-511″},{“label”:”Prayer for Recovery”,”value”:”prayer-for-recovery”,”limit”:””,”default”:false,”key”:”2045-5114″},{“label”:”Prayer for Birthday”,”value”:”prayer-for-birthday”,”limit”:””,”default”:false,”key”:”6696-794″},{“label”:”Prayer for Anniversary”,”value”:”prayer-for-anniversary”,”limit”:””,”default”:false,”key”:”6073-462″},{“label”:”Prayer for Job Interview”,”value”:”prayer-for-job-interview”,”limit”:””,”default”:false,”key”:”5877-1291″},{“label”:”COVID-19″,”value”:”covid19″,”limit”:””,”default”:false,”key”:”6377-7948″},{“label”:”US Election”,”value”:”us-election”,”limit”:””,”default”:false,”key”:”8965-2534″},{“label”:”Write your own”,”value”:”write-your-own”,”limit”:””,”default”:false,”key”:”8935-2448″}],”cols”:12,”conditions”:[],”wrapper_id”:”wrapper-1988247712118-9871″,”value_type”:”radio”,”field_label”:”What prayer would you like to be recited in the Holy Land?”,”layout”:”vertical”,”required”:true,”required_message”:”Please choose an option.”},{“id”:”name-3″,”element_id”:”name-3″,”form_id”:”wrapper-2424-59″,”type”:”name”,”options”:[],”cols”:12,”conditions”:[{“element_id”:”radio-1″,”rule”:”is”,”value”:”us-election”}],”wrapper_id”:”wrapper-2424-59″,”field_label”:”Which candidate would you like to pray for?”,”placeholder”:””,”prefix_label”:”Prefix”,”fname_label”:”First Name”,”fname_placeholder”:”E.g. John”,”mname_label”:”Middle Name”,”mname_placeholder”:”E.g. Smith”,”lname_label”:”Last Name”,”lname_placeholder”:”E.g. Doe”,”prefix”:”true”,”fname”:”true”,”mname”:”true”,”lname”:”true”,”required_message”:”Name is required.”,”prefix_required_message”:”Prefix is required.”,”fname_required_message”:”First Name is required.”,”mname_required_message”:”Middle Name is required.”,”lname_required_message”:”Last Name is required.”},{“id”:”name-2″,”element_id”:”name-2″,”form_id”:”wrapper-7736-6162″,”type”:”name”,”options”:[],”cols”:12,”conditions”:[{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-health”},{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-success”},{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-our-armed-forces”},{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-thanksgiving”},{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-recovery”},{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-birthday”},{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-anniversary”},{“element_id”:”radio-1″,”rule”:”is”,”value”:”prayer-for-job-interview”}],”wrapper_id”:”wrapper-7736-6162″,”field_label”:”Name of person(s) to be included in the prayer”,”placeholder”:””,”prefix_label”:”Prefix”,”fname_label”:”First Name”,”fname_placeholder”:”E.g. John”,”mname_label”:”Middle Name”,”mname_placeholder”:”E.g. Smith”,”lname_label”:”Last Name”,”lname_placeholder”:”E.g. Doe”,”prefix”:”true”,”fname”:”true”,”mname”:”true”,”lname”:”true”,”required_message”:”Name is required.”,”prefix_required_message”:”Prefix is required.”,”fname_required_message”:”First Name is required.”,”mname_required_message”:”Middle Name is required.”,”lname_required_message”:”Last Name is required.”,”description”:””,”condition_action”:”show”,”condition_rule”:”any”},{“id”:”textarea-1″,”element_id”:”textarea-1″,”form_id”:”wrapper-271-7280″,”type”:”textarea”,”cols”:12,”required”:false,”field_label”:”Your Custom Prayer”,”placeholder”:”Enter your prayer…”,”input_type”:”paragraph”,”limit”:””,”limit_type”:”characters”,”conditions”:[{“element_id”:”radio-1″,”rule”:”is”,”value”:”write-your-own”}],”wrapper_id”:”wrapper-271-7280″},{“id”:”radio-2″,”element_id”:”radio-2″,”form_id”:”wrapper-3310-7846″,”type”:”radio”,”options”:[{“label”:”A Male”,”value”:”a-male”,”key”:”5582-8950″},{“label”:”A Female”,”value”:”a-female”,”key”:”2868-9981″},{“label”:”No Preference”,”value”:”no-preference”,”limit”:””,”default”:false,”key”:”2288-4248″}],”cols”:12,”conditions”:[],”wrapper_id”:”wrapper-3310-7846″,”value_type”:”radio”,”field_label”:”Who do you want to recite your prayer?”,”layout”:”vertical”,”required”:true,”required_message”:”Please choose an option.”},{“id”:”radio-3″,”element_id”:”radio-3″,”form_id”:”wrapper-9663-2294″,”type”:”radio”,”options”:[{“label”:”Regular: Within 72 hours – $10″,”value”:”regular-within-72-hours-10″,”key”:”5582-8950″,”calculation”:”10″,”default”:true},{“label”:”Premium: Within 12 hours – $15″,”value”:”premium-within-12-hours-15″,”key”:”2868-9981″,”calculation”:”15″,”default”:false},{“label”:”Urgent: Within 3 hours – $25″,”value”:”urgent-within-3-hours-25″,”limit”:””,”default”:false,”key”:”7346-2250″,”calculation”:”25″}],”cols”:12,”conditions”:[],”wrapper_id”:”wrapper-9663-2294″,”value_type”:”radio”,”field_label”:”When do you want the prayer to be said?”,”layout”:”vertical”,”calculations”:”true”,”required”:true,”required_message”:”Please choose an option.”,”description”:””},{“id”:”calculation-1″,”element_id”:”calculation-1″,”form_id”:”wrapper-6270-7220″,”type”:”calculation”,”options”:[],”cols”:12,”conditions”:[],”wrapper_id”:”wrapper-6270-7220″,”field_label”:”Calculations”,”placeholder”:”E.g. Calculated Value”,”formula”:”{radio-3}”,”hidden”:true},{“id”:”paypal-1″,”element_id”:”paypal-1″,”form_id”:”wrapper-8811-9813″,”type”:”paypal”,”options”:[],”cols”:12,”conditions”:[],”wrapper_id”:”wrapper-8811-9813″,”mode”:”live”,”currency”:”USD”,”amount_type”:”variable”,”label”:”checkout”,”color”:”gold”,”shape”:”rect”,”layout”:”vertical”,”tagline”:”true”,”locale”:”en_US”,”debug_mode”:”disable”,”height”:”40″,”variable”:”calculation-1″}],”settings”:{“pagination-header”:”nav”,”paginationData”:{“pagination-header-design”:”show”,”pagination-header”:”nav”},”formName”:”General prayer form”,”version”:”1.13.4″,”form-border-style”:”none”,”form-padding”:””,”form-border”:””,”fields-style”:”open”,”validation”:”on_submit”,”form-style”:”flat”,”enable-ajax”:”true”,”autoclose”:””,”submission-indicator”:”show”,”indicator-label”:”Submitting…”,”form-type”:”default”,”submission-behaviour”:”behaviour-hide”,”thankyou-message”:”<p>Your prayer has been sent! We’ll send you a certificate by email after your prayer has been recited. If your prayer is answered, let us know or post on our Facebook page!</p>”,”submitData”:{“custom-submit-text”:”Send Message”,”custom-invalid-form-message”:”Error: Your form is not valid, please fix the errors!”},”validation-inline”:”1″,”form-expire”:”no_expire”,”form-padding-top”:”0″,”form-padding-right”:”0″,”form-padding-bottom”:”0″,”form-padding-left”:”0″,”form-border-width”:”0″,”form-border-radius”:”0″,”cform-label-font-family”:”Nunito”,”cform-label-custom-family”:””,”cform-label-font-size”:”16″,”cform-label-font-weight”:”bold”,”cform-title-font-family”:”Roboto”,”cform-title-custom-family”:””,”cform-title-font-size”:”45″,”cform-title-font-weight”:”normal”,”cform-title-text-align”:”left”,”cform-subtitle-font-family”:”Roboto”,”cform-subtitle-custom-font”:””,”cform-subtitle-font-size”:”18″,”cform-subtitle-font-weight”:”normal”,”cform-subtitle-text-align”:”left”,”cform-input-font-family”:”Roboto”,”cform-input-custom-font”:””,”cform-input-font-size”:”16″,”cform-input-font-weight”:”normal”,”cform-radio-font-family”:”Nunito”,”cform-radio-custom-font”:””,”cform-radio-font-size”:”16″,”cform-radio-font-weight”:”normal”,”cform-select-font-family”:”Roboto”,”cform-select-custom-family”:””,”cform-select-font-size”:”16″,”cform-select-font-weight”:”normal”,”cform-multiselect-font-family”:”Roboto”,”cform-multiselect-custom-font”:””,”cform-multiselect-font-size”:”16″,”cform-multiselect-font-weight”:”normal”,”cform-dropdown-font-family”:”Roboto”,”cform-dropdown-custom-font”:””,”cform-dropdown-font-size”:”16″,”cform-dropdown-font-weight”:”normal”,”cform-calendar-font-family”:”Roboto”,”cform-calendar-custom-font”:””,”cform-calendar-font-size”:”13″,”cform-calendar-font-weight”:”normal”,”cform-button-font-family”:”Roboto”,”cform-button-custom-font”:””,”cform-button-font-size”:”14″,”cform-button-font-weight”:”500″,”cform-timeline-font-family”:”Roboto”,”cform-timeline-custom-font”:””,”cform-timeline-font-size”:”12″,”cform-timeline-font-weight”:”normal”,”cform-pagination-font-family”:””,”cform-pagination-custom-font”:””,”cform-pagination-font-size”:”16″,”cform-pagination-font-weight”:”normal”,”payment_require_ssl”:””,”submission-file”:”delete”,”form_status”:”publish”,”form-font-family”:”custom”,”cform-color-settings”:”true”,”form_name”:”general-prayer-form”,”cform-form-border”:”rgba(255,255,255,0)”,”cform-form-background”:”rgba(255,255,255,0)”,”radio-background-static”:”#ffffff”,”input-bg”:”#ffffff”},”client_id”:null,”notifications”:[{“slug”:”notification-1234-4567″,”label”:”Admin Email”,”email-recipients”:”default”,”recipients”:”[email protected], [email protected], [email protected]”,”email-subject”:”New Form Entry #{submission_id} for {form_name}”,”email-editor”:”You have a new website form submission: <br/> {all_fields} <br/>—<br/> This message was sent from {site_url}.”,”email-attachment”:”true”},{“slug”:”notification-9365-1830″,”recipients”:”{email-1}”,”email-editor”:”<p>Hi {name-1},</p>\n<p>This is a confirmation email to let you know that we have received your prayer. We will send your prayer to one of our reciters who will recite it in the Holy Land in the timeframe that you specified.</p>\n<p>Thanks for praying with us.</p>\n<p>Wishing you lots of health,<br />The My Holy Land Prayer team</p>”,”email-subject”:”Thank you {name-1} for sending a prayer to the Holy Land”,”label”:”General prayer form”,”from-name”:”My Holy Land Prayer”,”form-email”:”[email protected]”,”replyto-email”:”[email protected]”}]},”status”:”publish”,”version”:”1.13.5″}
Hi @gemgems89,
I’m afraid, the form export shared isn’t working and I’m not able to export the form as it seems to be corrupted. Most probably the above form export content got formatted when copy/pasted in this thread.
Could you please use Google Drive, Dropbox or Pastebin etc to share the link to your form export so that the export would stay intact in order for us to further test the anomalies mentioned?
Looking forward to your response. Have a nice day ahead.
Kind Regards,
NithinApologies, please see here: https://pastebin.pl/view/e973c09b
Hello @gemgems89 ,
Thank for the form.
I have tested it on my site with default PayPal payment but I wasn’t able to replicate this issue. The form was submitted and I can see it in the submissions.
When you test your form are you able to replicate this issue?
Can you enable debug mode in your WordPress and try to replicate this error?
To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:define('WP_DEBUG', true);In order to enable the error logging to a file on the server you need to add yet one more similar line:
define( 'WP_DEBUG_LOG', true );In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.
Depending on whether you want your errors to be only logged or also displayed on the screen you should also have this line there, immediately after the line mentioned above:
define( 'WP_DEBUG_DISPLAY', false );The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
If you open wp-config.php and that define statement is not there, you can add it right before this line:
/* That's all, stop editing! Happy blogging. */The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
I would need then to see content of the debug.log file – so please upload it to service like a Dropbox and paste link here
kind regards,
KasiaI tried a test a few days ago and the form did submit when pressing the yellow button. Just today a client ordered and did it and again the form did not submit, though we received his payment. I had already installed the lines of code you requested in the config file but I’m not seeing a debug log. I have allowed it to be displayed, can you see anything?
Hello @gemgems89,
Do you by chance see the error_log or error log file in the root of your site installation when you check that from your site hosting control panel?
If not, I am afraid you would need to check with your host to check if is the error log not being made and also check if things are good on their end.
Do let me know once if there is an error log file or if you check with your host on the same.
Thank you,
Prathamesh Palve@wpmudev-support7 hi there,
Ok I found the error log. Here is a link: https://drive.google.com/file/d/1RmPxoMJ4bqw2X7s7RsKXLNRjU3q5Vonv/view?usp=sharing
So far we have had 3 purchases and each time the form didn’t send when they pressed the yellow PayPal button to pay, but payment was received.
Thanks
Hi @gemgems89
I hope you’re well today!
The only errors that are there are suggesting that the database “clogs” (the “deadlock” part) which is quite unexpected because MySQL should be able to recover automatically from so called “deadlocks”. Nevertheless, this together with other lines suggest that it might actually be related to cache.
You are running W3 Total Cache on site, aren’t you?
If yes, please try temporarily swtiching all it’s caching options off, just to see if that helps with the form.
If it does, then you could try switching it back on but also make sure that in Forminator’s form “Behavior” settings the “Prevent page caching on form page” option is enabled and then “experiment” with the
“Load form using Ajax”
and (a bit up the same settings page)
“Method” set to “Ajax”
options enabled/disabled as those are ones that sometimes fall under “unexpected cache”.
Could you give it a try, please?
Kind regards,
AdamHi, thanks, no we are using WP Fastest Cache. Shall I just disable the plugin then for now?
Hi @gemgems89
Yes, please try it. First, clear the cache entirely and then, temporarily, disable it to see if that makes any difference.
Update us here afterwards, please.
Best regards,
AdamThank you for using Forminator. We are going to close this ticket for now because we have not heard from you in a while. If you still need support we can reopen the thread.
Cheers,
Predrag
The topic ‘Form doesn’t submit with PayPal’ is closed to new replies.