Pull Payment: Add QR scanner for destination and infer payment method (#5358)

* Pull Payment: Add QR scanner for destination and infer payment method

Closes #4754.

* Test fix
This commit is contained in:
d11n
2023-10-10 05:30:09 +02:00
committed by GitHub
parent 229a4ea56c
commit e5a2aeb145
4 changed files with 90 additions and 72 deletions

View File

@@ -22,6 +22,7 @@ namespace BTCPayServer.Models
StoreId = data.StoreId;
var blob = data.GetBlob();
PaymentMethods = blob.SupportedPaymentMethods;
BitcoinOnly = blob.SupportedPaymentMethods.All(p => p.CryptoCode == "BTC");
SelectedPaymentMethod = PaymentMethods.First().ToString();
Archived = data.Archived;
AutoApprove = blob.AutoApproveClaims;
@@ -66,6 +67,8 @@ namespace BTCPayServer.Models
}
}
public bool BitcoinOnly { get; set; }
public string StoreId { get; set; }
public string SelectedPaymentMethod { get; set; }