mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix(mandates): handle the connector_mandate creation once and only if the payment is charged (#6327)
This commit is contained in:
@ -180,6 +180,7 @@ impl PaymentAttemptInterface for MockDb {
|
||||
customer_acceptance: payment_attempt.customer_acceptance,
|
||||
organization_id: payment_attempt.organization_id,
|
||||
profile_id: payment_attempt.profile_id,
|
||||
connector_mandate_detail: payment_attempt.connector_mandate_detail,
|
||||
};
|
||||
payment_attempts.push(payment_attempt.clone());
|
||||
Ok(payment_attempt)
|
||||
|
||||
Reference in New Issue
Block a user