mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
fix: surcharge related status and rules fix (#2974)
Co-authored-by: Bernard Eugine <114725419+bernard-eugine@users.noreply.github.com>
This commit is contained in:
@ -113,7 +113,8 @@ where
|
||||
enums::AttemptStatus::Charged => {
|
||||
let captured_amount =
|
||||
types::Capturable::get_capture_amount(&self.request, payment_data);
|
||||
if Some(payment_data.payment_attempt.get_total_amount()) == captured_amount {
|
||||
let total_capturable_amount = payment_data.payment_attempt.get_total_amount();
|
||||
if Some(total_capturable_amount) == captured_amount {
|
||||
enums::AttemptStatus::Charged
|
||||
} else if captured_amount.is_some() {
|
||||
enums::AttemptStatus::PartialCharged
|
||||
|
||||
Reference in New Issue
Block a user