-
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(frm): update FRM manual review flow #3176
Conversation
…to reject the txn
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.
@kashif-m
I'm good with the changes, we need to have someone from core to check payment_response.rs
file just to mitigate unknown issues. I understand that the status is changed only for FRM case but payment_response is currently used in every payment call so just need more eyes to verify.
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.
Got some nitpicks but approving since these are not blockers.
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.
Should probably rename the file as well. Can be taken up later.
( | ||
enums::AttemptStatus::Authorized, | ||
enums::AttemptStatus::Unresolved, | ||
Some(frm_message), | ||
) => match frm_message.frm_status { | ||
enums::FraudCheckStatus::Fraud | enums::FraudCheckStatus::ManualReview => { | ||
attempt_status |
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.
Nit:
( | |
enums::AttemptStatus::Authorized, | |
enums::AttemptStatus::Unresolved, | |
Some(frm_message), | |
) => match frm_message.frm_status { | |
enums::FraudCheckStatus::Fraud | enums::FraudCheckStatus::ManualReview => { | |
attempt_status | |
( | |
enums::AttemptStatus::Authorized, | |
enums::AttemptStatus::Unresolved, | |
Some(FrmMessage { frm_status: enums::FraudCheckStatus::Fraud | enums::FraudCheckStatus::ManualReview }), | |
) => attempt_status, |
acb2fec
Type of Change
Description
#3175
Additional Changes
Motivation and Context
How did you test it?
Tested locally using postman collection
https://galactic-capsule-229427.postman.co/workspace/My-Workspace~2b563e0d-bad3-420f-8c0b-0fd5b278a4fe/collection/9906252-e8ad195c-90f5-4527-a40b-1a25bc9bedd2?action=share&creator=9906252
Test Cases
Checklist
cargo +nightly fmt --all
cargo clippy