feat: payment processor token for recurring payments (#5508)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Prajjwal Kumar
2024-08-08 19:39:46 +05:30
committed by GitHub
parent 9dda292ca2
commit 0cbbc92a43
17 changed files with 211 additions and 28 deletions

View File

@ -120,4 +120,14 @@ pub struct MandateListConstraints {
pub enum RecurringDetails {
MandateId(String),
PaymentMethodId(String),
ProcessorPaymentToken(ProcessorPaymentToken),
}
/// Processor payment token for MIT payments where payment_method_data is not available
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
pub struct ProcessorPaymentToken {
pub processor_payment_token: String,
#[schema(value_type = Connector, example = "stripe")]
pub connector: api_enums::Connector,
pub merchant_connector_id: String,
}