hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

refactor(connector): [Stripebilling] change Billing Connector Payment Sync url from charges to payment intents api

Open NISHANTH1221 opened this issue 8 months ago • 1 comments

Type of Change

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

Description

This PR changes the url of billing connector payment sync flow from using stripe charge api to stripe payment intents api. Because in Recovery Flow there is a chance to call stripe's psync flow to update the error codes and other details for an attempt. And psync flow accepts payment intent id rather than the charge id. To reuse the existing flow we need payment_intent id to propogate.

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?

To test this You can follow the steps of this PR: #7461 Tested it locally. And the logs are as following. Screenshot 2025-04-24 at 6 10 52 PM Screenshot 2025-04-24 at 6 11 02 PM Screenshot 2025-04-24 at 6 10 25 PM

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

NISHANTH1221 avatar Apr 24 '25 12:04 NISHANTH1221