Support

Home Forums Event Espresso Premium Add PayPal fee per transaction

Add PayPal fee per transaction

Posted: February 9, 2018 at 1:10 am


Springmount Raceway

February 9, 2018 at 1:10 am

Hello, I have done much searching via Google and found a number of methods to implement fees, in particular the link below seems the best method.

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_add_cart_modifier.php

My problem is once implementing it shows no fee on EE. When proceeding to PayPal it shows a discount instead of a fee. If I cancel out it shows the fee when back at EE. If returning to PayPal again the fee works properly.

Any insight in to why this isn’t working correctly?

As an example, say the fee is $5 and ticket is $100.

Event Espresso shows $100, no fee.
Proceed to PayPal. Cost is $95.
Cancel out and return to Event Espresso.
Ticket $100 + $5 fee.

I’m looking to implement a 2.2% fee. Seen a lot of “against terms of service” but this is OK far as I can tell according to link below…..
https://www.paypal.com/au/selfhelp/article/can-i-surcharge-paypal-payments-faq3580

Thanks in advance.


Tony

  • Support Staff

February 9, 2018 at 3:55 am

Hi there,

Which specific PayPal Payment method are you using?

I’ll test the above on a test site to see what is happening.

Seen a lot of “against terms of service” but this is OK far as I can tell according to link below…..

What you don’t mention above, is if you are using other payment methods.

What is against PayPal’s TOS is to dissuade from using PayPal in favour of another payment method, let’s say you offer both PayPal and Auth.net, but you add PayPal’s fees to the customer when using PayPal.


Springmount Raceway

February 9, 2018 at 6:07 am

Thanks Tony. Only using PayPal or wire transfer.


Tony

  • Support Staff

February 9, 2018 at 6:13 am

There’s multiple ‘PayPal’ payment methods, can you let me know which specific one you are using?

PayPal standard, Express, Pro, Payflow?


Springmount Raceway

February 9, 2018 at 7:05 am

Sorry, thought I mentioned it. PayPal Standard.


Josh

  • Support Staff

February 12, 2018 at 3:07 pm

Hi there,

The bc_add_cart_modifier.php actually cannot be used to add a surcharge to an online payment method like PayPal. It was primarily intended to add a surcharge to an offline payment method like Pay by Invoice.

Another method that you could use to add a fee if they pay by PayPal would be use a hook to add the surcharge to the order before they get to the payment options page, like in this example:

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

As an aside, PayPal Standard for Event Espresso is actually no longer supported and has been replaced by PayPal Express. You can use the same PayPal account and get up and running with PayPal Express by following this guide:
https://eventespresso.com/wiki/paypal-express-payment-gateway/#locate


Springmount Raceway

February 12, 2018 at 11:55 pm

The problem with this method is it relies on honesty based on a checkbox, no? Strange the method above is mentioned in many other queries similar to mine and why I was following this path. Odd that it discounts initially and only after cancelling out of PayPal it applies.

Thanks for the tip regarding PayPal Standard. Have been using for years and was unaware. Will look to amend.


Josh

  • Support Staff

February 13, 2018 at 1:01 pm

The problem with this method is it relies on honesty based on a checkbox, no?

Of course it’s a problem.

The support post ‘Add PayPal fee per transaction’ 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