feat(revenue_recovery): Add account updater support in revenue recovery flow for worldpayvantiv connector
Type of Change
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
This pr enables the account updater support for revenue recovery for worldpay vantiv connector. Worldpay vantiv when account updater is enabled by the merchant at the connectors end, it response with the new account updater details in the response of authorize flow. So to consume this in Revenue recovery flow we need to propogate these details up the ladder till the function call_proxy_api in revenue recovery.
When worldpay vantiv responds with the account updater we check for the payment method which should be MANDATEPAYMENT. If it is a mandate payment and it has account updater details we will respond with the updated token details. We will replace the source of the mandate reference from token reponse to account updater response and populate the same data in mandate_data in PaymentConfirmData<>
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?
Checklist
- [ ] I formatted the code
cargo +nightly fmt --all - [ ] I addressed lints thrown by
cargo clippy - [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
Changed Files
Codecov Report
:x: Patch coverage is 0% with 504 lines in your changes missing coverage. Please review.
:warning: Please upload report for BASE (main@7445ec7). Learn more about missing BASE report.
Additional details and impacted files
@@ Coverage Diff @@
## main #10112 +/- ##
=======================================
Coverage ? 3.88%
=======================================
Files ? 1224
Lines ? 303926
Branches ? 0
=======================================
Hits ? 11805
Misses ? 292121
Partials ? 0
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.