mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor(payment_intent_v2): payment intent fields refactoring (#5880)
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -796,6 +796,18 @@ async fn get_selected_config_from_redis(
|
||||
Ok(selected_config)
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
pub async fn retrieve_payment_method_from_auth_service(
|
||||
state: &SessionState,
|
||||
key_store: &domain::MerchantKeyStore,
|
||||
auth_token: &payment_methods::BankAccountTokenData,
|
||||
payment_intent: &PaymentIntent,
|
||||
_customer: &Option<domain::Customer>,
|
||||
) -> RouterResult<Option<(domain::PaymentMethodData, enums::PaymentMethod)>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
pub async fn retrieve_payment_method_from_auth_service(
|
||||
state: &SessionState,
|
||||
key_store: &domain::MerchantKeyStore,
|
||||
@ -839,13 +851,6 @@ pub async fn retrieve_payment_method_from_auth_service(
|
||||
"error while fetching merchant_connector_account from merchant_id and connector name",
|
||||
)?;
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
let mca = {
|
||||
let _ = merchant_account;
|
||||
let _ = connector;
|
||||
todo!()
|
||||
};
|
||||
|
||||
let auth_type = pm_auth_helpers::get_connector_auth_type(mca)?;
|
||||
|
||||
let BankAccountAccessCreds::AccessToken(access_token) =
|
||||
|
||||
Reference in New Issue
Block a user