hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(connector): [Novalnet] Add support for disputes

Open dgeee13 opened this issue 1 year ago • 1 comments

Type of Change

  • [ ] Bugfix
  • [ ] New feature
  • [X] Enhancement
  • [ ] Refactoring
  • [ ] Dependency updates
  • [ ] Documentation
  • [ ] CI/CD

Description

Added dispute support for novalnet. Novalnet supports 2 webhook events for disputes

  1. Chargeback
  2. Representment (dispute won)

Novalnet does not support emails/webhooks for Arbitration and Pre-Arbitration stages.

Additional Changes

  • [ ] This PR modifies the API contract
  • [ ] This PR modifies the database schema
  • [ ] This PR modifies application configuration/environment variables

Motivation and Context

https://github.com/juspay/hyperswitch-cloud

How did you test it?

Tested locally with dispute webhook simulators given in novalnet documentation Chargeback webhook simulator: https://developer.novalnet.com/asynchronousnotification/parameterspassed?payment=chargeback_creditcard_chargeback#parameter-list Representment webhook simulator: https://developer.novalnet.com/asynchronousnotification/parameterspassed?payment=credit_creditcard_representment#parameter-list

Chargeback webhook output Screenshot 2024-11-13 at 18 57 33

Representment webhook output Screenshot 2024-11-13 at 18 59 13

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

dgeee13 avatar Nov 13 '24 14:11 dgeee13

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/novalnet.rs  1% smaller
  crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs  0% smaller

semanticdiff-com[bot] avatar Nov 13 '24 14:11 semanticdiff-com[bot]