Refactored payment process to handle network API calls using AsyncTask