Currency Exchange
The Ewire Currency Exchange, with this you can accept Pounds, Dollars and Euros.
The Ewire Currency Exchange, works by making a call to a Ewire URL with a number of specified values.
The currency rates from the Danish National bank is collected and based on informations from central banks in Europe on daily base. The new currencies are calculated into DKK, SEK or NOK depending on the Ewire merchant account base currency.
Technical Overview
The currency exchange does not need any md5 validation. It is URL which returns a xml result, which then can interpret by e.g. a xml parser.
The URL above returns an xml result, which looks like this:
- myCurrency - Is the currency of your webshop
- myAmount - Is the amount you wanted converted
- foreignCurrency - Is the currency of your Ewire account (DKK,
NOK or SEK)
foreignAmount - Is the converted amount 100 USD is
532,39 DKK . This is the amount
that shall be used for the given
netpayment.
- errorMessage - The URL above gives a error message, because the
currency is not supported by the Ewire Currency Exchange, the only
supported is: USD,GBP and Euros.
|
https://secure.ewire.dk/service/service/exchangeService?foreignCurrencyCode=DKK&myCurrencyCode=USD&myAmount=100 |
The URL above returns an xml result, which looks like this:
|
<ExchangeService> <myCurrency>USD</myCurrency> <myAmount>100</myAmount> <foreignCurrency>DKK</foreignCurrency> <foreignAmount>532,39</foreignAmount> <errorMessage /> </ExchangeService> |
- myCurrency - Is the currency of your webshop
- myAmount - Is the amount you wanted converted
- foreignCurrency - Is the currency of your Ewire account (DKK,
NOK or SEK)
foreignAmount - Is the converted amount 100 USD is 532,39 DKK . This is the amount that shall be used for the given netpayment.
|
https://secure.ewire.dk/service/service/exchangeService?foreignCurrencyCode=DKK&myCurrencyCode= asd&myAmount=100 |
- errorMessage - The URL above gives a error message, because the currency is not supported by the Ewire Currency Exchange, the only supported is: USD,GBP and Euros.
|
<ExchangeService> <myCurrency /> <myAmount /> <foreignCurrency /> <foreignAmount /> <errorMessage>invalid myCurrencyCode</errorMessage> </ExchangeService> |
Technical Values
Currency Codes
|
Currency |
Currency Code |
|
British Pounds |
GBP |
|
US Dollars |
USD |
|
Euros |
EUR |
URL Values
|
Name |
Value |
Type |
|
foreignCurrencyCode |
DKK, NOK or SEK |
char (3) |
|
myCurrencyCode |
USD, GBP or EUR |
char (3) |
|
myAmount |
Amount (18,38) |
Int |


