Support

Home Forums Event Espresso Premium EE4 Hide payment method

EE4 Hide payment method

Posted: February 9, 2017 at 3:45 pm

Viewing 1 reply thread


cv

February 9, 2017 at 3:45 pm

Hi
I’m trying to achieve exactly what this code snipped for EE3 did but for EE4. Basically to conditionally hide a payment type.
https://gist.github.com/joshfeck/6768792#file-remove_paypal-php

I have not been able to find an example of the right action hook or filter despite hours of searching and looking at the core.

Can I get a pointer PLEASE.

Thanks
CV


Tony

  • Support Staff

February 10, 2017 at 5:56 am

Hi CV,

We have an add-on that will allow you to select specific payment methods available on your events, it has not been officially released yet but is available for testing if you’d like to try it:

https://eventespresso.com/wiki/payment-methods-pro-add-on/

However the snippet you linked to excludes a payment method from a specific event in EE3. The add-on for EE4 works in the opposite way, you would setup the payment methods to be event specific and then set which events see which payment method.

There is a filter you can use to do the same thing in EE4, FHEE__EEM_Payment_Method__get_all_for_transaction__payment_methods that passes the payment methods, transaction and scope which can be used to remove a payment method for a specific event ID if preferred.

Viewing 1 reply thread

The support post ‘EE4 Hide payment method’ 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