-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mandates): handle the connector_mandate creation once and only if the payment is charged #6358
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hyperswitch-bot
bot
added
the
M-database-changes
Metadata: This PR involves database schema changes
label
Oct 17, 2024
Aprabhat19
added
C-bug
Category: Bug
M-database-changes
Metadata: This PR involves database schema changes
labels
Oct 17, 2024
apoorvdixit88
previously approved these changes
Oct 17, 2024
Checks are failing @Aprabhat19 |
SanchithHegde
approved these changes
Oct 17, 2024
apoorvdixit88
approved these changes
Oct 17, 2024
Sarthak1799
approved these changes
Oct 17, 2024
sai-harsha-vardhan
approved these changes
Oct 17, 2024
SanchithHegde
merged commit Oct 17, 2024
66e8620
into
hotfix-2024.10.04.0-prod
17 of 18 checks passed
Merged
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Earlier we used to store the connector mandate id irrespective of the payments status being charged or not for 3DS flows, now we would handle the connector_mandate_id updation in payment_method once and only if the payment has a status as charged.
This PR is a hot fix for the PR
Additional Changes
Motivation and Context
How did you test it?
The payment_method would have a connector_mandate_id with it
If another CIT mandate payment is made it wouldn't be populated anymore
Make a complete authorise mandate payment , it should be saved in the payment_method, for that mca_id
Make a external 3ds mandate payment , it should be saved in the payment_method, for that mca_id
Checklist
cargo +nightly fmt --all
cargo clippy