mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Make Checkout V2 the default (#4850)
* Make Checkout V2 the default * Fix align
This commit is contained in:
@@ -1157,7 +1157,7 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
StoreId = model.StoreId,
|
||||
Currency = storeBlob?.DefaultCurrency,
|
||||
UseNewCheckout = storeBlob?.CheckoutType is CheckoutType.V2,
|
||||
CheckoutType = storeBlob?.CheckoutType ?? CheckoutType.V2,
|
||||
AvailablePaymentMethods = GetPaymentMethodsSelectList()
|
||||
};
|
||||
|
||||
@@ -1172,7 +1172,7 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
var store = HttpContext.GetStoreData();
|
||||
var storeBlob = store.GetStoreBlob();
|
||||
model.UseNewCheckout = storeBlob.CheckoutType == CheckoutType.V2;
|
||||
model.CheckoutType = storeBlob.CheckoutType;
|
||||
model.AvailablePaymentMethods = GetPaymentMethodsSelectList();
|
||||
|
||||
if (!ModelState.IsValid)
|
||||
|
||||
Reference in New Issue
Block a user