Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

imJohnBon's avatar

Confused about Braintree integration

Has anyone ever integrated with Braintree before? I'm having a little trouble figuring out some terminology regarding their support docs.

Braintree has both "Customers":

https://developers.braintreepayments.com/ios+php/reference/request/customer/create

and "Merchant/SubMerchant Accounts":

https://developers.braintreepayments.com/ios+php/reference/request/merchant-account/create

But I'm having trouble figuring out what use cases would arise where you would use one over the other. Has anyone done this before that could lend some advice?

0 likes
1 reply
bobbybouwmann's avatar

It's in the documentation:

Your merchant account ID is a unique identifier for a specific merchant account. Within your Braintree gateway, you can have multiple merchant accounts to process transactions for different businesses or currencies. If you have a single merchant account, it is not necessary to specify a merchant account ID in your API requests. If you have multiple merchant accounts and choose not to specify the merchant account ID, all requests will process through your default merchant account. Look here for more information about specifying merchant accounts in API requests.

So in most cases you won't even have to create such an account ;)

Please or to participate in this conversation.