For Fiuu, the mandate ID is updated via webhooks in the case of 3DS payments. The payment webhook body was not consumed when the payment was successful, causing intermittent issues in the sandbox environment. This PR adds support to address this issue.
more detailed issue description :
Fiuu mandate id is consumed from webhooks
Incase of 3ds payment, on returning to hs return url we do a psync call
If psync happends before we get notification from connector, we don't consume the webhook. Hence we will never have connector mandate id in our system.
To consume the webhook, we can add logic in webhooks core that after psync check for the source verification & webhook event based on that get mandate details from webhook and update it in the payment method & payment attempt.
Additional Changes
[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables
Motivation and Context
How did you test it?
Cannot be tested directly this is an intermediate issue in sandbox. So please test this flow multiple time and mandate id should be stored in CIT transaction against both payment attempt & payment method for the transaction.
Checklist
[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed the submitted code
[ ] I added unit tests for my changes where possible
Type of Change
Description
For Fiuu, the mandate ID is updated via webhooks in the case of 3DS payments. The payment webhook body was not consumed when the payment was successful, causing intermittent issues in the sandbox environment. This PR adds support to address this issue.
more detailed issue description :
Additional Changes
Motivation and Context
How did you test it?
Cannot be tested directly this is an intermediate issue in sandbox. So please test this flow multiple time and mandate id should be stored in CIT transaction against both payment attempt & payment method for the transaction.
Checklist
cargo +nightly fmt --all
cargo clippy