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.
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?
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.