developer:soap-1.4:methods:currencyconversion

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
Last revision Both sides next revision
developer:soap-1.4:methods:currencyconversion [2010/08/03 15:10]
irina
developer:soap-1.4:methods:currencyconversion [2010/08/13 16:36]
irina
Line 23: Line 23:
 ^Type     ​^Name ​    ​^Description ​    ^ ^Type     ​^Name ​    ​^Description ​    ^
 |[[..:​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.|
-|integer ​|FromCurrency |Currency code funds will be converted from.| +|string ​|FromCurrency |Currency code funds will be converted from.| 
-|integer ​|ToCurrency |Currency code funds will be converted to.|+|string ​|ToCurrency |Currency code funds will be converted to.|
 |double |Amount |Amount of currency to be converted.| |double |Amount |Amount of currency to be converted.|
  
Line 69: Line 69:
 </​code>​ </​code>​
  
 +==== .NET C# ====
 +<code c>
 +            string from = "​840";​
 +            string to = "​978";​
 +            int amount = 50;
 +
 +            usaepay.CurrencyConversion response = new usaepay.CurrencyConversion();​
 +
 +            try
 +            {
 +                response = client.currencyConversion(token,​ from, to, amount);
 +                MessageBox.Show(string.Concat(response.Amount));​
 +            }
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
  
 ===== Change History ===== ===== Change History =====
  
 ^ Version ^ Change ^ ^ Version ^ Change ^
 +| [[developer:​soap-1.4:​methods:​currencyconversion|1.4]] | FromCurrency and ToCurrency changed from integer to string |
 | [[developer:​soap-1.1:​methods:​currencyconversion|1.1]] | Method added prior to soap-1.1 | | [[developer:​soap-1.1:​methods:​currencyconversion|1.1]] | Method added prior to soap-1.1 |
developer/soap-1.4/methods/currencyconversion.txt · Last modified: 2010/09/02 17:39 by irina

Page Tools