fix: handle 5xx during multiple capture call (#2148)

This commit is contained in:
Hrithikesh
2023-09-18 17:35:18 +05:30
committed by GitHub
parent 1ea823b048
commit e8d948efee
9 changed files with 91 additions and 0 deletions

View File

@ -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(),
},
);
}