react-version #1
@ -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