add status update function of paid, error and received.