• Resolved dangellotto

    (@dangellotto)


    I’m trying to setup Paypal payments in the Forminator plugin. I inserted all the needed informations, but every time I try to save them, I receive an error message that says “the sandbox secret is invalid”. I tried different paypal credentials, but the problem is still here. How can I solve this? It is very important.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hello @dangellotto

    I hope you’re well today!

    PayPal integration requires both sets of credentials (Client ID and Secret) to be provided – live and sandbox.

    Are you trying to save that with “Sandobx” data empty or are you putting the same Client ID and Secret as for live – taken from your regular PayPal account?

    Please double-check that and if you haven’t yet created a sandbox account, please do it by

    1) going to this site (login to it using your standard PayPal credentials)

    https://developer.paypal.com/home/

    2) inside there, clicking on “Accounts” tab under “Sandbox” header in the menu on the left side and then clicking on “Create Account”

    3) follow on-screen guide there and once the account (you should create “Business (Merchant Account)” one) you’ll be able to get API Credentials (REST API) from there

    If none of that is the case and you already did that and yet it’s still not working, let me know, please.

    Best regards,
    Adam

    Thread Starter dangellotto

    (@dangellotto)

    I tried either without the live credentials and with them, but the result was the same. Can the problem be the fact that my paypal account was not a Business Account but a Personal Account? Because when I’m in my account page it says it’s not a business account, but when i’m in the developers section it says it is a business one. This is a bit confusing…
    I will try with your solution and I will reply soon

    • This reply was modified 5 years, 7 months ago by dangellotto.
    Thread Starter dangellotto

    (@dangellotto)

    I tried to follow the steps you wrote but the problem is still here, and this time I used a Business Account. I also tried to deactivate all the plugins of the site but no results.

    Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @dangellotto

    The “personal vs business” account type might be an issue but if you have tried using “business-type” sandbox account and it still gives you that message it suggests that either indeed the key is wrong or “something” is breaking communication.

    Do you have any firewall/security plugins/tools currently enabled on site? What about any caching (on site or server-side)?

    If there’s any of those involved, could you try – just for testing – temporarily disable them and test again?

    If that doesn’t change anything or is not a case, could you please export the form so we could test it on our end with our own PayPal sandbox?

    There’s “Export” option for each form on “Forminator -> Forms” page under the little “gear” icon menu. Once you export it from there, please put the form code either here (important: mark it as code!) or share e.g. via your Dropbox, Google Drive or similar account.

    Note please: it will not export your paypal credentials so we still won’t have access to it (so it’s secure if it comes to that).

    Best regards,
    Adam

    Thread Starter dangellotto

    (@dangellotto)

    Here is the form:

    {"type":"form","data":{"fields":[{"id":"name-1","element_id":"name-1","form_id":"wrapper-2241-1016","type":"name","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-2241-1016","field_label":"Name","placeholder":"E.g. John Doe","prefix_label":"Prefix","fname_label":"Nome","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Cognome","lname_placeholder":"E.g. Doe","prefix":false,"fname":"true","mname":false,"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.","multiple_name":"true"},{"id":"email-1","element_id":"email-1","form_id":"wrapper-4035-5153","type":"email","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-4035-5153","validation":true,"placeholder":"E.g. john@doe.com","field_label":"Email","required":true,"required_message":"Il campo Email è obbligatorio","validation_message":"L'email che hai inserito non è valida. Riprova."},{"id":"phone-1","element_id":"phone-1","form_id":"wrapper-971-3167","type":"phone","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-971-3167","required":true,"limit":10,"limit_type":"characters","validation":"standard","field_label":"Telefono","placeholder":"E.g. +39 300 400 5000","required_message":"Il campo Telefono è obbligatorio ","phone_national_country":"IT","validation_message":"Il numero che hai inserito non è valido. Riprova"},{"id":"page-break-1","element_id":"page-break-1","form_id":"wrapper-8344-5756","type":"page-break","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-8344-5756","btn_left":"« Previous Step","btn_right":"Next Step »"},{"id":"radio-1","element_id":"radio-1","form_id":"wrapper-9315-834","type":"radio","options":[{"label":"Ordinaria","value":"ordinaria","key":"7327-3222"},{"label":"Storica","value":"storica","key":"8025-9894"}],"cols":12,"conditions":[],"wrapper_id":"wrapper-9315-834","value_type":"radio","field_label":"Tipo di visura","layout":"vertical","required":true,"required_message":"È obbligatorio scegliere un tipo di visura"},{"id":"text-1","element_id":"text-1","form_id":"wrapper-9241-7985","type":"text","options":[],"cols":12,"conditions":[{"element_id":"radio-1","rule":"is_not","value":""}],"wrapper_id":"wrapper-9241-7985","input_type":"line","limit_type":"characters","field_label":"Ragione Sociale","placeholder":"Denominazione azienda/impresa individuale","required":true,"required_message":"Il campo Ragione Sociale è obbligatorio"},{"id":"text-2","element_id":"text-2","form_id":"wrapper-9422-5456","type":"text","options":[],"cols":12,"conditions":[{"element_id":"radio-1","rule":"is_not","value":""}],"wrapper_id":"wrapper-9422-5456","input_type":"line","limit_type":"characters","field_label":"Codice Fiscale","placeholder":"Codice Fiscale o Partita IVA","formid":"wrapper-9422-5456","required":true,"required_message":"Il campo Codice Fiscale è obbligatorio","custom-class":"custom-validate"},{"id":"select-1","element_id":"select-1","form_id":"wrapper-7999-75","type":"select","options":[{"label":"Salerno","value":"salerno","limit":"","key":"4403-9370","default":false}],"cols":12,"conditions":[{"element_id":"radio-1","rule":"is_not","value":""}],"wrapper_id":"wrapper-7999-75","value_type":"single","field_label":"Provincia","required":false,"placeholder":"- Seleziona -"},{"id":"paypal-1","element_id":"paypal-1","form_id":"wrapper-4745-2384","type":"paypal","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-4745-2384","mode":"sandbox","currency":"USD","amount_type":"fixed","label":"checkout","color":"gold","shape":"rect","layout":"vertical","tagline":"true","locale":"en_US","debug_mode":"disable","height":"40"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav","page-break-1-steps":"Informazioni di Contatto","last-steps":"Richiedi la tua Visura Camerale","pagination-labels":"custom","page-break-1-next":"Avanti","last-previous":"Indietro"},"formName":"Copy of Visura Camerale","version":"1.14.0","form-border-style":"none","form-padding":"custom","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-redirect","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Richiedi","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!","conditions":[]},"validation-inline":"1","form-expire":"no_expire","form-padding-top":"10","form-padding-right":"10","form-padding-bottom":"10","form-padding-left":"10","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":"","submission-file":"delete","form_name":"copy-of-visura-camerale","form_status":"publish","use-custom-css":"1","custom_css":".forminator-radio {\n display: inline-flex;\n width: 50%;\n}\n\n.forminator-input.forminator-name--field {\n display: inline-flex;\n width: 50%;\n}\n\n.currency-field {\n display: none;\n}","redirect-url":"http://pratiche-telematiche.local/payment?id=1888","newtab":"newtab_thankyou","use_ajax_load":"1","use_donotcachepage":"1","honeypot":"1"},"client_id":null,"notifications":[{"slug":"notification-1234-4567","label":"Admin Email","email-recipients":"default","recipients":"dany.ange@hotmail.com","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"}]},"status":"publish","version":"1.14.0"}

    • This reply was modified 5 years, 7 months ago by dangellotto.
    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @dangellotto,

    Thanks for sharing the export. However, it seems like the current form gets redirect to a custom page once the form is submitted ie to the following link:
    pratxxx-xxxxxxx.local/payment?id=1888

    So I suppose you have removed the PayPal field from the form then? However, I don’t see any issue with validating PayPal credentials under Forminator > Settings > Payments section and with displaying the payment buttons in the form once PayPal field is added.

    Is it possible to share a screenshot of where exactly you notice the error message? To ensure if the error is from the plugin or PayPal side.

    Also just to be sure both Client ID and Secret would be a key. Maybe you are inputting email id instead of client ID? Just trying to rule out such possibilities.

    Screenshot at 18:37:57.png

    Looking forward to your response.

    Regards,
    Nithin

    Thread Starter dangellotto

    (@dangellotto)

    Yes, I redirected the form to that page because I couldn’t configure the payments in the Forminator > Settings > Payments section (The error is here, in the field where I have to insert the Sandbox Secret, the second). So I tried to add the code provided by PayPal to perform payments. The problem is not from Paypal side because with that code i could perform a fake payment correctly

    Regards

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @dangellotto,

    Could you send us an email at contact@wpmudev.org with the following template?

    Subject: “Attn: Prathamesh”
    Description: Link back to the following thread for reference

    Do make sure to keep the subject line intact as it makes sure it is assigned to me.

    Thank you,
    Prathamesh Palve

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @dangellotto,

    I just sent you an email with an update. Could you please check the same once on your end?

    Thank you,
    Prathamesh Palve

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @dangellotto ,

    We haven’t heard back from you for several days so it looks like suggestions given by my colleagues helped resolve this issue.

    If not, feel free to re-open this ticket.

    kind regards,
    Kasia

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Problem with Paypal data configuration’ is closed to new replies.