Support

Home Forums Event Espresso Premium Hook to filter payment gateways

Hook to filter payment gateways

Posted: May 7, 2014 at 11:13 am

Viewing 3 reply threads


Christian Shenouda

May 7, 2014 at 11:13 am

Hi,
I’m using EE4. I would like to offer different prices for the different gateways I have to compensate for the payment processing surcharges. Now, since EE doesn’t offer gateway specific surcharges I thought I could create different tickets, let’s say “Standard – PayPal” and “Standard – Mijireh”. Is there a hook, a filter I can use in code where I can prevent a gateway option from showing up in the checkout process when a certain ticket type is selected?
Many Thanks.


Garth

  • Support Staff

May 7, 2014 at 12:04 pm

Hi Christian,

How are you today?

There is not an existing hook to filter the payment options based upon the ticket selection. At this point it would be best if you requested access to our private GitHub repo and submit a pull request for us to add the hook(s) and filter(s) you need into the core files so that you do not lose those hooks when updating.

https://eventespresso.com/developers/


Josh

  • Support Staff

May 7, 2014 at 12:05 pm

Hi Christian,

Not currently. If you see a place where a hook can help make this happen, please submit a pull request. Here are some instructions on how to get set up on Event Espresso’s Github repo:

https://eventespresso.com/developers/request-repo-access/


Garth

  • Support Staff

May 7, 2014 at 12:28 pm

You should also consider the outcome if someone tries to select multiple tickets that filter different gateways.

You might instead consider submitting a pull request for a hook that allows you to automatically adjust the surcharge based on the gateway selection.


Christian Shenouda

May 11, 2014 at 5:48 pm

Thank you for your replies. I will take a look at the code.

Viewing 3 reply threads

The support post ‘Hook to filter payment gateways’ 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