mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
feat(compatibility): added support to connector txn id (#2606)
Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in>
This commit is contained in:
@ -479,6 +479,7 @@ pub struct StripePaymentIntentResponse {
|
||||
pub capture_method: Option<api_models::enums::CaptureMethod>,
|
||||
pub name: Option<masking::Secret<String>>,
|
||||
pub last_payment_error: Option<LastPaymentError>,
|
||||
pub connector_transaction_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Default, Eq, PartialEq, Serialize, Debug)]
|
||||
@ -551,6 +552,7 @@ impl From<payments::PaymentsResponse> for StripePaymentIntentResponse {
|
||||
},
|
||||
error_type: code,
|
||||
}),
|
||||
connector_transaction_id: resp.connector_transaction_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -438,6 +438,7 @@ pub struct StripeSetupIntentResponse {
|
||||
pub next_action: Option<StripeNextAction>,
|
||||
pub last_payment_error: Option<LastPaymentError>,
|
||||
pub charges: payment_intent::Charges,
|
||||
pub connector_transaction_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Default, Eq, PartialEq, Serialize)]
|
||||
@ -501,6 +502,7 @@ impl From<payments::PaymentsResponse> for StripeSetupIntentResponse {
|
||||
error_type: code,
|
||||
}
|
||||
}),
|
||||
connector_transaction_id: resp.connector_transaction_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user