developer:soap:objects:currencyobject

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap:objects:currencyobject [2008/02/25 08:34]
nell
developer:soap:objects:currencyobject [2009/07/15 11:41]
epouchak
Line 1: Line 1:
-====== CurrencyObject ======+<embed ..:​contents/>​====== CurrencyObject ======
  
 Describes a currency supported by the merchant'​s account. Describes a currency supported by the merchant'​s account.
Line 21: Line 21:
 ===== Places Used ===== ===== Places Used =====
  
-[[developer:​soap:​methods:​getSupportedCurrencies]] ​+[[..:​methods:​getSupportedCurrencies]] ​
  
 ===== Examples ===== ===== 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> ​
 +
 +
 +==== 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>​
developer/soap/objects/currencyobject.txt ยท Last modified: 2009/07/15 11:41 by epouchak

Page Tools