Support

Home Forums Event Espresso Premium How to add a field to payment settings

How to add a field to payment settings

Posted: February 17, 2022 at 5:12 pm

Viewing 2 reply threads


careertraining

February 17, 2022 at 5:12 pm

Would you give me some direction on how to add a field to a payment gateway’s settings page?

I’ve dug around and found this filter that looks promising (below), but could use a tip on how to add the field. I want a float value, but could settle for an int or text.

FHEE__EE_PMT_SquareOnsite__generate_new_settings_form__form_filtering


Tony

  • Support Staff

February 21, 2022 at 7:07 am

Hi there,

That filter can indeed be used to add a field to the form as it’s filtering the entire form, to do so you’ll need to be familiar with our Form system model:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/J–EE4-Forms-System/ee-forms-system-overview.md

Can you let me know what you are trying to do? I can likely give you an example if I know a little more about what you are saving and where you want to use it.


careertraining

February 23, 2022 at 8:08 pm

I already created a custom surcharge for a specific gateway (squareonsite). I hardcoded the amount and now want to expose that field on the gateway settings page.

Viewing 2 reply threads

The support post ‘How to add a field to payment settings’ 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