See also the Braintree::MerchantAccount response object.

availability

This method is only supported for merchants using Braintree Auth.

Ruby
Click to copy
Copied
gateway = Braintree::Gateway.new(
  :access_token => merchant_access_token
)

result = gateway.merchant_account.create_for_currency(
  :currency => "USD"
)

if result.success?
  puts result.merchant_account.currency_iso_code
end

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

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

Still have questions?

If you can’t find an answer, contact our Support team.