Fixes an issue where an expired payment can change the status of a paid order to failed