public void registerType(String what) {
   PaymentType type = new PaymentType(what);
   PaymentTypeRepository repo = new PaymentTypeRepository();
   repo.save(type);
 }