Contains the results of a currency conversion.
This object contains the results of a currency conversion. The currency codes are the 3 digit numeric codes found on the Currency Code list.
In order for a merchant account to process multi-currency transactions, the account must be configured to accept transactions in multiple currencies. To determine which currencies a merchant account is authorized to accept, use the getSupportedCurrencies method, which will return an array containing the currencies that are supported by the merchant account.
|Type ||Name ||Description
|integer ||FromCurrency ||Code of currency that transaction amount is being converted from.
|double ||FromAmount ||Amount being converted. This amount is shown in the original currency, before the conversion takes place (FromCurrency).
|integer ||Currency ||Code of currency that transaction amount is being converted to.
|double ||Rate ||Conversion rate used.
|double ||Amount ||Amount converted to new currency. This amount is shown in the new currency that the amount has been converted to (Currency).
For directions on how to set up the WSDL link, create “$token” and “$client”, go to PHP Soap How-to.
$CurrencyConversionObject=$this->client->getTransaction($this->token, $FromCurrency, $ToCurrency, $Amount);