developer:soap:methods:getsupportedcurrencies

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:methods:getsupportedcurrencies [2008/06/23 12:38]
tem fix howto links
developer:soap:methods:getsupportedcurrencies [2009/07/06 10:23]
epouchak
Line 1: Line 1:
-====== getSupportedCurrencies ======+<embed ..:​contents/>​====== getSupportedCurrencies ======
  
 Retrieves an array of currencies supported by a merchant account. Retrieves an array of currencies supported by a merchant account.
Line 11: Line 11:
 To view the account details for a particular merchant account, including whether or not the account supports multi-currency processing, use the [[getAccountDetails]] method. To view the account details for a particular merchant account, including whether or not the account supports multi-currency processing, use the [[getAccountDetails]] method.
  
-Each currency type is assigned a three digit numeric code (ie: USD=840, Japanese yen=392). You must enter the three digit code for both the original currency and the converted currency in a conversion. The Currency Code list provides all of the three digit codes and their corresponding currencies for international currency conversion.+Each currency type is assigned a three digit numeric code (ie: USD=840, Japanese yen=392). You must enter the three digit code for both the original currency and the converted currency in a conversion. The [[developer/​currencycode|Currency Code]] list provides all of the three digit codes and their corresponding currencies for international currency conversion.
  
 If you would like to add support for multi-currency transactions to a merchant account please contact the merchant'​s service provider or customer service. If you would like to add support for multi-currency transactions to a merchant account please contact the merchant'​s service provider or customer service.
Line 19: Line 19:
 ===== Syntax ===== ===== Syntax =====
  
-[[developer:​soap:​objects:​CurrencyObject]] **getSupportedCurrencies** ( [[developer:​soap:​objects:​ueSecurityToken]] Token ) +[[..:​objects:​CurrencyObject]] **getSupportedCurrencies** ( [[..:​objects:​ueSecurityToken]] Token ) 
  
  
Line 25: Line 25:
  
 ^Type     ​^Name ​    ​^Description ​   ^ ^Type     ​^Name ​    ​^Description ​   ^
-|[[developer:​soap:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction. |+|[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction. |
  
  
 ===== Return Value ===== ===== Return Value =====
  
-|[[developer:​soap:​objects:​CurrencyObject]] |Returns an array of currencies supported by the merchant account for use with multi-currency processing. |+|[[..:​objects:​CurrencyObject]] |Returns an array of currencies supported by the merchant account for use with multi-currency processing. |
  
 ===== Examples ===== ===== Examples =====
Line 38: Line 38:
 ==== PHP ==== ==== PHP ====
  
-For directions on how to set up the WSDL link and create "​$token"​ and "​$client,"​ see the [[developer:​soap:​howto:​php|PHP Soap guide]]. ​+For directions on how to set up the WSDL link and create "​$token"​ and "​$client,"​ see the [[..:​howto:​php|PHP Soap guide]]. ​ 
 <code php> <code php>
 <?​php ​ <?​php ​
- 
- 
  
 try {  try { 
  
-   $currencies = $client->​getSupportedCurrencies($token);​  +  ​$currencies = $client->​getSupportedCurrencies($token);​  
-   ​print_r($currencies);​  +  print_r($currencies); ​                            ​ 
-                         ​ +  ​} ​ 
-     + 
-              +catch(SoapFault $e) {  
-catch(SoapFault $e) {  +  die("​soap fault: " .$e->​getMessage(). "​\n\nRequest:​ " .    
-     ​die("​soap fault: " .$e->​getMessage(). "​\n\nRequest:​ " .    +  $this->​client->​__getLastResponse()); ​        
-     ​$this->​client->​__getLastResponse()); ​        +
  
  
developer/soap/methods/getsupportedcurrencies.txt · Last modified: 2009/07/06 10:23 by epouchak

Page Tools