mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
fix: handle 5xx during multiple capture call (#2148)
This commit is contained in:
@ -1380,6 +1380,7 @@ pub trait MultipleCaptureSyncResponse {
|
||||
fn get_connector_reference_id(&self) -> Option<String> {
|
||||
None
|
||||
}
|
||||
fn get_amount_captured(&self) -> Option<i64>;
|
||||
}
|
||||
|
||||
pub fn construct_captures_response_hashmap<T>(
|
||||
@ -1401,6 +1402,7 @@ where
|
||||
status: capture_sync_response.get_capture_attempt_status(),
|
||||
connector_response_reference_id: capture_sync_response
|
||||
.get_connector_reference_id(),
|
||||
amount: capture_sync_response.get_amount_captured(),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user