Commit Graph

507 Commits

Author SHA1 Message Date
nicolas.dorier
10c981b2a0 Update NBXplorer 2018-04-19 16:54:25 +09:00
lepipele
3f85918a0c Merge remote-tracking branch 'source/master' into dev-bootstrap
# Conflicts:
#	BTCPayServer/Controllers/ServerController.cs
#	BTCPayServer/Views/Invoice/Invoice.cshtml
2018-04-18 23:38:10 -05:00
nicolas.dorier
6936b034cb Add Bitcoin average quota 2018-04-18 18:23:39 +09:00
nicolas.dorier
73ed4003a3 Use a drop down for preferred exchange list 2018-04-18 16:38:56 +09:00
nicolas.dorier
5cb8cdd511 Refactoring: Do not query database when asking for Coinaverage rates, periodically get exchange list 2018-04-18 16:38:56 +09:00
lepipele
195b5fdd1a Adding overriding of CreativeStartUri, refactoring PoliciesSettings 2018-04-17 17:24:00 -05:00
Mário
d7719d25b4 Add Portuguese (Portugal) translation 2018-04-16 01:29:42 +01:00
nicolas.dorier
0723eec508 Fix rate handling 2018-04-15 21:21:57 +09:00
lepipele
18986faca8 Merge remote-tracking branch 'source/master' into dev-bootstrap
# Conflicts:
#	BTCPayServer/Controllers/ServerController.cs
2018-04-14 11:11:38 -05:00
nicolas.dorier
04c6107196 Can configure rate caching and bitcoinaverage API keys 2018-04-14 22:52:57 +09:00
lepipele
f869c06aee Adding Bootstrap theme uri field to settings 2018-04-13 15:42:34 -05:00
nicolas.dorier
2b11cc1077 Simplify root key path calculation 2018-04-12 11:48:33 +09:00
nicolas.dorier
9da6df50b7 Add DOGECOIN 2018-04-10 19:07:57 +09:00
nicolas.dorier
560c1c3dc0 do not use long cache provider 2018-04-03 17:56:55 +09:00
nicolas.dorier
ecc5032bb2 Fix error message if invalid input lightning max value / min value. Increase cache of currency to 15 min 2018-04-03 17:54:50 +09:00
nicolas.dorier
149c29963d Add Point of Sale feature to BTCPay 2018-04-03 16:58:47 +09:00
Saevar
2e555cac22 Add Icelandic 2018-03-29 08:19:07 +00:00
nicolas.dorier
c60966c725 Revert "Add temporary log for stufftech debug"
This reverts commit fb57d8c3ce.
2018-03-29 12:25:26 +09:00
nicolas.dorier
fb57d8c3ce Add temporary log for stufftech debug 2018-03-29 12:21:20 +09:00
nicolas.dorier
799ce74f65 Add temporary log for stufftech debug 2018-03-29 12:20:06 +09:00
nicolas.dorier
8e38d7ceb4 Revert "Add temporary log to debug stufftech"
This reverts commit a1c22e8071.
2018-03-29 12:17:03 +09:00
nicolas.dorier
a1c22e8071 Add temporary log to debug stufftech 2018-03-29 12:14:51 +09:00
nicolas.dorier
6d8acf54d6 Revert "Fix SQLite bug: New invoice repeating"
This reverts commit 9eb3aad072.
2018-03-29 12:10:03 +09:00
nicolas.dorier
a500a89138 Revert "add hack sqlite specific"
This reverts commit c6d44e7a89.
2018-03-29 12:09:57 +09:00
nicolas.dorier
c6d44e7a89 add hack sqlite specific 2018-03-29 12:02:13 +09:00
nicolas.dorier
9eb3aad072 Fix SQLite bug: New invoice repeating 2018-03-29 11:57:17 +09:00
nicolas.dorier
e23243565f Refactor CreateInvoiceCore to better give feedback on payment method errors to the merchant, be faster, and give NodeInfo 2018-03-28 22:37:01 +09:00
nicolas.dorier
5eac84d3a3 Fix bug: bitcoinAddress field of Invoice was showing ligthning BOLT11 address 2018-03-26 12:38:14 +09:00
Nicolas Dorier
8eee0dd14c
Merge pull request #81 from pajasevi/lang-CS
Czech language support
2018-03-26 09:46:59 +09:00
nicolas.dorier
7dd88d8d8f Can send max invoice value for lightning payments 2018-03-26 01:57:44 +09:00
Pavel Ševčík
56d1d3e645 Czech language support 2018-03-25 17:17:38 +02:00
nicolas.dorier
f533309b49 plug japanese translation 2018-03-24 23:02:41 +09:00
nicolas.dorier
a0d2790491 Activate spanish 2018-03-24 14:35:49 +09:00
nicolas.dorier
08d82390b0 Remove language not yet translated 2018-03-24 01:15:28 +09:00
nicolas.dorier
b845a545e2 Plug Dutch to LanguageService 2018-03-24 01:10:19 +09:00
nicolas.dorier
7266420eec Plug portugeuse to language service 2018-03-24 01:04:05 +09:00
nicolas.dorier
7d17bf7f2a Can set store default language 2018-03-23 17:27:48 +09:00
nicolas.dorier
39b34ff4ed Can invite user to manage your store 2018-03-23 16:24:57 +09:00
nicolas.dorier
806474c8c6 Allow account selection of the ledger 2018-03-18 14:15:23 +09:00
nicolas.dorier
acb2407654 Fix bug: Paying a lightning invoice might miss 1 satoshi due to rounding error 2018-03-18 02:26:33 +09:00
nicolas.dorier
09f97915d6 Fix charge listener bug, and decouple charge from clightning in test docker compose 2018-03-17 19:26:30 +09:00
nicolas.dorier
81328b2667 Update charge in tests and fix two build time warnings 2018-03-17 17:49:42 +09:00
nicolas.dorier
49cf804914 bump 2018-03-13 15:39:52 +09:00
nicolas.dorier
0f6ad75536 Remove internal exception thrown by NBitcoin 2018-03-13 15:28:39 +09:00
nicolas.dorier
303a617f9e Improve invoice.cshtml display if offchain payment is present 2018-03-06 16:37:25 -05:00
nicolas.dorier
b67a962d12 Make sure the txrelayfee is correctly set 2018-03-02 14:16:16 -05:00
nicolas.dorier
c8923af573 Lightning Network support implementation 2018-02-26 00:48:12 +09:00
nicolas.dorier
5e452a679e simplify code 2018-02-20 14:23:50 +09:00
nicolas.dorier
0e1a1fd2cd Remove dependencies in StoreController to on chain payment specific stuff 2018-02-20 12:45:04 +09:00
nicolas.dorier
3f07010de8 Rename IPaymentMethodFactory to ISupportedPaymentMethod 2018-02-20 10:44:39 +09:00
nicolas.dorier
2e45c8b190 Isolate PaymentMethodId in its own class, generalise DerivationStrategy 2018-02-19 23:13:23 +09:00
nicolas.dorier
b4f4401cdc remove unused code, remove derivationscheme specific logic from InvoiceEntity 2018-02-19 22:41:47 +09:00
nicolas.dorier
2f3238c65e Use decimal for calculations instead of Money, and round due amount at ceil satoshi 2018-02-19 18:54:21 +09:00
nicolas.dorier
a634593903 Big refactoring renaming cryptoData => PaymentMethod 2018-02-19 15:09:05 +09:00
nicolas.dorier
af94de93d1 Add some comments 2018-02-19 11:31:34 +09:00
nicolas.dorier
35f669aa15 Isolating code of on chain specific payment in its own folder 2018-02-19 11:06:08 +09:00
nicolas.dorier
4795bd8108 Add some sanity check, make sure to use CrytpoDataId everywhere 2018-02-19 03:35:19 +09:00
nicolas.dorier
29aed99fd1 prevent a crash if the new property DerivationStrategies is notset at invoice level 2018-02-19 02:56:44 +09:00
nicolas.dorier
aa4519ac30 Big refactoring for supporting new type of payment 2018-02-19 02:38:03 +09:00
nicolas.dorier
3bc232e1da Further isolate bitcoin related stuff inside BitcoinLikePaymentData 2018-02-18 02:35:02 +09:00
nicolas.dorier
a1ee09cd85 Further abstract payment data by encapsulating bitcoin related logic into BitcoinLikePaymentData 2018-02-18 02:19:35 +09:00
nicolas.dorier
b898cc030c general code cleanup + add analyzers 2018-02-17 13:18:16 +09:00
nicolas.dorier
0602353dd2 fix bug happening if only btc is supported 2018-02-17 01:55:38 +09:00
nicolas.dorier
5de330b1f9 Refactoring to keep coin logic out of InvoiceWatcher 2018-02-17 01:34:40 +09:00
nicolas.dorier
c3684eb064 BTCPayWallet should be singleton per cryptcode 2018-02-15 15:17:12 +09:00
nicolas.dorier
cd1611dbcd make sure to not spam too much NBXplorer 2018-02-15 14:44:08 +09:00
nicolas.dorier
c17793aca9 do not freeze the stores page 2018-02-15 13:33:29 +09:00
nicolas.dorier
01d898b618 Caching GetCoins 2018-02-15 13:02:12 +09:00
nicolas.dorier
17069c311b Remove transaction cache 2018-02-15 12:42:48 +09:00
nicolas.dorier
6181e8b3e4 Refactor the code to prepare the group to support of another hardware wallet 2018-02-13 16:57:40 +09:00
nicolas.dorier
cd0a650df4 Ledger wallet support 2018-02-13 03:27:36 +09:00
nicolas.dorier
465fbdd47f Fix bug which can happen if parsing of CoinAverage decimal is on another culture 2018-02-10 22:03:33 +09:00
nicolas.dorier
db46ca87d7 do not share cache between long and short profile 2018-02-01 21:34:07 +01:00
nicolas.dorier
d873a1a545 Set a longer timeout for the cache for /rates, update NBXPlorer, bump 2018-02-01 21:24:13 +01:00
nicolas.dorier
ea4fa8d5d4 Mock rate provider 2018-01-20 12:30:22 +09:00
nicolas.dorier
69247dee8a Fix api/rates allow to scope by cyrptoCode and storeId 2018-01-19 18:11:43 +09:00
nicolas.dorier
7b9541b8e9 Do not crash if some of the altcoins are unavailable 2018-01-19 17:39:15 +09:00
nicolas.dorier
198e810355 Store can customize rate source 2018-01-19 16:00:20 +09:00
nicolas.dorier
1c0c8fece2 Change default speed to medium 2018-01-19 00:37:00 +09:00
nicolas.dorier
4b7b6c6327 debug 2018-01-18 18:33:26 +09:00
nicolas.dorier
726cd6fd49 Add badge if not on mainnet in the top bar 2018-01-17 16:34:01 +09:00
nicolas.dorier
5f6913b3a2 Can tweak the rate at store level 2018-01-17 15:59:31 +09:00
nicolas.dorier
3f9889d374 Update docker, remove tx cache, use new nbxplorer 2018-01-17 15:02:53 +09:00
nicolas.dorier
ba0e080816 Invoices has events recorded 2018-01-14 21:48:23 +09:00
nicolas.dorier
4a152e8ffc fix build 2018-01-13 17:32:08 +09:00
nicolas.dorier
d54a9474d1 Fixing exception thrown when invoice is paid and supporting only LTC 2018-01-13 17:23:09 +09:00
nicolas.dorier
099c9fa1f9 Fix balance calculation when there is unconfirmed tx 2018-01-13 12:53:56 +09:00
nicolas.dorier
5226b77ffc Fix bug happening when removing data of nbxplorer 2018-01-13 02:28:23 +09:00
nicolas.dorier
4f39a8060c Fixing bug of uncorrectly unassigned addresses 2018-01-13 01:48:19 +09:00
nicolas.dorier
88779e7129 Make sure websockets does not throw, fix annying warning of emails 2018-01-12 18:32:46 +09:00
nicolas.dorier
a1ebedc0d1 Fix unit test 2018-01-12 16:54:57 +09:00
nicolas.dorier
d5ad0cdb39 Fix a edge case "The instance of entity type 'HistoricalAddressInvoiceData'" 2018-01-12 16:42:10 +09:00
nicolas.dorier
39fb8dbb6a better handle case when BTC is not supported by a store 2018-01-12 16:30:34 +09:00
nicolas.dorier
b59021a0be Cleanup the design for multi currencies support, use a single nbxplorer instead of two 2018-01-12 11:54:57 +09:00
nicolas.dorier
8596e16feb make default configuration just work with multi chains 2018-01-11 22:52:28 +09:00
nicolas.dorier
223558c01d Adding transaction caching 2018-01-11 21:01:00 +09:00
nicolas.dorier
3a91965187 Some refactoring improving performance, and better tests for multiple currencies 2018-01-11 17:29:48 +09:00
nicolas.dorier
55d50af39d BTCWallet is single currency, introduce BTCWalletProvider 2018-01-11 14:36:12 +09:00
nicolas.dorier
cb4468d3b3 Fixing payment in different crypto 2018-01-10 18:30:45 +09:00
nicolas.dorier
7618eacef1 Fix: altcoin payment not detected after another coin payment 2018-01-10 15:43:07 +09:00
nicolas.dorier
401a31e5c2 Cleanup code 2018-01-10 02:07:42 +09:00
nicolas.dorier
98b7ad62af Fix order accounting 2018-01-09 17:27:26 +09:00
nicolas.dorier
0c735f4e29 Fix accounting calculation when multi crypto 2018-01-09 10:54:19 +09:00
nicolas.dorier
76d50b018b Calculate rate properly per crypto 2018-01-09 02:57:06 +09:00
nicolas.dorier
31672a2587 Add litecoin to docker-compose fix bugs when two networks generate same address 2018-01-09 01:56:37 +09:00
nicolas.dorier
a16cd3e287 Improve invoice page with currencies information 2018-01-08 20:06:16 +09:00
nicolas.dorier
6ae6335c6d Fix layout_cshtml 2018-01-08 04:14:35 +09:00
nicolas.dorier
e3a1eed8b3 Use Websocket for blockchain notifications 2018-01-08 02:36:41 +09:00
nicolas.dorier
80e878c2f5 Removing http callback notification system 2018-01-07 21:48:00 +09:00
nicolas.dorier
63fceed5f4 invoice watcher can watch several currencies 2018-01-07 02:16:42 +09:00
nicolas.dorier
781b2885cc Refactoring to prepare multiple DerivationSchemes per store and invoices 2018-01-06 19:10:55 +09:00
nicolas.dorier
28ac5608a5 Update NBxplorer, bump version 2018-01-04 22:43:28 +09:00
nicolas.dorier
44c925a4ba Fix #24 2018-01-04 22:21:47 +09:00
nicolas.dorier
a863812f90 Refactor how invoice payments are computed 2017-12-21 18:01:26 +09:00
nicolas.dorier
a37fdde214 Big refactorying for supporting multi currencies 2017-12-21 15:52:04 +09:00
nicolas.dorier
24007f1515 Fix: Forgot to pass in the Rate field to the invoice DTO 2017-12-18 08:56:27 +09:00
nicolas.dorier
34760afe77 Do not show release in footer if compiled in release 2017-12-17 22:50:05 +09:00
nicolas.dorier
99040597dc BTCPrice should be bitcoin price of item 2017-12-17 19:40:42 +09:00
nicolas.dorier
d9794216dd Send InvoicePaymentEvent 2017-12-17 14:33:38 +09:00
nicolas.dorier
84bb6056d3 Use EventAggregator to decouple several classes 2017-12-17 14:17:42 +09:00
nicolas.dorier
bf7ae178ef Fix #18, fix electrum format not recognizing standard p2pkh on testnet 2017-12-17 02:28:37 +09:00
nicolas.dorier
c6959bb0bc Can start without NBXplorer being ready 2017-12-17 01:04:20 +09:00
nicolas.dorier
fa13a2874e Estimate rate with BTCPay if BitcoinAverage stops works 2017-12-08 15:04:47 +09:00
nicolas.dorier
45aee607e3 Can lock down registrations 2017-12-04 00:55:39 +09:00
nicolas.dorier
22f06ecd4e Can set store policy to define how much time to wait before passing a transaction from paid to invalid. 2017-12-03 14:43:52 +09:00
nicolas.dorier
7efe83eba8 notify on invalid in fullnotification is true 2017-12-03 13:42:12 +09:00
nicolas.dorier
9cd7608a53 Fixing bug caused by BTC being too high 2017-12-02 14:07:14 +09:00
nicolas.dorier
479fc50d9a Add PendingInvoice inside CreateInvoice 2017-11-12 23:51:14 +09:00
nicolas.dorier
a29a8f7ed9 Do not use AddAsync 2017-11-12 23:37:21 +09:00
nicolas.dorier
5dbb4bf6be Merge branch 'master' of https://github.com/btcpayserver/btcpayserver 2017-11-12 23:18:45 +09:00
nicolas.dorier
f1f227b746 Index invoice in a parallel thread 2017-11-12 23:03:33 +09:00
lepipele
f58fdafdcd Simplifying check for invoiceData null and status 2017-11-06 07:43:24 -06:00
lepipele
b7b39f8284 Merge remote-tracking branch 'source/master' into dev-lepi
# Conflicts:
#	BTCPayServer/Services/Invoices/InvoiceRepository.cs
2017-11-06 07:35:17 -06:00
nicolas.dorier
b042f98f0f Correctly handle RBF 2017-11-06 00:31:02 -08:00
lepipele
0bb260bec9 Allowing user to invalidate paid invoice 2017-11-05 21:15:52 -06:00
nicolas.dorier
ca85095273 Move code into CurrencyNameTable 2017-10-27 18:58:43 +09:00
nicolas.dorier
4deb7c3270 Adopt dotnet core editorconfig, big reformating 2017-10-27 17:53:04 +09:00
nicolas.dorier
59de852484 remove warning 2017-10-27 12:11:08 +09:00
nicolas.dorier
59ce3b5fc0 Add footer to know what is the current running build 2017-10-27 12:08:18 +09:00
nicolas.dorier
b71f9d0a08 Use CoinAverage as rate provider + add caching to avoid hitting limits 2017-10-27 11:39:11 +09:00
nicolas.dorier
55a4c3c08d Change address if invoice get partially paid 2017-10-25 01:41:01 +09:00
nicolas.dorier
37c02d2539 Can delete a store 2017-10-23 22:55:46 +09:00
nicolas.dorier
4dca81403b Better handle transition from paid to invalid 2017-10-23 18:07:50 +09:00
nicolas.dorier
6ba6a34df2 Fix the states of invoice to match bitpay 2017-10-23 17:44:04 +09:00
lepipele
45b0991841 Fixing typo in namespace 2017-10-20 14:06:37 -05:00
nicolas.dorier
c98f0ba55b Fix watcher loop 2017-10-13 15:05:06 +09:00
nicolas.dorier
76993d2532 prevent watcher loop to crash 2017-10-13 14:59:05 +09:00
nicolas.dorier
62e3f2d8e1 Prevent null invoice to be added to InvoiceWatcher 2017-10-13 14:53:42 +09:00
nicolas.dorier
016db76306 Add page for viewing the Invoice details 2017-10-13 00:25:45 +09:00
nicolas.dorier
bae08b6966 Use callback to update invoice state instead of long polling 2017-10-12 16:33:53 +09:00
NicolasDorier
783132a012 Add balance of the store in the stores page 2017-10-06 11:07:22 +09:00
NicolasDorier
f456d62d3c Properly map addresses to invoice, use new nbxplorer 2017-10-06 10:37:38 +09:00
NicolasDorier
d499ef0977 remove IExternalUrl 2017-09-27 15:16:30 +09:00
NicolasDorier
878a13f1bf Can ask user to confirm email 2017-09-27 14:18:09 +09:00
NicolasDorier
3304d11da8 Fix Token permissions (merchant facade > pos facade) + Add IPN + Add Hangfire integration 2017-09-26 01:31:43 +09:00
NicolasDorier
f8baab8138 Renaming + fix invoice display when paid and expired 2017-09-15 16:06:57 +09:00
NicolasDorier
b5c6ed3860 Init 2017-09-13 15:55:16 +09:00