Home Forums Event Espresso Premium Different API accounts for different events

Different API accounts for different events

Posted: August 17, 2020 at 11:16 am

August 17, 2020 at 11:16 am

I currently use AIM as my payment method.

I have a specific special event that I need to use a different account (different API Login ID and Transaction Key). I don’t want to set up a whole new site just for this one event.

is there a filter I can hook into to change the API credentials used. (prob just hard code the new API info in a function)

I was thinking something along the lines of:

add_filter( ‘event_espresso_transaction’, ‘my_custom_credentials’ );
function my_custom_credentials( $transaction_details ) {
if ( 123 == $transaction_details[‘event_id’] ) {
$transaction_details[‘api_login_id’] = ‘xxxxxxxxxxx’;
$transaction_details[‘transaction_key’] = ‘xxxxxxxxxxxxxxxxxx’;

return $transaction_details;

Does such a filter exist?


  • Support Staff

August 17, 2020 at 2:00 pm

Hi there,

No, there’s no filter for the above but you can do it using the Payment Methods Pro add-on which creates multiple ‘instances’ of a payment method and allows you to set specific events to use specific payment methods.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 2 months, 1 week ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!