See also the MerchantAccount response object.


This method is only supported for merchants using Braintree Auth.

$gateway = new Braintree\Gateway([
    'accessToken' => $merchantAccessToken,

$result = $gateway->merchantAccount()->createForCurrency([
    'currency' => 'USD'

if ($result->success) {
  print $result->merchantAccount->currencyIsoCode
This code snippet now uses PHP standard PSR-4 namespacing to load modules. Learn more.

If called with an unsupported $currency, returns a validation error. For more information see currency support.

'currency' required, string

Currency code of a supported currency. See the ISO 4217 codes.

'id' string

The ID of the merchant account, referenced when creating transactions.

See also