mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor: add surcharge_applicable to payment_intent and remove surcharge_metadata from payment_attempt (#2642)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -140,7 +140,6 @@ impl PaymentAttemptInterface for MockDb {
|
||||
multiple_capture_count: payment_attempt.multiple_capture_count,
|
||||
connector_response_reference_id: None,
|
||||
amount_capturable: payment_attempt.amount_capturable,
|
||||
surcharge_metadata: payment_attempt.surcharge_metadata,
|
||||
updated_by: storage_scheme.to_string(),
|
||||
};
|
||||
payment_attempts.push(payment_attempt.clone());
|
||||
|
||||
@ -104,6 +104,7 @@ impl PaymentIntentInterface for MockDb {
|
||||
payment_link_id: new.payment_link_id,
|
||||
payment_confirm_source: new.payment_confirm_source,
|
||||
updated_by: storage_scheme.to_string(),
|
||||
surcharge_applicable: new.surcharge_applicable,
|
||||
};
|
||||
payment_intents.push(payment_intent.clone());
|
||||
Ok(payment_intent)
|
||||
|
||||
Reference in New Issue
Block a user