Commit graph

499 commits

Author SHA1 Message Date
nicolas.dorier
9b1052f023
Remove useless code 2024-10-08 21:25:37 +09:00
nicolas.dorier
212e8c3654
Fix potential crash in migration 2024-10-08 16:48:56 +09:00
nicolas.dorier
7c77b16517
Fix potential crash on migration 2024-10-08 16:30:21 +09:00
nicolas.dorier
e5bb0bcba3
Fix forgotten save 2024-10-08 16:25:11 +09:00
nicolas.dorier
ca4a7d8771
Migrate excludedPaymentMethods from stores 2024-10-08 16:21:44 +09:00
nicolas.dorier
dd35af3c55
Use AddUIExtension 2024-10-07 21:43:06 +09:00
nicolas.dorier
968223a953
Rename PaymentModel to CheckoutModel 2024-10-07 19:58:08 +09:00
nicolas.dorier
34b2cca492
Simplify extension of payments extensions 2024-10-07 18:37:38 +09:00
nicolas.dorier
e1bfc04451
Move checkout registration to the UI Extension 2024-10-07 17:38:02 +09:00
Nicolas Dorier
64ba8248d2
Can inject currency data in CurrencyNameTable () 2024-10-04 22:24:44 +09:00
Nicolas Dorier
5704919b3a
BlockExplorer links should be using payment method ids () 2024-10-04 16:58:13 +09:00
Nicolas Dorier
413a9b4269
Add translation for store rate and wallet setup () 2024-10-03 19:21:19 +09:00
Nicolas Dorier
4a31cf0a09
Migrate payment requests () 2024-10-01 16:07:51 +09:00
nicolas.dorier
b726ef8a2e
Migrate PayoutProcessors's PayoutMethodId in entity migration 2024-09-24 09:43:02 +09:00
Nicolas Dorier
36bada8feb
Uniformize Wallet API's path ()
* Uniformize Wallet API's path

* Rewrite old API path to new API

* Rename routes
2024-09-12 15:19:10 +09:00
Nicolas Dorier
7c92ce771f
Reindex Invoices table if corrupt, fix migration timeout () 2024-09-10 17:34:02 +09:00
Nicolas Dorier
7de05700e9
Edit dictionary should be in JSON format () 2024-09-09 11:25:36 +09:00
Nicolas Dorier
c93497af10
Rename PaymentMethod => PaymentMethodId ()
* Rename PaymentMethod => PaymentMethodId

* Rename DB Columns
2024-09-06 13:24:33 +09:00
Nicolas Dorier
99dda66bbc
Rename PayoutData.Destination () 2024-09-06 10:34:10 +09:00
Nicolas Dorier
a3cfb9e5e4
Removal of the Altcoins build ()
* Remove some useless #if ALTCOINS

* Removal of the Altcoins build
2024-08-30 08:34:23 +09:00
Nicolas Dorier
1dd37c5020
Refactor Payouts and PullPayments DB models () 2024-08-28 18:52:08 +09:00
Nicolas Dorier
ca4abcb497
Allow translations of BTCPay Server Backend by admins () 2024-07-24 20:16:20 +09:00
Nicolas Dorier
372688b723
Disable plugins if they crash the Dashboard page () 2024-07-11 00:09:54 +09:00
Nicolas Dorier
a295e123bc
Migrate Payouts to new format ()
* Migrate Payouts to new format

* Rename PayoutData column to PayoutMethodId
2024-06-28 20:07:53 +09:00
d11n
181e4fd2fc
Sanitizer: Allow bitcoin and lightning URI schemes ()
Fixes .
2024-05-24 14:10:32 +09:00
Nicolas Dorier
c134602cbd
Remove Legacy Status from the code () 2024-05-15 07:49:53 +09:00
Nicolas Dorier
d96b066658
Recommended exchange to be resolved during Invoice Creation ()
* Recommended Exchange Rate Selection during Invoice Creation

* Make Recommended exchanges pluginifiable
2024-05-13 22:29:42 +09:00
Nicolas Dorier
adbe5977cd
Decouple DefaultRates from BTCPayNetwork () 2024-05-09 17:20:24 +09:00
d11n
4c303d358b
Branding updates for 2.0 ()
* Remove deprecated CSS options

Closes .

* Greenfield: Add brandColor to store APIs

Closes .

* Migrate file IDs to URLs

Closes .

* Greenfield: Add CSS and logo URL to store settings API

Closes .

* Add migration test

* Store and Server branding can reference file's via fileid:ID

* Add PaymentSoundUrl to Store API

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2024-05-09 09:18:02 +09:00
Nicolas Dorier
8bb4ceaaac
Remove dead code from multi db support () 2024-05-07 09:21:49 +09:00
Nicolas Dorier
a89c0d4797
Add refund reports ()
* Add refund reports

* Fix fake data generator in reports
2024-05-06 18:44:16 +09:00
Nicolas Dorier
9db9c5e936
Decouple PaymentMethodId from PayoutMethodId () 2024-05-01 10:22:07 +09:00
Nicolas Dorier
d3277306cf
Avoid timeouts during EF migrations () 2024-04-25 17:27:45 +09:00
Nicolas Dorier
0f08d3e3a3
Remove migrations prior to 1.0.3.162 ()
* Consolidate EF migrations up to 03/2020 into a single SQL script

