kiwiidb
8a91d3e391
Merge branch 'main' into feature/bolt12
2022-02-23 15:03:01 +01:00
Stefan Kostic
596dbc6eca
Use sentry capture for handle payment errors
2022-02-18 12:46:35 +01:00
Stefan Kostic
fd80bcea5d
Fix error logging todos
2022-02-17 20:36:04 +01:00
Stefan Kostic
130760bbb1
Add error message field to invoice
2022-02-17 20:29:45 +01:00
Stefan Kostic
63a3ea09b3
Add simple failure test
2022-02-17 18:32:30 +01:00
Stefan Kostic
2e5f411cf1
Use context background on all needed places
2022-02-17 15:17:05 +01:00
Stefan Kostic
fea16623ab
Implement handle failed payment method
2022-02-17 15:10:42 +01:00
Stefan Kostic
1d9e24f21c
Implement handle successful payment method
2022-02-17 14:27:49 +01:00
kiwiidb
74da8f8088
new pr scope: don't bother with callbacks
2022-02-17 11:31:39 +01:00
kiwiidb
7ff25113e5
outline behaviour in comments
2022-02-16 12:29:11 +01:00
kiwiidb
26694c821f
remove transactions, add empty func that will handle failed payments
2022-02-16 11:23:30 +01:00
kiwiidb
61966e3d1c
address PR comments
2022-02-16 09:12:37 +01:00
kiwiidb
0987912a92
Merge branch 'chore/remove-unnecesary-deps' into feature/bolt12
2022-02-15 18:16:22 +01:00
kiwiidb
d88ebf11d8
use the correct expiresAt timestamp
2022-02-15 18:16:10 +01:00
kiwiidb
7d3eefd26b
should work now
2022-02-15 18:10:14 +01:00
kiwiidb
b63885ca4f
add transform bolt12 function again
2022-02-15 17:54:16 +01:00
kiwiidb
a1b4e895c4
fix merge conflicts
2022-02-15 17:48:07 +01:00
kiwiidb
20610aef06
remove btcec dependency
2022-02-15 17:24:57 +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
4ddf0aae3b
signatures not working like this, need to boot btcec dep
2022-02-11 10:05:31 +01:00
kiwiidb
4d5c8c12d1
pay command working
2022-02-10 10:30:13 +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
kiwiidb
94fd1fe82e
fetch invoice
2022-02-09 12:47:02 +01:00
Stefan Kostic
0da4b359d6
Pass in ctx as service methods first argument
2022-02-08 13:35:02 +01:00
kiwiidb
c3f22ab166
everything ok except payment
2022-02-06 15:31:42 +01:00
kiwiidb
73aa3f4e97
set up scaffolding
2022-02-06 15:20:36 +01:00
kiwiidb
c3bec5f80c
chore: wrap LND client
2022-02-04 12:13:40 +01:00
kiwiidb
ad13bb22fc
more work on invoice subscription
2022-02-03 17:42:35 +01:00
kiwiidb
c72639aa68
feature: pluggable ln backend
2022-02-03 14:53:12 +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
Michael Bumann
2f44889be6
300 sat it is for now. this should work for most payments
2022-01-31 13:31:07 +01:00
Michael Bumann
f2ca4ac0ca
Set fixed fee limit
...
Very small amounts have problems with the percentage based fee limit.
This has to be changed soon to be smarter and more dynamic
2022-01-31 13:27:45 +01:00
Michael Bumann
3f01c3304d
Calculate timestamp in Go to not use PostgreSQL specific function
2022-01-30 20:30:19 +01:00
Michael Bumann
dd0d168b5b
Use the HTTP error code define by the error if available
...
This handler handles all errors. those are not necessarily http 500 erros.
We should use the code from the error if available
2022-01-27 18:21:36 +01:00
Michael Bumann
d10701ad2f
Custom HTTP error handler and send sentry notifications
2022-01-24 23:37:03 +01:00
Michael Bumann
9b292398da
Add sentry notification to invoice subscription
2022-01-24 23:05:08 +01:00
Michael Bumann
55b7943579
Do not handle invoices not found in the subscription handler as errors
...
the app will get notfied of any invoice and not just the invoices we have created.
Thus we ignore the updates for invoices we do not know about. This is not an error
2022-01-24 23:04:53 +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
3053ad0549
Merge pull request #68 from getAlby/payinvoice-response
...
Better payinvoice response + DRY errors
2022-01-24 20:12:21 +02:00
Michael Bumann
906578ff57
Merge pull request #67 from getAlby/do-not-return-initialized-invoices
...
Do not return invoices that are in the initialized state
2022-01-24 20:12:12 +02:00
Michael Bumann
a2c75110c2
Log correct error
2022-01-23 21:06:34 +02:00
Michael Bumann
95a979a05f
Merge branch 'main' into feature/configurable-port
2022-01-23 19:42:52 +02:00
Michael Bumann
bbada328d5
Longer login/passwords
2022-01-22 23:59:05 +01:00
Michael Bumann
436baeeccb
Merge pull request #64 from getAlby/invoice-update-subscriptions
...
First draft to subscribe for LND invoice update
2022-01-23 00:22:46 +02:00
Michael Bumann
f6559a6a0c
Make port configurable
2022-01-22 23:11:13 +01:00