Support

Home Forums Event Espresso Premium Payment fee per gateway

Payment fee per gateway

Posted: February 8, 2016 at 1:11 am

Viewing 5 reply threads


Railpromo

February 8, 2016 at 1:11 am

Dear support team,

Referring to this thread (https://eventespresso.com/topic/add-paypal-fee-to-transaction/), I would like to ask whether the plugin mentioned is already available (I didn’t see it so far), or what timeline you expect this plugin?

Thanks in advance.

Best,
Luc


Lorenzo Orlando Caum

  • Support Staff

February 8, 2016 at 7:26 am

Hi Luc,

The sample code snippet there will allow you to charge a transaction fee to the attendee registrant. However, it triggers an overpaid status on the transaction since the fee pushes the amount paid over the cost of the tickets for the registrations.

We are still planning on making this available through our Payment Methods Pro add-on. The initial release which is available on GitHub will let you assign certain payment options to certain events.


Lorenzo


Railpromo

February 8, 2016 at 11:43 am

Dear Lorenzo,

That snippet apparently is only applicable to PayPal. It makes my whole website crash on a php error by the way.
Any option to inset a payment fee for all payment methods at once?

Best,
Luc


Josh

  • Support Staff

February 8, 2016 at 1:29 pm

Like a surcharge per order, regardless of the gateway? Yes there’s a filter hook that lets you add a % surcharge to the order as a line item. Here’s an example that shows how to add the surcharge if they’ve selected the Invoice Payment Method. With a bit of custom coding, the surcharge could be applied to more gateways, or all of them.


Railpromo

February 9, 2016 at 4:09 am

Dear Josh,
Thank you – this is helpful. Could you tell me how to make it a fixed price per transaction? Recoding it such that it will work for all payment methods won’t be a problem for me.


Josh

  • Support Staff

February 9, 2016 at 10:18 am

You might be able to use the add_unrelated_item() method from the EEH_Line_Item class to make it a fixed price per transaction. If you open up /core/helpers/EEH_Line_Item.helper.php you’ll find that the add_unrelated_item() method has a LIN_unit_price argument.

Viewing 5 reply threads

The support post ‘Payment fee per gateway’ 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