rafiki icon indicating copy to clipboard operation
rafiki copied to clipboard

feat(api): cancel outgoing payment

Open golobitch opened this issue 1 year ago • 1 comments

  • feat(localenv): cancel outgoing payment on created webhook
  • feat(graphql): cancel outgoing payment api
  • feat(outgoing-payment): cancel outgoing payment service implementation

Changes proposed in this pull request

Add an API for canceling outgoing payment. This can be possible only if outgoing payment is in funding state. Normally, this API would be called by ASE to cancel the outgoing payment. It can be canceled due too numerous reasons like account not having enough balance or like his KYC is not valid, etc. ASE can also specify cancelation reason, and it will be written in meta under cancellationReason key.

Context

fixes #2688

Checklist

  • [x] Related issues linked using fixes #number
  • [x] Tests added/updated
  • [x] Documentation added
  • [x] Make sure that all checks pass
  • [x] Bruno collection updated

golobitch avatar May 01 '24 17:05 golobitch

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
Latest commit 33ae5548f86cb27bfc3a638d5c34b38ca0cebca2
Latest deploy log https://app.netlify.com/sites/brilliant-pasca-3e80ec/deploys/663aa17d16cc8d00081eae3f

netlify[bot] avatar May 01 '24 17:05 netlify[bot]