interledger / rafiki

An open-source, comprehensive Interledger service for wallet providers, enabling them to provide Interledger functionality to their users.

Home Page:https://rafiki.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle incoming funds via SPSP better

sabineschaller opened this issue · comments

Context

Right now, there are no webhook events fired when funds are received to the payment pointer via SPSP. What needs to be done now is trigger those events manually using the triggerWalletAddressEvents mutation.

We would like to change that such that webhook events called interledger_payment_pointer.liquidity are fired as soon as the STREAM connection related to the payment pointer is closed.

webhook data example:

{
  "connectionId": "6912249c-59ae-40b9-afd3-a9977cb41512",
  "walletAddressId": "99c6a478-4d6b-4c16-b71e-c5fce3000295",
  "receivedAmount": {
    "value": "495000000",
    "assetCode": "USD",
    "assetScale": 9
  }
}

Todos

  • figure out place to trigger interledger_payment_pointer.liquidity webhook
  • remove triggerWalletAddressEvents mutation
  • update docs