mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-24 01:14:20 +01:00
committed by
Nicolas Dorier
parent
d0d077642d
commit
44d1419af9
@@ -1656,6 +1656,15 @@ donation:
|
|||||||
Assert.Equal("CAD", orangeInvoice.Currency);
|
Assert.Equal("CAD", orangeInvoice.Currency);
|
||||||
Assert.Equal("orange", orangeInvoice.ItemDesc);
|
Assert.Equal("orange", orangeInvoice.ItemDesc);
|
||||||
|
|
||||||
|
|
||||||
|
Assert.IsType<RedirectToActionResult>(publicApps.ViewPointOfSale(appId, 0, null, null, null, null, "apple").Result);
|
||||||
|
|
||||||
|
invoices = user.BitPay.GetInvoices();
|
||||||
|
var appleInvoice = invoices.SingleOrDefault(invoice => invoice.ItemCode.Equals("apple"));
|
||||||
|
Assert.NotNull(appleInvoice);
|
||||||
|
Assert.Equal("good apple", appleInvoice.ItemDesc);
|
||||||
|
|
||||||
|
|
||||||
// testing custom amount
|
// testing custom amount
|
||||||
var action = Assert.IsType<RedirectToActionResult>(publicApps.ViewPointOfSale(appId, 5, null, null, null, null, "donation").Result);
|
var action = Assert.IsType<RedirectToActionResult>(publicApps.ViewPointOfSale(appId, 5, null, null, null, null, "donation").Result);
|
||||||
Assert.Equal(nameof(InvoiceController.Checkout), action.ActionName);
|
Assert.Equal(nameof(InvoiceController.Checkout), action.ActionName);
|
||||||
|
|||||||
@@ -125,6 +125,12 @@ namespace BTCPayServer.Models
|
|||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[JsonProperty("itemCode")]
|
||||||
|
public string ItemCode
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
//"orderId":"orderId"
|
//"orderId":"orderId"
|
||||||
[JsonProperty("orderId")]
|
[JsonProperty("orderId")]
|
||||||
public string OrderId
|
public string OrderId
|
||||||
|
|||||||
Reference in New Issue
Block a user