diff --git a/crates/router/src/connector/iatapay/transformers.rs b/crates/router/src/connector/iatapay/transformers.rs index 5283e82c2450..14b37d1418d1 100644 --- a/crates/router/src/connector/iatapay/transformers.rs +++ b/crates/router/src/connector/iatapay/transformers.rs @@ -47,7 +47,7 @@ impl { type Error = error_stack::Report; fn try_from( - (_currency_unit, _currency, _amount, item): ( + (currency_unit, currency, amount, item): ( &types::api::CurrencyUnit, types::storage::enums::Currency, i64, @@ -55,7 +55,7 @@ impl ), ) -> Result { Ok(Self { - amount: connector_util::to_currency_base_unit_asf64(_amount, _currency)?, + amount: connector_util::get_amount_as_f64(currency_unit, amount, currency)?, router_data: item, }) }