Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add retrieve api support for relay #6919

Open
ShankarSinghC opened this issue Dec 23, 2024 · 1 comment · Fixed by #6918 or #6924
Open

add retrieve api support for relay #6919

ShankarSinghC opened this issue Dec 23, 2024 · 1 comment · Fixed by #6918 or #6924
Assignees
Labels
A-core Area: Core flows A-payment-methods Area: Payment Methods

Comments

@ShankarSinghC
Copy link
Contributor

/relay is a api that will be used to just forward the request sent by merchant without performing any application logic on it. This is particular to support the refunds for the payments that was directly performed with the connector (example stripe) with out hyperswitch involved during the payment flow.

This PR introduces changes to add a retrieve API for relay refunds.

The retrieve API will:

  1. Return the relay status from our database when a retrieve call is made.
  2. If force_sync = true is passed and the relay status is not in a terminal state in our system, the API will call the connector to fetch the latest status.

Flow

  1. Merchant performs payment directly with processor and stores the payment reference id associated with it.
  2. Merchant tiggers the refund through hyperswitch using the processor reference id for the payment.
  3. Merchant makes retrieve call for the relay status
@ShankarSinghC ShankarSinghC added A-core Area: Core flows A-payment-methods Area: Payment Methods labels Dec 23, 2024
@ShankarSinghC ShankarSinghC self-assigned this Dec 23, 2024
@ShankarSinghC ShankarSinghC linked a pull request Dec 23, 2024 that will close this issue
14 tasks
@ShankarSinghC
Copy link
Contributor Author

Reopening the issue to link it to the hotfix pr

@ShankarSinghC ShankarSinghC reopened this Dec 23, 2024
@ShankarSinghC ShankarSinghC linked a pull request Dec 23, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows A-payment-methods Area: Payment Methods
Projects
None yet
1 participant