Commit Graph

37 Commits

Author SHA1 Message Date
kiwiidb
c74f39f94d refactor invoice amount checks 2023-02-17 14:59:10 +01:00
kiwiidb
2229ac56d6 fix bug: no model needed here 2022-10-28 10:51:27 +02:00
kiwiidb
f7dd956ac4 chore: also delete balance check failed invoices in v1 controllers 2022-10-28 09:37:55 +02:00
kiwiidb
159a768a99 set fee reserve to 0 if destination is us 2022-10-03 16:10:44 +02:00
kiwiidb
ceec6dd181 don't omit payment error when empty 2022-08-08 10:11:18 +02:00
Pavol Rusnak
6740e66094 Introduce MaxReceiveAmount, MaxSendAmount, MaxAccountBalance 2022-06-30 10:55:51 +02:00
kiwiidb
b256a3fefe remove old api docs 2022-06-17 15:38:44 +02:00
Pavol Rusnak
1adea74429 Implement fee-reserve 2022-06-15 23:06:53 +02:00
Michael Bumann
aaa6bddf52 Add payment context to sentry notification on payment errors 2022-05-17 14:39:11 +02:00
kiwiidb
3881ab7e78 add 0 amount outgoing invoice 2022-05-02 14:27:48 +02:00
Michael Bumann
887e5fbf89 Log user ids on more errors
This should help analyzing the logs better for a specific user.
2022-05-02 09:38:57 +02:00
kiwiidb
2793303ad3 swagger: add all endpoints 2022-04-26 13:48:05 +02:00
ext.kwinten.de.backer
8ed306fe61 always lowercase payreq 2022-04-08 11:11:03 +02:00
kiwiidb
de472742bc fix: pay response should follow lndhub api 2022-03-23 17:20:04 +01:00
Stefan Kostic
fb1be3bd8b Rename struct 2022-03-08 13:46:51 +01:00
Stefan Kostic
f7b2ea76d6 Group payreq and keysend flag into struct 2022-03-08 12:32:02 +01:00
Stefan Kostic
8b077cd5ea First key send endpoint impl based on pay invoice ctrl 2022-03-04 19:53:25 +01:00
kiwiidb
fb8fe70d07 remove zpay32 dep 2022-02-15 17:19:35 +01:00
kiwiidb
3c08c5b349 Merge branch 'main' into feature/integration-testing-payments 2022-02-10 14:26:42 +01:00
Stefan Kostic
2748b7f2f3 Use request context in handlers 2022-02-08 13:36:50 +01:00
kiwiidb
8006cec51d internal payments: test working 2022-02-07 12:07:21 +01:00
Michael Bumann
d10701ad2f Custom HTTP error handler and send sentry notifications 2022-01-24 23:37:03 +01:00
Michael Bumann
f6367b33a0 Merge pull request #69 from getAlby/bugfix/fix-invoices-without-description
Do not fail if invoice does not have a description
2022-01-24 20:12:29 +02:00
Michael Bumann
edd2abedfb Do not fail if invoice does not have a description 2022-01-22 23:05:21 +01:00
Michael Bumann
891dd8394c DRY up error responses 2022-01-22 20:38:14 +01:00
Michael Bumann
1359d97d6a Better payinvoice response
This is not exactly the response that lndhub gives but it should be good enough
2022-01-22 19:20:40 +01:00
Michael Bumann
2097807c85 Support Amount values as string/integer in request JSON 2022-01-21 11:15:35 +01:00
Michael Bumann
70a7e1a8eb Add DB constraints to check for user balances 2022-01-20 02:03:51 +01:00
Michael Bumann
d4183c100b Add payinvoice endpoint 2022-01-20 01:57:31 +01:00
kiwiidb
8eef14fccc move service functions to service package 2022-01-19 16:10:55 +01:00
kiwiidb
18f65e4546 refactor payinvoice 2022-01-19 15:32:22 +01:00
kiwiidb
a83fbc6067 add constructor funcs for controllers 2022-01-19 14:35:46 +01:00
kiwiidb
0c80998b49 refactor payinvoice 2022-01-19 14:22:16 +01:00
kiwiidb
e22ab6ce49 rename context to service 2022-01-19 13:53:40 +01:00
Michael Bumann
f8aa8d5962 Reuse user model for account lookup 2022-01-19 13:21:08 +01:00
Michael Bumann
d86c7b680d Test creating account transactions for outgoing transaction 2022-01-19 11:00:08 +01:00
Roman Useinov
628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00