Add checkTransactionStatus function