close payment UI when finish a transaction