juspay/hyperswitch

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

Open

#2318 aperta il 22 set 2023

Vedi su GitHub
 (15 commenti) (0 reazioni) (0 assegnatari)Rust (4676 fork)batch import
A-connector-integrationC-featuregood first issuehacktoberfest

Metriche repository

Star
 (42.690 star)
Metriche merge PR
 (Merge medio 6g 22h) (213 PR mergiate in 30 g)

Descrizione

: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?

Guida contributor