Skip to content

Commit

Permalink
refactor(connector): [Payeezy] update error message (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeetVekariya authored Nov 22, 2023
1 parent f91d4ae commit cb65370
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions crates/router/src/connector/payeezy/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,9 @@ impl TryFrom<utils::CardIssuer> for PayeezyCardType {
utils::CardIssuer::Maestro
| utils::CardIssuer::DinersClub
| utils::CardIssuer::JCB
| utils::CardIssuer::CarteBlanche => Err(errors::ConnectorError::NotSupported {
message: utils::SELECTED_PAYMENT_METHOD.to_string(),
connector: "Payeezy",
}
.into()),
| utils::CardIssuer::CarteBlanche => Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("Payeezy"),
))?,
}
}
}
Expand Down Expand Up @@ -262,11 +260,9 @@ fn get_payment_method_data(
| api::PaymentMethodData::Reward
| api::PaymentMethodData::Upi(_)
| api::PaymentMethodData::Voucher(_)
| api::PaymentMethodData::GiftCard(_) => Err(errors::ConnectorError::NotSupported {
message: utils::SELECTED_PAYMENT_METHOD.to_string(),
connector: "Payeezy",
}
.into()),
| api::PaymentMethodData::GiftCard(_) => Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("Payeezy"),
))?,
}
}

Expand Down

0 comments on commit cb65370

Please sign in to comment.