mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
refactor(connector): use utility function to raise payment method not implemented errors (#1847)
Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com>
This commit is contained in:
@ -74,6 +74,10 @@ pub trait RouterData {
|
||||
fn get_quote_id(&self) -> Result<String, Error>;
|
||||
}
|
||||
|
||||
pub fn get_unimplemented_payment_method_error_message(connector: &str) -> String {
|
||||
format!("Selected paymemt method through {}", connector)
|
||||
}
|
||||
|
||||
impl<Flow, Request, Response> RouterData for types::RouterData<Flow, Request, Response> {
|
||||
fn get_billing(&self) -> Result<&api::Address, Error> {
|
||||
self.address
|
||||
|
||||
Reference in New Issue
Block a user