Support

Home Forums Event Espresso Premium How to specify which 'merchant account id" to use

How to specify which 'merchant account id" to use

Posted: May 11, 2018 at 6:06 am


scalingmatters

May 11, 2018 at 6:06 am

I’m using your Braintree Payment add-on. My Braintree account has two ‘merchant accounts’ within it (one used for US and one for New Zealand). I do not see a config option in your plugin where I can specify which of my multiple ‘merchant accounts’ to use (i.e. transactions will go to the ‘default’ merchant account on the Braintree side). Does your plugin have this config option?


Josh

  • Support Staff

May 11, 2018 at 6:20 am

The payment methods pro add-on adds a feature where you can set up two instances of the Braintree gateway, then select between the two for each event. More info here:

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


scalingmatters

May 11, 2018 at 6:44 am

I think you misunderstand my need.

I don’t need two instances of the Braintree gateway. I need one instance of the Braintree gateway that allows me to configure not only the ‘merchant id’, ‘public key’ and ‘private key’… but in addition to those three values, I also need to specify the ‘merchant account id’.

Here is a link to Braintree docs concerning the ‘merchant account id’ I am referring to:

https://developers.braintreepayments.com/reference/request/transaction/sale/php#specify-merchant-account


Josh

  • Support Staff

May 11, 2018 at 6:48 am

I’m afraid there is no other way you can specify which of your multiple ‘merchant accounts’ to use other than by using the Payment Methods Pro add-on. Each instance of the gateway can point to one merchant account.


scalingmatters

May 11, 2018 at 6:53 am

Perhaps I’m missing something, but even if I use the Payment Methods Pro add-on to set up multiple instances of Braintree gateway, I’m no better off, since there you provide no way to configure the Braintree gateway such that it is using a specific ‘merchant account id’ (which again, can be thought of as a sub-account inside of my main Braintree ‘merchant id’).


Tony

  • Support Staff

May 11, 2018 at 9:12 am

You are correct in that the Payment Methods Pro add-on (PMP for short) will not help with this setup as it stands. You will need an additional option on the Braintree payment method to allow you set the ‘merchant account id’, you could then use PMP to set specific Braintree instances on specific events if needed.

Add this snippet to your site:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/payment-methods/tw_ee_braintree_merchant_account_id.php

I recommend using a custom functions plugin, we have some documentation on how to create one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That snippets adds a ‘Merchant account ID’ field to the Braintree settings form and then uses that value (if set) during the sale call to Braintree, it should allow you to do what you are requesting.

The support post ‘How to specify which 'merchant account id" to use’ 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.

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: closed

Updated by  Tony 2 months ago ago

Topic Tags

Tagged: 

Notifications

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