Merchant Account

Merchant Account: All

Returns a collection of Merchant Account objects.
  1. Java
BraintreeGateway gateway = new BraintreeGateway(
    Environment.SANDBOX,
    "MERCHANT_ID",
    "PUBLIC_KEY",
    "PRIVATE_KEY"
);

/* all returns an Iterable<merchantaccount> */
PaginatedCollection<merchantaccount> merchantAccountsIterable = gateway.merchantAccount().all();

for (MerchantAccount merchantAccount : merchantAccountsIterable) {
    System.out.println(merchantAccount.getCurrencyIsoCode());
}