Capturing payments by code in Umbraco Commerce
# help-with-umbraco
s
I'm trying to autocapture the payment of an order AFTER the order has been fulfilled in a thirdparty system (ticketing). I'm basically doing like this
Copy code
await _commerceApi.Uow.ExecuteAsync(async (uow, cancellationToken) =>
{
    var paymentStatus = await _commerceApi.CaptureOrderPaymentAsync(order);
    uow.Complete();
}
The payment gets captured as expected - but when I go to the order list in the backoffice, the order still shows the payment as authorized. Once I go into the order though, the status changes to captured. Seems like there is some kind of cache. Is there anything I can do, to have the status updated immediately? I have a gif, that shows how it looks in the backoffice. https://cdn.discordapp.com/attachments/1254776954939244689/1254776955203620925/msedge_G7OIhozB5C.gif?ex=667ab99a&is=6679681a&hm=8394e5e16305e027f055b99dac8fec113552844dcc4a91d6ba190ef61a30c261&
11 Views