juspay/hyperswitch
View on GitHub[FEATURE]: [Square] Use `connector_request_reference_id` as reference to the connector
Open
#2,318 opened on Sep 22, 2023
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_idwhile others utilizeattempt_id. - This inconsistency arises from the fact that
payment_idandattempt_idcorrespond to two distinct entities within our system.
:hammer: Possible Implementation
- To mitigate this confusion, we've introduced a new field called
connector_request_reference_idin 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?
- I have read the Contributing Guidelines