This is pretty standard for things like this, as the terminal on the plane isn’t connected to a network so it reconnects when the plane lands and normally depending on how you’ve paid e.g. ApplePay which uses a special token security this token will have expired for that transaction which is why you’ll see denied attempts. (I have been experiencing this since Jan with EasyJet)
I would recommend to call the airline you flew with and perhaps they might be able to take payment over the phone for said transaction.