This refactored branch resolves the PayPal dispute webhook deserialization issue.
-> It was failing to identify the webhook entity type and object reference ID.
-> I updated the fields accordingly to resolve the deserialization issue.
Additional Changes
[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables
Source Verification:
Due to these are Mock events , we cant verify them through Paypal so I have done source verification as true to check further flows like Database record creation and triggering outgoing webhooks.
Type of Change
Description
This refactored branch resolves the PayPal dispute webhook deserialization issue. -> It was failing to identify the webhook entity type and object reference ID. -> I updated the fields accordingly to resolve the deserialization issue.
Additional Changes
Motivation and Context
Motivation https://github.com/juspay/hyperswitch/issues/5069
there are some filed refactors included which resolved the problem
How did you test it?
I ran the ngrok for frowarding webhook payload to localhost with url (https://697b-219-65-110-2.ngrok-free.app/webhooks/merchant_1719300138/paypal)
I have created dispute webhook through paypal simulator and these are the logs : Incoming webhook Payload:
Dispute Creation:
Source Verification: Due to these are Mock events , we cant verify them through Paypal so I have done source verification as true to check further flows like Database record creation and triggering outgoing webhooks.
Database Record Creation:
Outgoing Webhook Response Payload:
Checklist
cargo +nightly fmt --all
cargo clippy