interledger / rafiki

An open-source, comprehensive Interledger service for wallet providers, enabling them to provide Interledger functionality to their users.
https://rafiki.dev/
Apache License 2.0
259 stars 89 forks source link

Add Open Payments quotes #305

Closed wilsonianb closed 2 years ago

wilsonianb commented 2 years ago

https://github.com/interledger/open-payments/pull/97

Remove outgoing payment authorization. All created outgoing payments are authorized. Instead, add quotes as an Open Payments account sub-resource. After a quote is completed, it may be included in the parameters for creating an outgoing payment. A quote is complete after:

  1. An ILP rate probe quote is performed
  2. The wallet optionally modifies the quote amounts
  3. The wallet confirms quoted send amount is available (but not reserved) in the sender's balance

A completed quote expires if it is not used for an outgoing payment before its Rafiki defined expiresAt (Outgoing payments no longer expire) An outgoing payment can alternatively be created without a quote but the client/user will be unable to prevent the payment based on the details of the subsequently performed quote.

wilsonianb commented 2 years ago

~- requires #https://github.com/interledgerjs/interledgerjs/issues/270~