juspay/hyperswitch

[FEATURE]: [Square] Use `connector_request_reference_id` as reference to the connector

Open

#2,318 opened on Sep 22, 2023

View on GitHub
 (15 comments) (0 reactions) (0 assignees)Rust (42,690 stars) (4,676 forks)batch import
A-connector-integrationC-featuregood first issuehacktoberfest

Description

:memo: Feature Description

  • We transmit our reference id from Hyperswitch to the connector, enabling merchants to subsequently locate the payment within the connector dashboard.
  • Presently, there is a lack of uniformity in this process, as some implementations employ payment_id while others utilize attempt_id.
  • This inconsistency arises from the fact that payment_id and attempt_id correspond to two distinct entities within our system.

:hammer: Possible Implementation

  • To mitigate this confusion, we've introduced a new field called connector_request_reference_id in our RouterData.
  • This id should replace them as a reference id to the connector for payment request.
  • One might need to have exposure to api docs of the connector for which it is being implemented.
  • You can check this PR for further reference https://github.com/juspay/hyperswitch/pull/2052

:bookmark: Note : All the changes needed should be contained within hyperswitch/crates/router/src/connector/

:package: Have you spent some time checking if this feature request has been raised before?

  • I checked and didn't find a similar issue

:package: Have you read the Contributing Guidelines?

:sparkles: Are you willing to submit a PR?

Contributor guide