developer:soap-1.6:objects:currencyobject

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:soap-1.6:objects:currencyobject [2012/08/04 11:37] (current)
tem created
Line 1: Line 1:
 +<embed ..:​contents/>​====== 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 [[developer:​currencycode|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 =====
 +
 +[[..:​methods:​getSupportedCurrencies]] ​
 +
 +===== Examples =====
 +
 +==== PHP ====
 +
 +<code php>
 +<?​php ​
 +// for directions on how to set up the  ​
 +// WSDL link and create "​$token"​ and "​$client," ​
 +// see: http://​wiki.usaepay.com/​developer/​soap/​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;​
 +
 +?> 
 +</​code> ​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim response() As usaepay.CurrencyObject
 + 
 + 
 +        response = client.getSupportedCurrencies(token)
 +        MsgBox(response.Length)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +try
 +            {
 +                usaepay.CurrencyObject[] currency = client.getSupportedCurrencies(token);​
 +                MessageBox.Show(string.Concat(currency.Length));​
 +            }
 +
 +</​code>​
 +
 +==== XML ====
 +
 +<code 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>​
 +</​code>​
 +
 +===== Change History =====
 +
 +^ Version ^ Change ^
 +| [[developer:​soap-1.1:​objects:​currencyobject|1.1]] | Method added prior to soap-1.1 |
developer/soap-1.6/objects/currencyobject.txt ยท Last modified: 2012/08/04 11:37 by tem

Page Tools