mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
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:
@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user