Update InvoiceController.cs
This commit is contained in:
parent
64f0d7a60c
commit
7f252bc030
@ -81,6 +81,9 @@ public class InvoiceController : Controller {
|
||||
var service = new ChargeService();
|
||||
Charge charge = service.Create(options);
|
||||
|
||||
if (charge.FailureMessage is not null && charge.FailureMessage != "")
|
||||
return Json(charge.ToJson());
|
||||
|
||||
try {
|
||||
_context.Invoices.Update(inv);
|
||||
_context.SaveChanges();
|
||||
|
Loading…
Reference in New Issue
Block a user