mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
feat(router): add generic merchant static routing config (#362)
This commit is contained in:
@ -189,11 +189,11 @@ where
|
||||
|
||||
async fn get_connector<'a>(
|
||||
&'a self,
|
||||
merchant_account: &storage::MerchantAccount,
|
||||
_merchant_account: &storage::MerchantAccount,
|
||||
state: &AppState,
|
||||
_request: &api::PaymentsRetrieveRequest,
|
||||
) -> CustomResult<api::ConnectorCallType, errors::ApiErrorResponse> {
|
||||
helpers::get_connector_default(merchant_account, state, None).await
|
||||
helpers::get_connector_default(state, None).await
|
||||
}
|
||||
|
||||
#[instrument(skip_all)]
|
||||
@ -255,11 +255,11 @@ where
|
||||
|
||||
async fn get_connector<'a>(
|
||||
&'a self,
|
||||
merchant_account: &storage::MerchantAccount,
|
||||
_merchant_account: &storage::MerchantAccount,
|
||||
state: &AppState,
|
||||
_request: &api::PaymentsCaptureRequest,
|
||||
) -> CustomResult<api::ConnectorCallType, errors::ApiErrorResponse> {
|
||||
helpers::get_connector_default(merchant_account, state, None).await
|
||||
helpers::get_connector_default(state, None).await
|
||||
}
|
||||
}
|
||||
|
||||
@ -309,10 +309,10 @@ where
|
||||
|
||||
async fn get_connector<'a>(
|
||||
&'a self,
|
||||
merchant_account: &storage::MerchantAccount,
|
||||
_merchant_account: &storage::MerchantAccount,
|
||||
state: &AppState,
|
||||
_request: &api::PaymentsCancelRequest,
|
||||
) -> CustomResult<api::ConnectorCallType, errors::ApiErrorResponse> {
|
||||
helpers::get_connector_default(merchant_account, state, None).await
|
||||
helpers::get_connector_default(state, None).await
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user