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

Actionable incoming payments #2811

Closed mkurapov closed 3 months ago

mkurapov commented 4 months ago

Context

Project Outline

An ASE should be able to "action" on an incoming payment: it should be able to do certain operations before it decides that an account/wallet address in question can in fact receive money.

This primarily arose out of the PCH project, as one of their requirements is that they would like to do KYC checks/account status checks before a payment is accepted. A payment should then not proceed if the checks are not successful.

What we will do is similar to the wallet_address.not_found webhook: after Rafiki sends the incoming_payment.created webhook, we will poll for whether an incoming payment is approved or cancelled by the ASE.

Tasks

sabineschaller commented 4 months ago

I made some comments in the doc. Let's discuss on Monday or Tuesday @mkurapov