CurrencyObject

Describes a currency supported by the merchant's account.

Description

This object describes a currency supported by the merchant. For a full list of all currencies supported by the gateway see the Currency Code list.

To add support for additional currencies to your account, please contact customer service.

Properties

Type Name Description
integer NumericCode 3 digit numeric currency code to be used when processing transactions in the corresponding currency.
string TextCode 3 character currency code (ie: USD or EUR).
string Currency Full name of currency (ie: US Dollars or Euros).
double Rate Currency's current conversion rate. This is the conversion rate to the merchant's specified settling currency.
integer DecimalPlaces Number of positions to the right of the decimal (or whole units separator). Used for rounding (ie for USD 12.88, DecimalPlaces=2, for Japanese Yen 512 DecimalPlaces=0).

Places Used

getSupportedCurrencies

Examples

PHP

    <?php
    // for directions on how to set up the  
    // WSDL link and create "$token" and "$client,"
    // see: [http://help.newtekgateway.com/developer/soap-api/howto/php/](http://help.newtekgateway.com/developer/soap-api/howto/php/)

    //Note: getSupportedCurrencies returns an array of currency
    //objects.  Not a single object with all supported currencies.

    $CurrencyObjects=$this->client->getSupportedCurrencies($this->token);

    echo $CurrencyObjects[0]->Currency;

    ?>

.NET VB

    Dim response() As newtek.CurrencyObject


            response = client.getSupportedCurrencies(token)
            MsgBox(response.Length)

.NET C

    try
                {
                    newtek.CurrencyObject[] currency = client.getSupportedCurrencies(token);
                    MessageBox.Show(string.Concat(currency.Length));
                }

XML

    <item xsi:type="ns1:CurrencyObject">
    <Currency xsi:type="xsd:string">Australian Dollars</Currency>
    <DecimalPlaces xsi:type="xsd:integer">2</DecimalPlaces>
    <NumericCode xsi:type="xsd:integer">36</NumericCode>
    <Rate xsi:type="xsd:double">1.1284389176</Rate>
    <TextCode xsi:type="xsd:string">AUD</TextCode>
    </item>