Commit Graph

1124 Commits

Author SHA1 Message Date
Dennis Reimann
7e50267cb0
UI: Store setup finetuning (#2087)
* UI: Store setup finetuning

Incorporate @dstrukt's improvement feedback from [this comment](https://github.com/btcpayserver/btcpayserver/pull/2011#issuecomment-735909927).

* Clean up and fix test
2020-12-02 07:45:00 +01:00
Andrew Camilleri
88aa34747b
Automatically generate permissions docs for GreenField (#2043)
* Automatically generate permissions docs for GreenField

* Do a test instead
2020-11-24 10:10:32 +01:00
nicolas.dorier
18e68d04f9
Rename invoice states and payment states 2020-11-23 18:28:35 +09:00
nicolas.dorier
f3010f622c
fix test 2020-11-23 17:13:29 +09:00
Nicolas Dorier
f9b86a6b2e
Merge pull request #1901 from btcpayserver/api/invoice-extras
GreenField: Add Invoice Payment methods endpoints
2020-11-20 10:25:00 +09:00
Nicolas Dorier
e72becdfcb
Merge branch 'master' into separate-ln-bitcoin-checkout-part2 2020-11-19 12:44:01 +09:00
Nicolas Dorier
23002ac70d
Merge pull request #2068 from Kukks/plugins-db
Plugins: Allow creation of independent DbContexts
2020-11-19 12:39:26 +09:00
nicolas.dorier
1262ad3cd4
Fix warnings 2020-11-19 12:34:56 +09:00
Nicolas Dorier
d8f145c4dc
Merge branch 'master' into plugins-db 2020-11-19 12:19:17 +09:00
Nicolas Dorier
9c5fd1b478
Merge pull request #2058 from NicolasDorier/webhook2
Add Webhooks in store's settings
2020-11-19 12:17:34 +09:00
Kukks
179520a211 Plugins: Allow creation of independent DbContexts
This allows plugins to create custom dbcontexts, which would be namespaced in the scheme with a prefix. Migrations are supported too and the table would be prefixed too
2020-11-18 12:27:26 +01:00
nicolas.dorier
07c5c2972d
Add callback doc 2020-11-16 12:13:27 +09:00
nicolas.dorier
df79c2cf48
Improve tests of webhooks 2020-11-14 13:39:44 +09:00
nicolas.dorier
94bcbeb604
Add Greenfield API 2020-11-13 14:15:03 +09:00
rockstardev
35e45333b1 Uppercasing destination address in QR code if it's Bech32 2020-11-09 23:57:48 -06:00
rockstardev
f17a6f13a4 Adding uppercasing of BITCOIN: scheme 2020-11-09 23:46:31 -06:00
rockstardev
1bff7bdc47 Adding validation to ensure unified QR code works as expected 2020-11-09 23:41:29 -06:00
rockstardev
4dd0ae8bdc UnitTest1.cs code reformatting 2020-11-09 01:48:45 -06:00
rockstardev
4db67e5bc5 Adding slight delay to make test less flaky
Ref:
https://app.circleci.com/pipelines/github/btcpayserver/btcpayserver/4181/workflows/101d7b31-e267-4f5a-9892-2abb7b6cb687/jobs/11557
2020-11-09 01:48:12 -06:00
nicolas.dorier
f3611ac693
Add Webhooks in store's settings 2020-11-08 15:57:24 +09:00
Dennis Reimann
f2daa6a150
Improve store setup display 2020-11-06 11:14:00 +01:00
Kukks
e021d42551 Ensure that there is no LN/Bitcoin specific logic in the Invoice UI endpoint 2020-11-06 11:09:17 +01:00
Dennis Reimann
b73aa55a75
Store setup: Restructuring basics 2020-11-06 10:50:20 +01:00
Mike Olthoff
ef3f314754
Remove QuadrigaCX references (#2021)
* Remove QuadrigaCX references

Quadriga has been dead for years. I've removed the references to them and replaced them with a different Canadian exchange (ndax) for example. 

The whole set of instructions could probably use an overhaul, but for now, at least let's get rid of Gerry's presence.

* Remove Quadriga from tests too

Co-authored-by: Kukks <evilkukka@gmail.com>
2020-11-02 13:10:55 +01:00
Nicolas Dorier
1199d4ead9
Merge pull request #2031 from bkiac/master
Fix failing generateaddress when address contains escape sequences in docker-bitcoin-generate.sh
2020-10-29 23:58:00 +09:00
Bence Knáb
afece8193e Fix possibly dirty generated bitcoin address 2020-10-29 14:16:23 +01:00
Andrew Camilleri
40d95acfb9 Apply suggestions from code review
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2020-10-27 09:47:22 +01:00
Kukks
8962bf00f6 GreenField: Add Invoice Payment methods endpoints
lets you fetch all active payment methods data + payments made
2020-10-27 09:47:21 +01:00
nicolas.dorier
da864f4c6c
bump nbx and nbitcoin 2020-10-24 15:27:48 +09:00
rockstardev
2f25f1790e Trying to prevent ocassional chrome crashes
Error: The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.
2020-10-18 03:11:17 -05:00
rockstardev
d90fcf15bd Verifying presence of wallet warning on store list 2020-10-18 03:11:17 -05:00
rockstardev
ef99eeb300 Adding selenium test for store hints 2020-10-18 03:11:17 -05:00
Kukks
b81e4c01ec clean altcoins docker compose 2020-10-17 16:09:34 +02:00
Dennis Reimann
f2870caed2
Payment redesign (#1967)
* Payment redesign

Guess who's back!

This reverts commit 4174fa648d.

* Refactor PullPayment state string

Compatible with this one: https://github.com/btcpayserver/btcpayserver/pull/1834/files#diff-a9136096252382b110b9a7ac7747b95aR41

* Use unified copy to clipboard function

* Refactor status text class to helper function
2020-10-13 09:58:46 +02:00
Andrew Camilleri
4174fa648d
Revert "Payment redesign" (#1962) 2020-10-08 08:37:18 +02:00
Nicolas Dorier
9284ac7461
Merge pull request #1930 from dennisreimann/payment-redesign
Payment redesign
2020-10-08 12:10:28 +09:00
Nicolas Dorier
55eec06e77
Merge pull request #1934 from btcpayserver/better-users
Add Created date to user, add verified column in list and make user l…
2020-10-08 12:08:16 +09:00
Kukks
3d2b4cbfa8 Add Created date to user, add verified column in list and make user list use same model as modern lists 2020-10-05 13:00:15 +02:00
nicolas.dorier
d8da8023c2
Add tests 2020-10-05 18:09:00 +09:00
Dennis Reimann
7b718ada63
Pull Payment UI: Test fix 2020-10-01 21:23:45 +02:00
nicolas.dorier
6069e8f083
Fix test fail and warnings 2020-10-01 20:17:20 +09:00
Nicolas Dorier
a66578c46d
Merge pull request #1871 from xpayserver/feat/payment-method-criteria
Add Value Criteria For Payment Method
2020-09-30 20:40:31 +09:00
Nicolas Dorier
e45dcf61c4
Merge pull request #1831 from btcpayserver/add-btc-index
Show index of payment address for onchain payments
2020-09-30 18:35:51 +09:00
Kukks
d1efddd312 Make sure lightning listener is listening to new bolt11 invoices for partially paid btcpay invoices and that all payments are registered to the invoice. 2020-09-24 12:18:19 +02:00
Kukks
dbe1579fc4 fix pos app test 2020-09-24 09:43:39 +02:00
nicolas.dorier
2de20937ac
Add fallbackfee for tests 2020-09-24 15:38:51 +09:00
nicolas.dorier
10f5967e41
bump bitcoind 2020-09-24 15:26:40 +09:00
Kukks
d334eed9bb improve test 2020-09-22 11:30:18 +02:00
Kukks
0819df3d26 Ensure new bolt11 invoice on partial payment to btcpay invoice 2020-09-22 11:30:18 +02:00
XPayServer
e276443d2d Add Value Criteria For Payment Method
I upgrade lightning max/bitcoin min to support better control in store. Now can have setting only enable specific payment method only if value high/low I think make code simple more too and backward compatible
2020-09-22 11:20:44 +02:00
Nicolas Dorier
62f00fa970
Merge pull request #1886 from Kukks/invite-link
Allow admins to invite new users
2020-09-19 11:15:38 +09:00
Kukks
44889a3826 fix payout test 2020-09-18 08:51:23 +02:00
Dennis Reimann
7e60328cff
Greenfield: Rename API key redirect params; switch to POST body (#1898)
* Rename user param to userId in API key redirect

This way it is clearer what to expect and it also make the parameteer easier to consume.

* Post redirect: Allow form url and prettify page

- Form URL as alternative to controller/action for external URLs
- Making it look nice and add explanation for non-JS case

* APIKeys: Minor view updates

fix

* APIKeys: Use POST redirect for confirmation

fix

* UI: Minor update to confirm view

Tidies it up and adapts to the newly added ConfirmAPIKeys view.

* APIKeys: Update delete view

Structures the information in title and description better.

* APIKeys: Distinguish authorize and confirm (reuse)

* Upgrade ChromeDriver

* Test fixes

* Clean up PostRedirect view

By adding missing forgery token

* Re-add tests for callback post values

* Rename key param to apiKey in API key redirect

* Update BTCPayServer/wwwroot/swagger/v1/swagger.template.authorization.json

Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>

* Use DEBUG conditional for postredirect-callback-test route

* Remove unnecessary ChromeDriver references

* Add debug flag

* Remove debug flags

Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
2020-09-17 11:37:49 +02:00
Dennis Reimann
8ba852084e
Users API: Add roles (#1914)
* API: Fix create user response model

* API: Add roles to user data
2020-09-16 14:17:33 +02:00
Kukks
9365706777 Add test 2020-09-16 11:49:47 +02:00
Kukks
eb9fe7c401 add tests 2020-09-16 08:54:51 +02:00
Nicolas Dorier
25dd38af5c
Merge pull request #1730 from xpayserver/feat/eth
Add Ethereum & ERC20 Support
2020-09-15 19:51:55 +09:00
Nicolas Dorier
0a8fb1b835
Merge pull request #1857 from Kukks/fix-greenfield-roles
Set roles when authenticating via greenfield
2020-09-11 22:16:18 +09:00
Kukks
50a9772388 Remove Changelly 2020-09-10 10:30:53 +02:00
XPayServer
de755ac0bb Add Ethereum & ERC20 Support
Add Tests
Add Index, XPub to payment data
Add Note on local ETH node
Fix Sync Summary and Race Condition
2020-09-09 08:19:10 +02:00
Kukks
1cb3e5f98c Set roles when authenticating via greenfield
fixes #1855
2020-09-08 11:22:32 +02:00
rockstardev
5e6cc4f55a Bumping docker-compose.altcoins.yml as well 2020-09-07 01:24:05 -05:00
rockstardev
d8550f6cca Update LND to 0.11.0-beta 2020-09-07 01:24:05 -05:00
nicolas.dorier
39beacf884
Split mnemonics correctly 2020-09-03 23:59:54 +09:00
Kukks
0e07fcc706 fixes and adapt 2020-08-28 09:00:14 +02:00
Kukks
7ca74aeea7 Add API Keys Application identifier
This lets the authorize api key screen redirect to the defined url  and provide it with the user id, permissions granted and the key.

This also allows apps to match existing api keys generated for it specifically using the application identifier, and if matched, presented with a confirmation page before redirection.
2020-08-28 09:00:13 +02:00
nicolas.dorier
709b06baa3
Remove invoices/email for this PR 2020-08-27 11:00:04 +09:00
nicolas.dorier
f2e94e6819
Use nicer representation of payment methods in the Greenfield API 2020-08-26 21:36:32 +09:00
nicolas.dorier
b2ff041ec0
Create Metadata property for InvoiceEntity, migrate all data without logic there 2020-08-26 21:36:31 +09:00
Kukks
8dea7df82a
make individual action items 2020-08-26 21:36:31 +09:00
Kukks
41bebfedc4
add swagger docs 2020-08-26 21:36:31 +09:00
Kukks
d96bd15b3b
add status and refactor 2020-08-26 21:36:30 +09:00
Kukks
34e76494e3
GreenField: Invoice API 2020-08-26 21:36:29 +09:00
nicolas.dorier
a578857806
bump clightning 2020-08-17 11:54:23 +09:00
nicolas.dorier
b176b972b6
Fix tests 2020-08-16 22:09:10 +09:00
Dennis Reimann
10d6e44a38
Docker: Add Lightning channel setup/teardown scripts (#1835)
An alternative for establishing the customer-merchant channel connection.
2020-08-11 14:25:12 +02:00
Dennis Reimann
2d608621d9
Remove confirm option for seed from wallet settings
Closes #1813.
2020-08-05 11:20:34 +02:00
Kukks
b381e629f1 Handle multiple new invoices in payment requests 2020-08-04 07:55:13 +02:00
nicolas.dorier
7f29769352
Bump nbx 2020-08-04 13:22:40 +09:00
rockstardev
9e70bb448a Fixes based on feedback 2020-08-03 03:17:04 -05:00
rockstardev
6c7d3ae0bf Adding checkbox for check new version policy 2020-08-03 03:17:04 -05:00
rockstardev
51211dccb0 Adding test to verify new version check 2020-08-03 03:17:04 -05:00
Nicolas Dorier
8e2728902a
Merge pull request #1754 from btcpayserver/feat/prefs-generalization
Cookie Preferences Generalization, applying same style to ListInvoices and Payment Requests
2020-07-31 16:12:10 +09:00
nicolas.dorier
6894a224b6
Remove redundant doc info written in the doc 2020-07-31 10:56:17 +09:00
rockstardev
77f5d0be35 Initializing BasePagingViewModels from cookie 2020-07-30 18:02:59 -05:00
nicolas.dorier
26112a1ed6
Use CsvHelper for generating CSV 2020-07-30 10:01:56 +09:00
nicolas.dorier
17bcfe154c
Add coherence test on test time docker compose 2020-07-29 22:12:46 +09:00
Nicolas Dorier
3ce16dc9a3
Merge pull request #1782 from xpayserver/btc-only
Add Bitcoin Only Build
2020-07-29 21:58:28 +09:00
nicolas.dorier
f9342b1c92
Run tests on the altcoin build for maximum coverage 2020-07-29 20:49:46 +09:00
nicolas.dorier
9b7323f9fa
Move some altcoins tests 2020-07-29 20:01:51 +09:00
nicolas.dorier
22da4182b1
Separate docker-compose and launch profiles 2020-07-29 19:38:58 +09:00
nicolas.dorier
002f6d3e87
Isolate altcoins tests in their own folder 2020-07-29 19:11:54 +09:00
nicolas.dorier
02998fff49
Add Altcoins-Release and Altcoins-Debug configurations 2020-07-29 18:55:28 +09:00
Kukks
7230a91b4f Make Decimal json converter work for other number types 2020-07-29 08:44:52 +02:00
nicolas.dorier
c06c5d4104
bump NBX 2020-07-29 13:27:04 +09:00
XPayServer
92ae1109d0 Add Bitcoin Only Build 2020-07-28 22:48:51 +02:00
rockstardev
9d9d0461ad Generalizing saving of search, applying it to PaymentRequests grid 2020-07-28 10:28:32 -05:00
Dennis Reimann
967f28542f
Minor README improvements 2020-07-23 09:47:04 +02:00
Dennis Reimann
9e1ac8cd28
Update test 2020-07-20 17:46:25 +02:00
Dennis Reimann
6bc5c05cf3
Fix text and test 2020-07-17 18:00:10 +02:00
Dennis Reimann
188774f30a
Seed-lookup related test fixes 2020-07-17 18:00:08 +02:00
nicolas.dorier
561caf966a
bump 2020-07-16 12:34:39 +09:00
Kukks
9d1cd085ea ad psbt base64 file upload test 2020-07-14 09:52:17 +02:00
Nicolas Dorier
42f6fbb4e5
Merge pull request #1504 from Argoneum/argoneum
Add Argoneum
2020-07-13 15:00:44 +09:00
rockstardev
91e06d0858 Modifying launchSettings.json to follow 2 space indent convention 2020-07-11 16:45:44 -05:00
rockstardev
fe776edc9e Updating dev LND to 0.10.2-beta 2020-07-11 16:31:38 -05:00
Oleg Semyonov
3051724ad8 Add Argoneum 2020-07-07 07:44:45 +03:00
rockstardev
f88c02cccd Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
rockstardev
b6c7af32de Cleaning up bom from cs files 2020-06-28 21:44:35 -05:00
nicolas.dorier
51514252b6
Run dotnet format 2020-06-28 17:55:27 +09:00
nicolas.dorier
d2958e1a7d
Move extensions methods in specific classes 2020-06-28 17:16:53 +09:00
Nicolas Dorier
dbb2924ccc
Fix: Create store could be called with a scoped store's modify apikey (#1696) 2020-06-27 15:34:03 +09:00
nicolas.dorier
f2b986a357
Remove warnings 2020-06-26 20:52:59 +09:00
nicolas.dorier
603a3dd273
bump NBitcoin 2020-06-26 16:29:40 +09:00
Kukks
bf8190d122 bump nbx docker 2020-06-25 10:33:05 +02:00
Nicolas Dorier
23aec25686
Merge pull request #1685 from dennisreimann/broken-links
Check and fix broken anchor links.
2020-06-25 17:25:43 +09:00
nicolas.dorier
5e8b379c50
Add invoice refund 2020-06-25 15:31:46 +09:00
nicolas.dorier
d03124dfba
Add an approval state to pull payments 2020-06-25 13:35:10 +09:00
Nicolas Dorier
8230a408ac
Add pull payment feature (#1639) 2020-06-24 10:34:09 +09:00
Dennis Reimann
36868644dc
Check and fix broken anchor links.
In addition to #1682.
2020-06-23 17:51:25 +02:00
Andrew Camilleri
0dd1b668cd
Support wasabi file format input (#1671)
* Support wasabi file format input

This adds support to importing the wasabi file format which seems to be used more for imports by Wasabi,ColdCard,BlueWallet & Cobo Vault (and way better than electrum anyway)

* fixes

* add test
2020-06-22 15:39:29 +09:00
nicolas.dorier
24a88fcfb5
Adapt payjoin for BIP78 2020-06-22 13:57:42 +09:00
rockstardev
31cc966b38 Bugfixing setting of Created, expanding test 2020-06-15 00:57:20 -05:00
rockstardev
261931c8ef Adding list notification test 2020-06-15 00:53:12 -05:00
nicolas.dorier
f40a8853f6
Require Owner role to the store for modifying store via Greenfield 2020-06-12 18:26:20 +09:00
Nicolas Dorier
0e0297d650
Merge pull request #1643 from NicolasDorier/fix/ln
Fix lightning implementation, docs and tests
2020-06-09 21:52:45 +09:00
nicolas.dorier
8dd6ecc0b8
Fix lightning implementation, docs and tests 2020-06-09 17:24:34 +09:00
rockstardev
da54154ae7 Bump LND version 2020-06-08 23:28:45 -05:00
nicolas.dorier
3fbe86c286
Rename Permission.StoreId to Permission.Scope 2020-06-07 23:17:48 +09:00
Nicolas Dorier
0022e71dd4
Merge pull request #1628 from Kukks/greenfield/consistentreturn
GreenField: Handle status codes, error models consistently
2020-06-07 18:59:22 +09:00
rockstardev
db209af787 Updating ports for merchant lnd
I saw several instances where btcpayservertests_merchant_lnd_1 failed to start in circleci
2020-06-07 01:24:47 -05:00
Kukks
30bd94ee43 fix tests 2020-06-07 08:21:45 +02:00
Dennis Reimann
6043b7c75d
Minor fix ups
Resolves https://github.com/btcpayserver/btcpayserver/pull/1633#discussion_r435655010
2020-06-05 11:38:55 +02:00
Dennis Reimann
67758609a7
Add Onion-Location HTTP header
Closes #1626.
2020-06-04 08:53:55 +02:00
Kukks
340ba5c714 fix symbol 2020-06-01 08:13:39 +02:00
Kukks
284e66c730 fix test 2020-05-31 20:54:50 +02:00
Kukks
587f244f1d Remove dependency on Common from Rating
replaces #1591 and #1592 , closes #1571 Replaces the Currencies.txt to a json format which includes the networks too ( there is also a test to check now) Also makes CurrencyPair not depend on network and instead use CurrencyNameTable
2020-05-31 20:54:50 +02:00
Nicolas Dorier
ebc99adc58
Merge pull request #1615 from NicolasDorier/refactor/timespan
Always use second based TimeSpan in Greenfield
2020-05-31 10:55:40 +09:00
nicolas.dorier
048dff7e9e
Always use second based TimeSpan in Greenfield 2020-05-31 08:52:32 +09:00
Nicolas Dorier
a70934938a
Merge pull request #1605 from dennisreimann/pos-refactoring
Point of Sale Refactoring
2020-05-30 13:14:50 +09:00
Dennis Reimann
9e315f99d0
POS: Updates from code review 2020-05-28 12:50:08 +02:00
Kukks
16ad3ee7fe Add test for payment request payment status update in greenfield 2020-05-28 09:48:47 +02:00
Dennis Reimann
559015c70d
POS: Test fixes 2020-05-28 09:40:34 +02:00
Dennis Reimann
58f56eac90
POS: Updates from code review
Thanks @kukks
2020-05-27 14:20:21 +02:00
Dennis Reimann
b7ec22ee89
POS: Set ViewType via optional URL parameter
Falls back to the DefaultView defined in the POS settings.

POS: Fix POST-Route
2020-05-26 21:53:22 +02:00
Dennis Reimann
fad53a9fa2
POS: Replace EnableShoppingCart with DefaultView 2020-05-26 16:48:47 +02:00
Kukks
c8f182f13f Rename Coldcard to Electrum/Airgapped hardware wallets
Also adds support to read the xpub from the file directly ( Cobo Vault support)
2020-05-25 15:49:44 +02:00
nicolas.dorier
7e5d269c39
Remove LedgerWallet direct integration 2020-05-25 07:41:30 +09:00
nicolas.dorier
cccf3ca617
The signing context should not be passed to PSBT screen 2020-05-25 07:05:01 +09:00
nicolas.dorier
35432d919c
Refactor common data structure for wallet into SigningContext 2020-05-25 06:29:06 +09:00