Checkout v2: Payment processing state (#4778)

This commit is contained in:
d11n
2023-03-27 12:12:11 +02:00
committed by GitHub
parent de9ac9fd43
commit 45141d1391
9 changed files with 187 additions and 72 deletions

View File

@@ -80,15 +80,13 @@ namespace BTCPayServer.Controllers
}
return UnprocessableEntity(new
{
ErrorMessage = response.ErrorDetail,
AmountRemaining = invoice.Price
ErrorMessage = response.ErrorDetail
});
default:
return UnprocessableEntity(new
{
ErrorMessage = $"Payment method {paymentMethodId} is not supported",
AmountRemaining = invoice.Price
ErrorMessage = $"Payment method {paymentMethodId} is not supported"
});
}
@@ -97,8 +95,7 @@ namespace BTCPayServer.Controllers
{
return BadRequest(new
{
ErrorMessage = e.Message,
AmountRemaining = invoice.Price
ErrorMessage = e.Message
});
}
}