Added duplicate paid/confirmed/complete checks

Also added extra error handling