* Remove old migrations code
2024-04-25 14:09:21 +09:00
Nicolas Dorier
f1a04a3bd0
Remove MySQL and Sqlite deps () 2024-04-15 19:08:25 +09:00
Nicolas Dorier
6cc1751924
The Big Cleanup: Refactor BTCPay internals () 2024-04-04 16:31:04 +09:00
Snoppy
9ac0e982d6
chore: fix typos () 2024-03-30 10:20:24 +01:00
Andrew Camilleri
cb25c225e9
Remove custodians ()
* Remove custodians

* Hide Experimental checkbox in the server policies

---------

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2024-03-29 00:28:27 +09:00
d11n
09dbe44bca
Onboarding: Invite new users on store level ()
* Onboarding: Invite new users

- Separates the user self-registration and invite cases
- Adds invitation email for users created by the admin
- Adds invitation tokens to verify user was invited
- Adds handler action for invite links
- Refactors `UserEventHostedService`
- Fixes .

* Add permissioned form tag helper

* Better way of changing a user's role

* Test fixes
2024-03-19 14:58:33 +01:00
d11n
e43b4ed540
Onboarding: Invite new users ()
* Server Users: More precise message when inviting users

This lets the admin who invited a new user know whether or not an email has been sent. If the SMTP server hasn't been set up, they need to share the invite link with the user.

* Onboarding: Invite new users

- Separates the user self-registration and invite cases
- Adds invitation email for users created by the admin
- Adds invitation tokens to verify user was invited
- Adds handler action for invite links
- Refactors `UserEventHostedService`

* Remove duplicate status message from views that use the wizard layout

* Auto-approve users created by an admin

* Notify admins via email if a new account requires approval

* Update wording

* Fix update user error

* Fix redirect to email confirmation in invite action

* Fix precondition checks after signup

* Improve admin notification

Send notification only if the user does not require email confirmation or when they confirmed their email address. Rationale: We want to inform admins only about qualified users and not annoy them with bot registrations.

* Allow approval alongside resending confirm email

* Use user email in log messages instead of ID

* Prevent unnecessary notification after email confirmation

* Use ApplicationUser type explicitly

* Fix after rebase

* Refactoring: Do not subclass UserRegisteredEvent
2024-02-28 20:43:18 +09:00
d11n
147c6c4548
HTML Sanitizer updates ()
* Update HTML sanitizer package

* Remove unused sanitizer from apps

* Allow mailto: links

Fixes .
2024-02-21 20:53:24 +01:00
Andrew Camilleri
f72a6df55a
Add legacy report () 2024-02-21 14:44:49 +01:00
d11n
6290b0f3bf
Admins can approve registered users ()
* Users list: Cleanups

* Policies: Flip registration settings

* Policies: Add RequireUserApproval setting

* Add approval to user

* Require approval on login and for API key

* API handling

* AccountController cleanups

* Test fix

* Apply suggestions from code review

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

* Add missing imports

* Communicate login requirements to user on account creation

* Add login requirements to basic auth handler

* Cleanups and test fix

* Encapsulate approval logic in user service and log approval changes

* Send follow up "Account approved" email

Closes .

* Add notification for admins

* Fix creating a user via the admin view

* Update list: Unify flags into status column, add approve action

* Adjust "Resend email" wording

* Incorporate feedback from code review

* Remove duplicate test server policy reset

---------

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2024-01-31 14:45:54 +09:00
Chukwuleta Tobechi
411e0334d0
Bitnob rate provider ()
* Bitnob rate provider

* Add Bitnob as recommended exchange for NGN
2024-01-30 10:18:42 +09:00
Nicolas Dorier
d6806dc1f6
Improve checkout page load time by fetching recommended fee in the background periodically () 2024-01-18 17:16:57 +09:00
Nicolas Dorier
376067324b
Remove unused variables () 2024-01-18 09:47:39 +09:00
Nicolas Dorier
1d6d146fb2
Revert "Remove unused variables" ()
This reverts commit f070b22355.
2024-01-18 00:05:50 +09:00
nicolas.dorier
f070b22355
Remove unused variables 2024-01-17 18:46:28 +09:00
Andrew Camilleri
c5a0e28420
Refactor Wallet import code ()
* Refactor Wallet import code

The code for wallet import was incredibly messy as it evolved over time from various requests.

This PR:
* splits up each supported format into its own file
* Supports taproot descriptors (through a hack until NBitcoin supports it internally) fixes 
* Reduces different paths for handling electrum/non-electrum xpubs
* Allows plugins to add their own import support formats for onchain wallets.

* Update NBitcoin to parse tr descriptors

* Fix warnings

* Use dedicated type OnChainWalletParsers

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2024-01-17 18:08:39 +09:00
Andrew Camilleri
6324a1a1e8
Remove bittrex ()
* Remove bittrex

* Test fix

---------

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2023-12-12 17:38:28 +01:00