-
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): Allow connector_mandate_detail updation in case of 'Authorized' Payments #6379
Merged
likhinbopanna
merged 2 commits into
main
from
7191-mandate-on-successful-charge/authorization
Oct 21, 2024
Merged
fix(mandates): Allow connector_mandate_detail updation in case of 'Authorized' Payments #6379
likhinbopanna
merged 2 commits into
main
from
7191-mandate-on-successful-charge/authorization
Oct 21, 2024
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
Review changes with SemanticDiff. Analyzed 1 of 1 files. Overall, the semantic diff is 73% smaller than the GitHub diff.
|
hyperswitch-bot
bot
added
the
M-api-contract-changes
Metadata: This PR involves API contract changes
label
Oct 21, 2024
awasthi21
force-pushed
the
7191-mandate-on-successful-charge/authorization
branch
from
October 21, 2024 11:30
7bed86d
to
9597215
Compare
hyperswitch-bot
bot
removed
the
M-api-contract-changes
Metadata: This PR involves API contract changes
label
Oct 21, 2024
awasthi21
force-pushed
the
7191-mandate-on-successful-charge/authorization
branch
from
October 21, 2024 11:49
bdcf39c
to
3d67c94
Compare
awasthi21
changed the title
fix(mandates): handle the connector_mandate creation once and only if the payment is charged or Authorized
fix(mandates): Handle connector_mandate Creation for Payments with Status 'Authorized'
Oct 21, 2024
awasthi21
changed the title
fix(mandates): Handle connector_mandate Creation for Payments with Status 'Authorized'
fix(mandates):Allow connector_mandate_detail updation in case of 'Authorized' Payments
Oct 21, 2024
@@ -1556,8 +1556,9 @@ async fn payment_response_update_tracker<F: Clone, T: types::Capturable>( | |||
} else { | |||
None | |||
}; | |||
|
|||
if router_data.status == enums::AttemptStatus::Charged { | |||
if router_data.status == enums::AttemptStatus::Charged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add relevant code comment here, and also use matches!
awasthi21
changed the title
fix(mandates):Allow connector_mandate_detail updation in case of 'Authorized' Payments
fix(mandates): Allow connector_mandate_detail updation in case of 'Authorized' Payments
Oct 21, 2024
sai-harsha-vardhan
approved these changes
Oct 21, 2024
Narayanbhat166
approved these changes
Oct 21, 2024
likhinbopanna
deleted the
7191-mandate-on-successful-charge/authorization
branch
October 21, 2024 14:18
Merged
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 only in case of charged payments, Ideally we should store for both authorized and charged
Additional Changes
Motivation and Context
How did you test it?
Earlier
CIT 3DS Auth
Repsonse
connector_mandate_details not populated after the successful Authorization+Capture call,
After the Changes
CIT
Connector_mandate_details updated
MIT Payments
Response
Checklist
cargo +nightly fmt --all
cargo clippy