hyperswitch
hyperswitch copied to clipboard
feat(connectors): Add integrity check for PhonePe connector
Type of Change
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
- Added integrity checks for PhonePe connector responses
- Implemented amount validation in authorize, refund, and sync flows
- Added
amountandcurrencyfields toPhonepePaymentsResponsestruct inphonepe/transformers.rs - Updated response handling to validate amounts against request
- Fixes #9213
Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
Motivation and Context
- Implements integrity checks for PhonePe connector as per issue #9213
- Ensures response amounts match request amounts to prevent payment discrepancies
How did you test it?
pending
Checklist
- [x] I formatted the code
cargo +nightly fmt --all - [x] I addressed lints thrown by
cargo clippy - [x] I reviewed the submitted code
- [x] I added unit tests for my changes where possible
Changed Files
| File | Status |
|---|---|
@bsayak03, can you check on this PR and I am unable to build or test using cargo.
@bsayak03, can i get a response on what to do ?
@bsayak03, can i get a response on what to do ?
Currently in review. Will update you soon @Rxbber-dxcky
Thank you for your response, @bsayak03