Commit Graph

91 Commits

Author SHA1 Message Date
kiwiidb
96af86dcc3 Merge pull request #134 from getAlby/unauthorized-invoice-endpoint
Unauthorized invoice endpoint
2022-03-22 07:51:08 +01:00
Stefan Kostic
88d7d21aa1 Add common add invoice ctrl method 2022-03-18 18:06:39 +01:00
Stefan Kostic
2d34317acb Add and register invoice endpoint 2022-03-18 18:03:46 +01:00
kiwiidb
e5e03659d6 update tests with custom record 2022-03-18 14:10:37 +01:00
kiwiidb
be8a5a4acc feature: allow custom records to keysend 2022-03-18 12:19:19 +01:00
kiwiidb
f86543ee0e Merge pull request #127 from getAlby/keysend-implementation
Keysend implementation
2022-03-08 14:51:28 +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
3a12f908c4 Cleanup keysend ctrl 2022-03-08 01:29:01 +01:00
Stefan Kostic
03e44fac58 Fix keysend response body type 2022-03-08 01:21:28 +01:00
Stefan Kostic
c6b4c3028c Remove todo and cleanup 2022-03-08 01:15:37 +01:00
Stefan Kostic
c6ba661227 Fix key send response body 2022-03-08 01:09:11 +01:00
Stefan Kostic
8b077cd5ea First key send endpoint impl based on pay invoice ctrl 2022-03-04 19:53:25 +01:00
Stefan Kostic
6266156fda Bad request on auth controller bad req body 2022-03-04 15:25:12 +01:00
Stefan Kostic
7c28270c6a Add proper err response to create ctrl 2022-03-04 15:11:23 +01:00
kiwiidb
3d8ecd425f keysend: low-level work and instructions 2022-03-04 11:08:27 +01:00
Stefan Kostic
f615564728 Return bad auth error response properly 2022-02-24 23:16:21 +01:00
Stefan Kostic
b70578eaf9 Add check payment tests 2022-02-18 14:30:51 +01:00
kiwiidb
fb8fe70d07 remove zpay32 dep 2022-02-15 17:19:35 +01:00
kiwiidb
9029d95353 Merge pull request #100 from getAlby/custom-usernames
Custom usernames and password when creating new users
2022-02-15 16:47:20 +01:00
kiwiidb
a44d9052e7 use the right struct to create user 2022-02-15 16:46:32 +01:00
kiwiidb
e551904e82 add fields explicitly in controllers 2022-02-15 16:43:55 +01:00
kiwiidb
f7be8c3663 export responses in controller package 2022-02-15 16:33:47 +01:00
kiwiidb
977fe8c514 Merge pull request #98 from getAlby/add-constants
Add constants for invoice state, type and account type
2022-02-10 18:23:08 +01:00
kiwiidb
3c08c5b349 Merge branch 'main' into feature/integration-testing-payments 2022-02-10 14:26:42 +01:00
Stefan Kostic
80a4d4f20c Add support for providing user name and password when creating user 2022-02-09 22:53:46 +01:00
Stefan Kostic
f93bdd54f9 Replace hardcoded strings with common constants 2022-02-09 22:27:01 +01:00
Stefan Kostic
3f4cc70d22 Revert commits related to constants 2022-02-09 22:24:52 +01:00
Stefan Kostic
3152f6f2e6 Replace hardcoded strings with common constants 2022-02-09 22:17:49 +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
kiwiidb
6a1803ceb4 tests: add deposit integration test 2022-02-04 15:28:34 +01:00
kiwiidb
1ae5df6b8c Feature: integration testing
Add integration tests with testify/suite. Moved some structs
outside of controller funcs so we can re-use them in the testing
package. Add CI workflow for running tests on every push.
2022-02-01 11:47:11 +01:00
kiwiidb
7e2b432790 add optional custom node name 2022-02-01 09:22:44 +01:00
kiwiidb
242e1438a6 embed static files 2022-01-28 09:57:51 +01:00
kiwiidb
5c1b27398b add index page 2022-01-27 16:04:03 +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
3e088a7652 Pass invoice description hash string to LND 2022-01-21 17:40:52 +01:00
Michael Bumann
f683a22a66 Correct gettxs and getuserinvoices responses 2022-01-21 12:22:49 +01:00
Michael Bumann
228edcbe39 Return user invoices
and maybe correctly encode the Buffers?
2022-01-21 11:49:08 +01:00
Michael Bumann
2097807c85 Support Amount values as string/integer in request JSON 2022-01-21 11:15:35 +01:00
Michael Bumann
7d6dc15b8c Merge branch 'main' into payinvoice
* main:
  Correct style
  Add blank routes required for bluewallet
2022-01-20 14:28:26 +01:00
Michael Bumann
1d17708875 Correct style 2022-01-20 14:20:15 +01:00
Michael Bumann
31570b8adf Add blank routes required for bluewallet 2022-01-20 14:02:32 +01:00
Michael Bumann
6822b274e5 Add check payment endpoint 2022-01-20 13:58:46 +01:00
Michael Bumann
70a7e1a8eb Add DB constraints to check for user balances 2022-01-20 02:03:51 +01:00