Support

Home Forums Event Espresso Premium Adding fees only to PayPal payments

Adding fees only to PayPal payments

Posted: June 6, 2019 at 10:58 am

Viewing 7 reply threads


Zonta District 4

June 6, 2019 at 10:58 am

Hello, I’d like to add a surcharge for PayPal payments to cover the transaction / processing fees. We’ve gone ahead and done this via the advanced ticket settings. However, we also have check payments available but do not want this fee to apply to those payments. How can we accomplish this?
Thanks!


Tony

  • Support Staff

June 7, 2019 at 5:39 am

Hi there,

Currently, EE does not officially support adding surcharges to specific payment methods.

We have a snippet you can use with a checkbox/question on the registration form to add a surcharge based on the response of the question. For example a dropdown question with ‘Check’ and ‘Credit/Debit Card’ as the answers, then if the user selects the Credit/Debit Card option the snippet can add a surcharge to the transaction. However again it’s not something core supports so that also has its own issues, such as if the user selects the credit card option and navigates through to the payment options and decided to switch to Check, you can’t remove that surcharge and need to start the registration again.

If you’d like to try the above the snippet is here:

https://gist.github.com/joshfeck/1b373714910eda57a46e397df61d97bf

You need to set the ID of the custom question you are suing on Line 12, set the options available on lines 19 & 22, then setup the surcharge details to be added to the transaction HERE.


Zonta District 4

June 8, 2019 at 10:27 am

Hello,

I’ve implemented the code in a plugin file, enabled the plugin, added the checkbox then modified the code but it does not apply the fee on checkout. The new question was added to a group which was enabled on the event.
Here’s a few screenshots showing the code & question set up https://imgur.com/a/eHpJijd

Any help would be great. There doesn’t seem to be any php errors or warnings, it’s just not charging the fee. Perhaps the name of one or more of the actions have changed since this code was written?

Thanks!


Zonta District 4

June 10, 2019 at 7:04 am

Any help with this would be greatly appreciated. We need to get this event registration online asap as there are many people waiting on it. Thanks!


Zonta District 4

June 10, 2019 at 4:30 pm

Any updates? Instructions were followed precisely and the solution is not working.


Tony

  • Support Staff

June 10, 2019 at 4:54 pm

Hi there,

My apologies, I ran through the code and it looks like I was mistaken when I mentioned you could use a checkbox question, the switch statement used in that code will not work with a checkbox answer.

If you switch out the question you are using for a dropdown it should work fine (I’ve just tested it using a dropdown question). In this case, I’d actually advise against using a checkbox question either way as you want the user to select one of the options, a checkbox will allow all options to be selected (which is part of the reason it doesn’t work).

Switch out the question fro a dropdown, update the QST ID used in the code to match the new dropdown question and it should work fine.

Side note, ‘bumping’ (as above) will generally have the opposite effect than intended as we view threads based on last reply date/time.


Zonta District 4

June 10, 2019 at 5:27 pm

Thank you very much!


Tony

  • Support Staff

June 11, 2019 at 3:48 am

You’re most welcome.

Any further questions just let us know.

Viewing 7 reply threads

The support post ‘Adding fees only to PayPal payments’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso