Merchant Account
Merchant Account: Create For Currency
See also the Merchant Account response object.
Availability
This method is only supported for merchants using Braintree Auth.
- PHP
$gateway = new Braintree\Gateway([
'accessToken' => $merchantAccessToken,
]);
$result = $gateway->merchantAccount()->createForCurrency([
'currency' => 'USD'
]);
if ($result->success) {
print $result->merchantAccount->currencyIsoCode
}
If called with an unsupported currency, returns a validation error . For more information see currency support .
Parameters
'currency'
stringCurrency code of a supported currency. See the ISO 4217 codes.
'id'
stringThe ID of the merchant account, referenced when creating transactions.