rafiki icon indicating copy to clipboard operation
rafiki copied to clipboard

Query incoming payments directly

Open wilsonianb opened this issue 3 years ago • 1 comments

Instead of incoming payment queries happening within ilp-pay's setupPayment. This will allow the Rafiki backend to include the necessary GNAP access token (#583) in incoming payment requests.

related to:

  • https://github.com/interledgerjs/interledgerjs/issues/295
  • https://github.com/interledgerjs/interledgerjs/issues/268#issuecomment-1220853279

Existing work:

  • #480
  • https://github.com/interledger/rafiki/tree/mdh-resolve-payment-details

wilsonianb avatar Aug 30 '22 16:08 wilsonianb

:thinking: A first step can be for the backend to check if the incoming payment to be resolved (the receiver of a quote / outgoing payment) is local to this Rafiki instance, bypassing the need to deal with:

  • #583

wilsonianb avatar Aug 30 '22 22:08 wilsonianb

thinking A first step can be for the backend to check if the incoming payment to be resolved (the receiver of a quote / outgoing payment) is local to this Rafiki instance, bypassing the need to deal with:

* [Request grant at other Open Payments server(s) #583](https://github.com/interledger/rafiki/issues/583)
  • #595 queries incoming payments over http even if the payment exists at the same Open Payments server. Adding a check for local incoming payments as suggested above resulted in too much duplicate code.

wilsonianb avatar Sep 08 '22 20:09 wilsonianb