mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(connector): [Noon] change error message from not supported to not implemented (#2849)
Co-authored-by: swangi-kumari <swangi.12015941@lpu.in>
This commit is contained in:
@ -275,10 +275,9 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NoonPaymentsRequest {
|
|||||||
| api_models::payments::WalletData::WeChatPayQr(_)
|
| api_models::payments::WalletData::WeChatPayQr(_)
|
||||||
| api_models::payments::WalletData::CashappQr(_)
|
| api_models::payments::WalletData::CashappQr(_)
|
||||||
| api_models::payments::WalletData::SwishQr(_) => {
|
| api_models::payments::WalletData::SwishQr(_) => {
|
||||||
Err(errors::ConnectorError::NotSupported {
|
Err(errors::ConnectorError::NotImplemented(
|
||||||
message: conn_utils::SELECTED_PAYMENT_METHOD.to_string(),
|
conn_utils::get_unimplemented_payment_method_error_message("Noon"),
|
||||||
connector: "Noon",
|
))
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
api::PaymentMethodData::CardRedirect(_)
|
api::PaymentMethodData::CardRedirect(_)
|
||||||
@ -293,10 +292,9 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NoonPaymentsRequest {
|
|||||||
| api::PaymentMethodData::Voucher(_)
|
| api::PaymentMethodData::Voucher(_)
|
||||||
| api::PaymentMethodData::GiftCard(_)
|
| api::PaymentMethodData::GiftCard(_)
|
||||||
| api::PaymentMethodData::CardToken(_) => {
|
| api::PaymentMethodData::CardToken(_) => {
|
||||||
Err(errors::ConnectorError::NotSupported {
|
Err(errors::ConnectorError::NotImplemented(
|
||||||
message: conn_utils::SELECTED_PAYMENT_METHOD.to_string(),
|
conn_utils::get_unimplemented_payment_method_error_message("Noon"),
|
||||||
connector: "Noon",
|
))
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}?,
|
}?,
|
||||||
Some(item.request.currency),
|
Some(item.request.currency),
|
||||||
|
|||||||
Reference in New Issue
Block a user