mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Fix tests
This commit is contained in:
parent
b19db7291d
commit
3dd562ffdc
2 changed files with 4 additions and 4 deletions
|
@ -3101,7 +3101,7 @@ namespace BTCPayServer.Tests
|
||||||
var inv = await client.CreateInvoice(acc.StoreId, new CreateInvoiceRequest() { Amount = 10m, Currency = "USD" });
|
var inv = await client.CreateInvoice(acc.StoreId, new CreateInvoiceRequest() { Amount = 10m, Currency = "USD" });
|
||||||
await acc.PayInvoice(inv.Id);
|
await acc.PayInvoice(inv.Id);
|
||||||
await client.MarkInvoiceStatus(acc.StoreId, inv.Id, new MarkInvoiceStatusRequest() { Status = InvoiceStatus.Settled });
|
await client.MarkInvoiceStatus(acc.StoreId, inv.Id, new MarkInvoiceStatusRequest() { Status = InvoiceStatus.Settled });
|
||||||
var refund = await client.RefundInvoice(acc.StoreId, inv.Id, new RefundInvoiceRequest() { RefundVariant = RefundVariant.Fiat, PaymentMethod = "BTC-CHAIN" });
|
var refund = await client.RefundInvoice(acc.StoreId, inv.Id, new RefundInvoiceRequest() { RefundVariant = RefundVariant.Fiat, PaymentMethod = "BTC" });
|
||||||
|
|
||||||
async Task AssertData(string currency, decimal awaiting, decimal limit, decimal completed, bool fullyPaid)
|
async Task AssertData(string currency, decimal awaiting, decimal limit, decimal completed, bool fullyPaid)
|
||||||
{
|
{
|
||||||
|
@ -3120,7 +3120,7 @@ namespace BTCPayServer.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
await AssertData("USD", awaiting: 0.0m, limit: 10.0m, completed: 0.0m, fullyPaid: false);
|
await AssertData("USD", awaiting: 0.0m, limit: 10.0m, completed: 0.0m, fullyPaid: false);
|
||||||
var payout = await client.CreatePayout(refund.Id, new CreatePayoutRequest() { Destination = addr.ToString(), PaymentMethod = "BTC-CHAIN" });
|
var payout = await client.CreatePayout(refund.Id, new CreatePayoutRequest() { Destination = addr.ToString(), PaymentMethod = "BTC" });
|
||||||
await AssertData("USD", awaiting: 10.0m, limit: 10.0m, completed: 0.0m, fullyPaid: false);
|
await AssertData("USD", awaiting: 10.0m, limit: 10.0m, completed: 0.0m, fullyPaid: false);
|
||||||
await client.ApprovePayout(acc.StoreId, payout.Id, new ApprovePayoutRequest());
|
await client.ApprovePayout(acc.StoreId, payout.Id, new ApprovePayoutRequest());
|
||||||
await AssertData("USD", awaiting: 10.0m, limit: 10.0m, completed: 0.0m, fullyPaid: false);
|
await AssertData("USD", awaiting: 10.0m, limit: 10.0m, completed: 0.0m, fullyPaid: false);
|
||||||
|
|
|
@ -205,7 +205,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="CustomLogo" class="form-label"></label>
|
<label asp-for="CustomLogo" class="form-label"></label>
|
||||||
<a href="https://docs.btcpayserver.org/Development/Theme/#checkout-page-themes" target="_blank" rel="noreferrer noopener">
|
<a href="https://docs.btcpayserver.org/Development/Theme/" target="_blank" rel="noreferrer noopener">
|
||||||
<vc:icon symbol="info" />
|
<vc:icon symbol="info" />
|
||||||
</a>
|
</a>
|
||||||
<input asp-for="CustomLogo" class="form-control" />
|
<input asp-for="CustomLogo" class="form-control" />
|
||||||
|
@ -213,7 +213,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group mb-0">
|
<div class="form-group mb-0">
|
||||||
<label asp-for="CustomCSS" class="form-label"></label>
|
<label asp-for="CustomCSS" class="form-label"></label>
|
||||||
<a href="https://docs.btcpayserver.org/Development/Theme/#checkout-page-themes" target="_blank" rel="noreferrer noopener">
|
<a href="https://docs.btcpayserver.org/Development/Theme/" target="_blank" rel="noreferrer noopener">
|
||||||
<vc:icon symbol="info" />
|
<vc:icon symbol="info" />
|
||||||
</a>
|
</a>
|
||||||
<input asp-for="CustomCSS" class="form-control" />
|
<input asp-for="CustomCSS" class="form-control" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue