Skip to content

Conversation

nabeel001
Copy link
Contributor

@nabeel001 nabeel001 commented Oct 12, 2025

Type of Change

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

Description

  • Add amount and currency_code fields to ChargebeePaymentsResponse struct
  • Add amount and currency_code fields to RefundResponse struct
  • Implement integrity checks in handle_response methods for:
    • Authorize flow using get_authorise_integrity_object
    • PSync flow using get_sync_integrity_object
    • Refund flow using get_refund_integrity_object
    • RSync flow using get_refund_integrity_object
  • Set integrity_object in router_data.request for all flows
  • Follow same pattern as other connectors (XENDIT, FISERV)

This ensures data consistency and correctness when dealing with amounts
between Hyperswitch and Chargebee connector, preventing discrepancies
in payment processing flows.

Fixes #9159

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

@nabeel001 nabeel001 requested a review from a team as a code owner October 12, 2025 07:03
Copy link

semanticdiff-com bot commented Oct 12, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/chargebee.rs  21% smaller
  crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs  0% smaller

@nabeel001 nabeel001 changed the title minor fix Add Integrity Check Support for Authorize, PSync, Refund and RSync Flows Oct 12, 2025
@nabeel001 nabeel001 changed the title Add Integrity Check Support for Authorize, PSync, Refund and RSync Flows feat(connector): [Chargebee] Add Integrity Check Support for Authorize, PSync, Refund and RSync Flows Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] : [CHARGEBEE] Add Integrity Check Support for Authorize, PSync, Refund and RSync Flows

2 participants