• Resolved darynkyle

    (@darynkyle)


    I have a popup link at the bottom of the linked page. It’s giving me errors when trying to enter a credit card. Using paypal seems to work but it doesn’t submit the form to the database.

    Below is my export code:

    {"type":"form","data":{"fields":[{"id":"name-1","element_id":"name-1","form_id":"wrapper-5645-7470","type":"name","options":[],"cols":"6","conditions":[],"wrapper_id":"wrapper-5645-7470","field_label":"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","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":"email-1","element_id":"email-1","form_id":"wrapper-5645-7470","type":"email","options":[],"cols":"6","conditions":[],"wrapper_id":"wrapper-5645-7470","validation":"","placeholder":"","field_label":"Email Address"},{"id":"textarea-1","element_id":"textarea-1","form_id":"wrapper-3002-5231","type":"textarea","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-3002-5231","input_type":"line","limit_type":"characters","field_label":"Name of Child/Children Attending Classes","placeholder":"","description":"Please list the child/children you are paying tuition for along with any notes."},{"id":"radio-1","element_id":"radio-1","form_id":"wrapper-2418-6404","type":"radio","options":[{"label":"Summer","value":"summer","key":"3946-7022"},{"label":"School Year (Fall/Spring)","value":"school-year-fallspring","key":"4710-3605"}],"cols":"6","conditions":[],"wrapper_id":"wrapper-2418-6404","value_type":"radio","field_label":"Season","layout":"vertical"},{"id":"text-1","element_id":"text-1","form_id":"wrapper-2418-6404","type":"text","options":[],"cols":"6","conditions":[],"wrapper_id":"wrapper-2418-6404","input_type":"line","limit_type":"characters","field_label":"Month","placeholder":"","description":"Month Tuition payment is for."},{"id":"select-1","element_id":"select-1","form_id":"wrapper-9869-8894","type":"select","options":[{"label":"None","value":"None","limit":"","default":"","key":"3550-4682","calculation":"0"},{"label":"30 Minutes","value":"30-minutes","limit":"","key":"4900-6851","calculation":"60"},{"label":"1 Hour","value":"1-hour","limit":"","key":"1319-8190","calculation":"72"},{"label":"1.5 Hours","value":"1-5-hours","limit":"","default":"","key":"4188-5004","calculation":"84"},{"label":"2 Hours","value":"2-hours","limit":"","default":"","key":"5810-2694","calculation":"94"},{"label":"2.5 Hours","value":"2-5-hours","limit":"","default":"","key":"4807-7487","calculation":"106"},{"label":"3 Hours","value":"3-hours","limit":"","default":"","key":"6417-360","calculation":"116"},{"label":"3.5 Hours","value":"3-5-hours","limit":"","default":"","key":"5071-3092","calculation":"128"},{"label":"4 Hours","value":"4-hours","limit":"","default":"","key":"7092-265","calculation":"138"},{"label":"4.5 Hours","value":"4-5-hours","limit":"","default":"","key":"7987-406","calculation":"150"},{"label":"5 Hours","value":"5-hours","limit":"","default":"","key":"4571-5879","calculation":"160"},{"label":"5.5 Hours","value":"5-5-hours","limit":"","default":"","key":"3356-8475","calculation":"172"},{"label":"6 Hours","value":"6-hours","limit":"","default":"","key":"3205-3075","calculation":"182"},{"label":"6.5 Hours","value":"6-5-hours","limit":"","default":"","key":"945-2969","calculation":"194"},{"label":"7+ Hours","value":"7-hours","limit":"","default":"","key":"1872-1443","calculation":"204"}],"cols":"6","conditions":[],"wrapper_id":"wrapper-9869-8894","value_type":"single","field_label":"Select","placeholder":"Hours of Dance (Summer)","calculations":"true","options_bulk_editor":"None; None; 0 30 Minutes; 30-minutes; 0 1 Hour; 1-hour; 0 1.5 Hours; 1-5-hours; 0 2 Hours; 2-hours; 0 2.5 Hours; 2-5-hours; 0 3 Hours; 3-hours; 0 3.5 Hours; 3-5-hours; 0 4 Hours; 4-hours; 0 4.5 Hours; 4-5-hours; 0 5 Hours; 5-hours; 0 5.5 Hours; 5-5-hours; 0 6 Hours; 6-hours; 0 6.5 Hours; 6-5-hours; 0 7+ Hours; 7-hours; 0"},{"id":"select-2","element_id":"select-2","form_id":"wrapper-9869-8894","type":"select","options":[{"label":"None","value":"None","limit":"","default":"","key":"9714-1025","calculation":"0"},{"label":"30 Minutes","value":"30-minutes","limit":"","key":"4900-6851","calculation":"46"},{"label":"1 Hour","value":"1-hour","limit":"","key":"1319-8190","calculation":"56"},{"label":"1.5 Hours","value":"1-5-hours","limit":"","default":"","key":"4188-5004","calculation":"68"},{"label":"2 Hours","value":"2-hours","limit":"","default":"","key":"5810-2694","calculation":"78"},{"label":"2.5 Hours","value":"2-5-hours","limit":"","default":"","key":"4807-7487","calculation":"90"},{"label":"3 Hours","value":"3-hours","limit":"","default":"","key":"6417-360","calculation":"100"},{"label":"3.5 Hours","value":"3-5-hours","limit":"","default":"","key":"5071-3092","calculation":"112"},{"label":"4 Hours","value":"4-hours","limit":"","default":"","key":"7092-265","calculation":"122"},{"label":"4.5 Hours","value":"4-5-hours","limit":"","default":"","key":"7987-406","calculation":"134"},{"label":"5 Hours","value":"5-hours","limit":"","default":"","key":"4571-5879","calculation":"144"},{"label":"5.5 Hours","value":"5-5-hours","limit":"","default":"","key":"3356-8475","calculation":"156"},{"label":"6 Hours","value":"6-hours","limit":"","default":"","key":"3205-3075","calculation":"166"},{"label":"6.5 Hours","value":"6-5-hours","limit":"","default":"","key":"945-2969","calculation":"178"},{"label":"7+ Hours","value":"7-hours","limit":"","default":"","key":"1872-1443","calculation":"188"}],"cols":"6","conditions":[],"wrapper_id":"wrapper-9869-8894","value_type":"single","field_label":"Select","placeholder":"Hours of Dance (School Year)","formid":"wrapper-8575-75","search_status":"disable","calculations":"true","options_bulk_editor":"None; None; 0 30 Minutes; 30-minutes; 0 1 Hour; 1-hour; 0 1.5 Hours; 1-5-hours; 0 2 Hours; 2-hours; 0 2.5 Hours; 2-5-hours; 0 3 Hours; 3-hours; 0 3.5 Hours; 3-5-hours; 0 4 Hours; 4-hours; 0 4.5 Hours; 4-5-hours; 0 5 Hours; 5-hours; 0 5.5 Hours; 5-5-hours; 0 6 Hours; 6-hours; 0 6.5 Hours; 6-5-hours; 0 7+ Hours; 7-hours; 0"},{"id":"calculation-5","element_id":"calculation-5","form_id":"wrapper-3595-1208","type":"calculation","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-3595-1208","field_label":"Total","formula":"({select-1}+{select-2})*1.03","formid":"wrapper-9647-9893"},{"id":"paypal-1","element_id":"paypal-1","form_id":"wrapper-8203-7022","type":"paypal","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-8203-7022","mode":"sandbox","currency":"USD","amount_type":"variable","label":"checkout","color":"gold","shape":"rect","layout":"vertical","tagline":"true","locale":"en_US","debug_mode":"enable","height":"40","variable":"calculation-5"},{"id":"captcha-1","element_id":"captcha-1","form_id":"wrapper-1979-8014","type":"captcha","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-1979-8014","captcha_provider":"recaptcha","captcha_type":"v3_recaptcha","hcaptcha_type":"hc_checkbox","score_threshold":"0.5","captcha_badge":"bottomright","hc_invisible_notice":"This site is protected by hCaptcha and its <a href=\"https://hcaptcha.com/privacy\">Privacy Policy</a> and <a href=\"https://hcaptcha.com/terms\">Terms of Service</a> apply.","recaptcha_error_message":"reCAPTCHA verification failed. Please try again.","hcaptcha_error_message":"hCaptcha verification failed. Please try again."}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"Tuition Payment","version":"1.18.0","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","form-style":"default","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-hide","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Submit Payment","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":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","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":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","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":"1","submission-file":"delete","form_name":"tuition-payment","form_status":"publish","store_submissions":"1","akismet-protection":"1","use_ajax_load":"1"},"client_id":null,"integration_conditions":[],"behaviors":[{"slug":"behavior-1234-4567","label":"","autoclose-time":"5","autoclose":"true","newtab":"sametab","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","email-thankyou-message":"","manual-thankyou-message":"","submission-behaviour":"behaviour-hide","redirect-url":""}],"notifications":[{"slug":"notification-1234-4567","label":"Admin Email","email-recipients":"default","recipients":"[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","conditions":[],"from-name":"","form-email":"","replyto-email":"","cc-email":"","bcc-email":"[email protected]"}]},"status":"publish","version":"1.18.0"}

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @darynkyle !

    I’m sorry to hear you’ve experienced this issue!

    I’ve checked the export and I could replicate the issue you’ve mentioned, however I wasn’t able to find the cause or figure out a solution yet. I’ve shared the case with the Forminator team for further checking and once we have a reply, we’ll update you here.

    Best regards,
    Pawel

    Thread Starter darynkyle

    (@darynkyle)

    Thank you.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @darynkyle

    This will be resolved in the upcoming release. Meanwhile, there’s the following workaround. You can use the following code in a MU plugin (https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins):

    <?php 
    add_filter( 'forminator_paypal_create_order_request', 'wpmudev_remove_payment_payer_data', 10, 2 );
    function wpmudev_remove_payment_payer_data( $request, $data ){
    	if( $data['form_id'] != 3049 ){ //Please change form ID here
    		return $request;
    	}
    	
    	if( empty( $request['payer'] ) ){
    		unset($request['payer']);
    	}
    
    	return $request;
    }

    Please replace 3049 with the ID of your form (the same number found in the form shortcode).

    Thank you,
    Dimitris

    Thread Starter darynkyle

    (@darynkyle)

    Thank you. This fixed the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Paypal: Something Went wrong when trying to verify payment’ is closed to new replies.