Skip to content

Commit

Permalink
feat(compatibility): added support to connector txn id
Browse files Browse the repository at this point in the history
  • Loading branch information
sahkal committed Oct 16, 2023
1 parent b3b7ca3 commit 4b324d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -551,6 +552,7 @@ impl From<payments::PaymentsResponse> for StripePaymentIntentResponse {
},
error_type: code,
}),
connector_transaction_id: resp.connector_transaction_id,
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions crates/router/src/compatibility/stripe/setup_intents/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -501,6 +502,7 @@ impl From<payments::PaymentsResponse> for StripeSetupIntentResponse {
error_type: code,
}
}),
connector_transaction_id: resp.connector_transaction_id,
}
}
}
Expand Down

0 comments on commit 4b324d5

Please sign in to comment.