Every order has a consistent state field. That is the only correct way to check the progress of your order. The possible order states are the following:
constWAITING_PAYMENT='waiting-payment'; // order is waiting for a payment to be detectedconstWAITING_CONFIRMATION='waiting-confirmation'; // payment is detected, waiting for confirmationsconstWAITING_PARENT='waiting-parent'; // order is waiting for the parent inscription to hit the walletconstPREP='prep'; // order files are being downloadedconstQUEUED='queued'; // order is queued for inscriptionconstERROR='error'; // order has an errorconstCANCELED='cancelled'; // order is cancelledconstWAITING_REFUND='waiting-refund'; // collection order is waiting refundconstREFUNDED='refunded'; // collection order was refundedconstEXPIRED='expired'; // open node invoice expiredconstWAITING_REVEAL='waiting-reveal'; // order is waiting to broadcast the inscription revealconstWAITING_RUNE_BALANCE='waiting-rune-balance'; // order is waiting for the rune balance to confirmconstCOMPLETED='completed'; // order is complted, files are inscribed