Topics

Function ipConvertCurrency()

ipConvertCurrency — Convert price from one currency to another. This method throws ipConvertCurrency job. Any plugin that claims knowing how to convert one currency to another can provide the answer. This method has no default implementation. So if you will request currency conversion that's not covered by any of the plugins, you will get null as the result.

Description:

integer ipConvertCurrency ( integer $amount , string $sourceCurrency , mixed $destinationCurrency )

Convert price from one currency to another. This method throws ipConvertCurrency job. Any plugin that claims knowing how to convert one currency to another can provide the answer. This method has no default implementation. So if you will request currency conversion that's not covered by any of the plugins, you will get null as the result.

Package: ImpressPages

Parameters:

integer $amount amount in cents
string $sourceCurrency three letter uppercase currency code. Eg. USD
mixed $destinationCurrency three letter uppercase currency code. Eg. USD

Return values:

integer amount in cents
comments powered by Disqus