Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

626 B
Raw Blame
//! Request-scoped vault tokens; never persist them in payout records.

#[derive(Clone, Debug)]
pub enum ExternalVaultPayoutMethodData {
    Card(Box<ExternalVaultPayoutCardData>),
}

/// Opaque vault tokens bypass PAN validation and local detokenization.
#[derive(Clone, Debug)]
pub struct ExternalVaultPayoutCardData {
    pub card_number: hyperswitch_masking::Secret<String>,
    pub expiry_month: hyperswitch_masking::Secret<String>,
    pub expiry_year: hyperswitch_masking::Secret<String>,
    pub card_holder_name: Option<hyperswitch_masking::Secret<String>>,
    pub card_network: Option<common_enums::CardNetwork>,
}