mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 08:04:26 +01:00
enforce name
This commit is contained in:
@@ -144,6 +144,12 @@ namespace BTCPayServer.Plugins.TicketTailor
|
||||
{
|
||||
request.Name = "Anonymous lizard";
|
||||
}
|
||||
|
||||
var nameSplit = request.Name.Split(" ", StringSplitOptions.RemoveEmptyEntries);
|
||||
if (nameSplit.Length < 2)
|
||||
{
|
||||
request.Name = nameSplit[0] + " Lizard";
|
||||
}
|
||||
var inv = await btcpayClient.CreateInvoice(storeId,
|
||||
new CreateInvoiceRequest()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user