-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): cancel outgoing payment #2694
Merged
golobitch
merged 22 commits into
main
from
feature/2688-add-canceloutgoingpayment-graphql-api
May 13, 2024
Merged
feat(api): cancel outgoing payment #2694
golobitch
merged 22 commits into
main
from
feature/2688-add-canceloutgoingpayment-graphql-api
May 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 tasks
github-actions
bot
added
type: tests
Testing related
pkg: backend
Changes in the backend package.
pkg: frontend
Changes in the frontend package.
type: source
Changes business logic
pkg: mock-ase
pkg: mock-account-service-lib
labels
May 1, 2024
✅ Deploy Preview for brilliant-pasca-3e80ec canceled.
|
golobitch
changed the title
feature(api): cancel outgoing payment
feat(api): cancel outgoing payment
May 2, 2024
golobitch
force-pushed
the
feature/2688-add-canceloutgoingpayment-graphql-api
branch
from
May 2, 2024 16:39
2989e03
to
4920165
Compare
github-actions
bot
added
pkg: documentation
Changes in the documentation package.
type: documentation
(archived) Improvements or additions to documentation
labels
May 2, 2024
golobitch
force-pushed
the
feature/2688-add-canceloutgoingpayment-graphql-api
branch
from
May 2, 2024 17:57
09adfdb
to
57c6f8b
Compare
golobitch
force-pushed
the
feature/2688-add-canceloutgoingpayment-graphql-api
branch
from
May 2, 2024 20:12
57c6f8b
to
1093442
Compare
mkurapov
reviewed
May 3, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this & it worked for me 👍
localenv/mock-account-servicing-entity/app/lib/webhooks.server.ts
Outdated
Show resolved
Hide resolved
packages/backend/src/open_payments/payment/outgoing/service.test.ts
Outdated
Show resolved
Hide resolved
packages/backend/src/graphql/resolvers/outgoing_payment.test.ts
Outdated
Show resolved
Hide resolved
packages/documentation/src/content/docs/integration/event-handlers.mdx
Outdated
Show resolved
Hide resolved
packages/documentation/src/content/docs/integration/event-handlers.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Max Kurapov <max@interledger.org>
Co-authored-by: Max Kurapov <max@interledger.org>
golobitch
force-pushed
the
feature/2688-add-canceloutgoingpayment-graphql-api
branch
from
May 3, 2024 19:02
4f1368a
to
7c9f5c0
Compare
mkurapov
reviewed
May 6, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments
packages/backend/src/graphql/resolvers/outgoing_payment.test.ts
Outdated
Show resolved
Hide resolved
packages/backend/src/open_payments/payment/outgoing/service.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Max Kurapov <max@interledger.org>
Co-authored-by: Max Kurapov <max@interledger.org>
…metadata Co-authored-by: Max Kurapov <max@interledger.org>
golobitch
force-pushed
the
feature/2688-add-canceloutgoingpayment-graphql-api
branch
from
May 7, 2024 20:39
f5e243f
to
0d1b4dd
Compare
mkurapov
approved these changes
May 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pkg: backend
Changes in the backend package.
pkg: documentation
Changes in the documentation package.
pkg: frontend
Changes in the frontend package.
pkg: mock-account-service-lib
pkg: mock-ase
type: documentation
(archived) Improvements or additions to documentation
type: source
Changes business logic
type: tests
Testing related
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fixes #number