Skip to content

Commit

Permalink
refactor: change not supported error to not implemented error
Browse files Browse the repository at this point in the history
  • Loading branch information
oscar2d2 committed Nov 11, 2023
1 parent 35494ed commit c9018d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/router/src/connector/aci/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,9 @@ impl TryFrom<&AciRouterData<&types::PaymentsAuthorizeRouterData>> for AciPayment
| api::PaymentMethodData::GiftCard(_)
| api::PaymentMethodData::CardRedirect(_)
| api::PaymentMethodData::Upi(_)
| api::PaymentMethodData::Voucher(_) => Err(errors::ConnectorError::NotSupported {
message: format!("{:?}", item.router_data.payment_method),
connector: "Aci",
})?,
| api::PaymentMethodData::Voucher(_) => Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("Aci"),
))?,
}
}
}
Expand Down

0 comments on commit c9018d8

Please sign in to comment.