mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(router): Add external vault support in v1 payments flow (#9274)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -9,6 +9,8 @@ use common_enums::enums as common_enums;
|
||||
use common_utils::encryption;
|
||||
use common_utils::{crypto, ext_traits, id_type, type_name, types::keymanager};
|
||||
use error_stack::ResultExt;
|
||||
#[cfg(feature = "v1")]
|
||||
use hyperswitch_domain_models::payment_methods::PaymentMethodVaultSourceDetails;
|
||||
use hyperswitch_domain_models::{merchant_key_store, payment_methods, type_encryption};
|
||||
use masking::{PeekInterface, Secret};
|
||||
#[cfg(feature = "v1")]
|
||||
@ -54,6 +56,7 @@ pub trait PaymentMethodsController {
|
||||
network_token_requestor_reference_id: Option<String>,
|
||||
network_token_locker_id: Option<String>,
|
||||
network_token_payment_method_data: crypto::OptionalEncryptableValue,
|
||||
vault_source_details: Option<PaymentMethodVaultSourceDetails>,
|
||||
) -> errors::PmResult<payment_methods::PaymentMethod>;
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -74,6 +77,7 @@ pub trait PaymentMethodsController {
|
||||
network_token_requestor_reference_id: Option<String>,
|
||||
network_token_locker_id: Option<String>,
|
||||
network_token_payment_method_data: crypto::OptionalEncryptableValue,
|
||||
vault_source_details: Option<PaymentMethodVaultSourceDetails>,
|
||||
) -> errors::PmResult<payment_methods::PaymentMethod>;
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
|
||||
Reference in New Issue
Block a user