The Failed status usually happens because the resident did not complete the payment within the time limit (expired). In this case the transaction is not processed any further, and the resident needs to create a new transaction to buy an electricity token again.