fix(payment-methods): fetch payment method details in payouts flow (#8729)

This commit is contained in:
Kashif
2025-07-24 20:31:22 +05:30
committed by GitHub
parent 8c7ddaa46d
commit 56d8ed7245
3 changed files with 24 additions and 2 deletions

View File

@ -229,6 +229,12 @@ pub trait PaymentMethodsController {
merchant_id: &id_type::MerchantId,
card_network: Option<common_enums::CardNetwork>,
) -> errors::PmResult<()>;
#[cfg(feature = "v1")]
async fn get_card_details_from_locker(
&self,
pm: &payment_methods::PaymentMethod,
) -> errors::PmResult<api::CardDetailFromLocker>;
}
pub async fn create_encrypted_data<T>(