Skip to content

Commit

Permalink
update mandate currency
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayaFoiger committed Jan 17, 2024
1 parent bd02afa commit d9ad843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/connector/noon/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NoonPaymentsRequest {
let max_amount = match &mandate_data.mandate_type {
Some(data_models::mandates::MandateDataType::SingleUse(mandate))
| Some(data_models::mandates::MandateDataType::MultiUse(Some(mandate))) => {
conn_utils::to_currency_base_unit(mandate.amount, item.request.currency)
conn_utils::to_currency_base_unit(mandate.amount, mandate.currency)
}
_ => Err(errors::ConnectorError::MissingRequiredField {
field_name: "mandate_data",
Expand Down

0 comments on commit d9ad843

Please sign in to comment.