A method and a server for processing data are provided. A recharging request containing an account number for recharging is received. An interface of a recharging server is called to perform a first recharging process to the account number for recharging. It is then determined whether the first recharging process is completed within a pre-determined duration. When the first recharging process is not completed within the pre-determined duration, a second recharging process is performed to a compensating account corresponding to the account number for recharging. The server includes a recharging request module, a recharging interface calling module, a determining module, and a recharging module.