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
Last revision Both sides next revision
developer:soap:objects:currencyobject [2008/02/25 08:34]
nell
developer:soap:objects:currencyobject [2008/05/07 15:25]
charlie
Line 25: Line 25:
 ===== 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