rafiki
rafiki copied to clipboard
Query incoming payments directly
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
: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
thinking A first step can be for the backend to check if the incoming payment to be resolved (the
receiverof 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.