Braintree Auth allows you to add and list presentment currencies for a connected merchant.
Once you have completed the OAuth Flow and received an
access_token for a merchant, you can use the merchant API to add a currency:
result = Braintree::MerchantAccount.create_for_currency( :currency => "USD" ) if result.success? puts result.merchant_account.currency_iso_code end
You can view the supported currencies for a merchant by inspecting their merchant accounts:
merchant_accounts = gateway.merchant_account.all merchant_accounts.each do |merchant_account| puts merchant_account.currency_iso_code end
To add a currency for a merchant through
Braintree::MerchantAccount.create-for-currency(), all of the payment methods the merchant accepts must support the new currency. For details on which currencies are supported for each payment method, see the following references: