Add ability to specify default payment method through Greenfield API

This commit is contained in:
Umar Bolatov
2021-08-29 15:54:54 -07:00
committed by Andrew Camilleri
parent 809340e629
commit 5cba59932b
4 changed files with 8 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ namespace BTCPayServer.Controllers
}
entity.SpeedPolicy = invoice.Checkout.SpeedPolicy ?? store.SpeedPolicy;
entity.DefaultLanguage = invoice.Checkout.DefaultLanguage;
entity.DefaultPaymentMethod = invoice.Checkout.DefaultPaymentMethod;
entity.RedirectAutomatically = invoice.Checkout.RedirectAutomatically ?? storeBlob.RedirectAutomatically;
IPaymentFilter? excludeFilter = null;
if (invoice.Checkout.PaymentMethods != null)