• Resolved Jo Waltham

    (@jowaltham)


    Hi, we’re using forminator on a website with two different forms which take Paypal payments – membership subscription and donation. Is there a way to pass a description to Paypal which is then included in their email in the description field? That way we’ll know which form they completed and will help with tallying up form submissions with Paypal payments.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @jowaltham,

    I’m afraid this is not possible with the current set up but this looks to be a nice and required feature which is why I would be sending this to the Forminator team to check the same and see if there could be some quick fix or addition for the same. We would update you once we hear back from the team on it.

    Thank you,
    Prathamesh Palve

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @jowaltham,

    Our SLS team came up with a quick custom solution for this situation. Kindly download and install the following plugin:

    https://gist.github.com/wpmudev-sls/299bc833c12b842ea35c70b69515abc3

    Here are the instructions to install a mu-plugin on your site:
    https://premium.wpmudev.org/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    To have a description in the transaction, you would first need to add a hidden field to the form and set the value to that. Example:Form-name-payment-type.

    You would now need to make a small edit in the form and that is editing the hidden field id. Make sure to use the appropriate hidden field id in this line let paypal_description = $form.find( '#hidden-1' ).val();

    Now as this is a custom solution, kindly make sure to test this on your staging servers to confirm if that works before deploying it on your live site.

    Kindly let us know if that works for you.

    Thank you,
    Prathamesh Palve

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @jowaltham

    I hope you are doing well.

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved.

    However, feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

    Hi should this be working in the latest version of forminator 1.14.7?
    I tested and got it working in 1.14.6 but with 1.14.7 the form hangs when returning after entering the paypal details. The paypal transaction goes through OK but then the form screen hangs and does not refresh with the result, and the data entered is not registered or emails sent.

    I have not changed the code for this git.

    I have tested on sandbox only but the only difference between working and not working is this plugin works in 1.14.6 but not in 1.14.7.

    When I disable the plugin the form then works in 1.14.7.

    PS I set it up as a regular plug in not an mu one. Will this matter?

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @sallywhytehead,

    We could replicate the same on our lab sites which is why we have sent this to the SLS team to check the same further and suggest us a line of change if possible with the new setup. We will update you on it once we hear back from them about it.

    Thank you for bringing this to our notice.

    Regards,
    Prathamesh Palve

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there all! 🙂

    Our Second Level Support devs created a new plugin for this use.
    You can find it here:
    https://gist.github.com/wpmudev-sls/d0298dfc427dfe83493d248dfe6dd1a4

    Warm regards,
    Dimitris

    Hi Dimitris
    How would you advise adapting this to send hidden-1 in the description as per the original pre 1.14.7 gist? As this sends a pre-set text at the moment. This new code is so different it’s hard to compare.

    Also to add NO_SHIPPING in PayPal?
    Thanks

    Also by inspection this is set up to filter out any request that isn’t to the paypal sandbox, so won’t work for live.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @sallywhytehead

    I hope you are doing well.

    Our developer updated the script to work on live mode too, can you please get the most recent version?

    I pinged the developers about:

    How would you advise adapting this to send hidden-1 in the description as per the original pre 1.14.7 gist? As this sends a pre-set text at the moment. This new code is so different it’s hard to compare.

    Also to add NO_SHIPPING in PayPal?

    We will let you know once hearing back from the team.

    Best Regards
    Patrick Freitas

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @sallywhytehead

    Our devs updated the gist here
    https://gist.github.com/wpmudev-sls/d0298dfc427dfe83493d248dfe6dd1a4
    with the NO_SHIPPING flag.

    As for the field value as a description, this is going to be added to Forminator in the upcoming release so we should wait for that update.

    Warm regards,
    Dimitris

    Thread Starter Jo Waltham

    (@jowaltham)

    Hi I’m sorry for the slow response on this. As our form payments were not processing at all until today I thought testing this custom code was unwise.

    Is there a plan to roll the ability to send a purchase description into the main forminator plugin? I can’t see how to use this code to set a value for the product description based on the form name or any other field in the form.

    Also I can’t see how to edit the form code to change the field as suggested here:
    let paypal_description = $form.find( '#hidden-1' ).val();
    I can see no edit option?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Possible to pass Paypal product description’ is closed to new replies.