Support

Home Forums Event Espresso Premium EE4: Retreving Custom Payment (OnSite) Gateway Admin Settings

EE4: Retreving Custom Payment (OnSite) Gateway Admin Settings

Posted: August 16, 2016 at 6:33 am


George

August 16, 2016 at 6:33 am

Hello,

Please how do i retrieve a custom gateway admin setting within the “do_direct_payment” function located in EEG_XXX_Onsite.gateway.php file?

Thanks for your help.


Tony

  • Support Staff

August 16, 2016 at 6:55 am

Hi there,

So you’ve added your own custom setting to a gateway via extra_meta and need to use the value?

You can use $this->_{array-key}

For example if you added a ‘test_transactions’ field, you would use:

$this->_test_transactions;


George

August 16, 2016 at 8:12 am

Wow!

Worked like a charm.

thanks!

The support post ‘EE4: Retreving Custom Payment (OnSite) Gateway Admin 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