示例#1
0
 @RequestMapping(value = "/forgetform", method = RequestMethod.POST)
 public ModelAndView forgetForm(
     HttpServletRequest request, @RequestParam("id") String hdnmerchantId) {
   System.out.println("In auth forgetForm method");
   String mailid = request.getParameter("email");
   System.out.println("mailid" + mailid);
   ModelAndView model = new ModelAndView();
   Merchant merchant = new Merchant();
   String randomPwd = generateRandomString();
   String encryptedPwd = encrypt(randomPwd);
   System.out.println("merchantId==>" + encryptedPwd);
   if (encryptedPwd != null) {
     merchant.setAutogeneratedPassword(encryptedPwd);
   } else {
     merchant.setAutogeneratedPassword("");
   }
   String password = merchant.getAutogeneratedPassword();
   System.out.println("password==>" + password);
   String decryptedPwd = decrypt(password);
   merchantService.updateautopassword(hdnmerchantId, decryptedPwd);
   List<Merchant> merchantList = merchantService.getMerchantdetails(hdnmerchantId);
   System.out.println("Modifylist" + merchantList);
   String mername = merchantList.get(0).getMerchantName();
   System.out.println("mername" + mername);
   sendEmailPassword(mailid, request, password, mername);
   String merchantId = merchantList.get(0).getMerchantId();
   System.out.println("mername" + mername);
   model.addObject("mername", mername);
   model.addObject("merchantId", hdnmerchantId);
   model.setViewName("acquirer/mailforget");
   return model;
 }
示例#2
0
  @RequestMapping(value = "/refundpopup", method = RequestMethod.GET)
  public @ResponseBody ModelAndView refundPopup(HttpServletRequest request, ModelMap modelmap) {

    ModelAndView model = null;
    try {
      String tmid = request.getParameter("tid");
      System.out.println("tmid==>" + tmid);
      List<TransationMonitoring> tmlist = paymentService.getTransationMonitoringValue(tmid);

      if (tmlist != null) {
        TransationMonitoring tm = tmlist.get(0);

        System.out.println(tm.getChargebackauthorizestatus());

        String merid = tm.getMerchantid();
        String txncurr = tm.getTxncurrency();
        String setcurr = tm.getSettlecurrency();
        List<Merchant> merlist = merchantService.getMerchantdetails(merid);
        List<CurrencyCode> txnlist = paymentService.getCurrencyName(txncurr);
        List<CurrencyCode> setlist = paymentService.getCurrencyName(setcurr);

        modelmap.addAttribute("merlist", merlist);
        modelmap.addAttribute("txnlist", txnlist);
        modelmap.addAttribute("setlist", setlist);
      }

      modelmap.addAttribute("tmlist", tmlist);
      model = new ModelAndView("uam/refundpopup");
    } catch (Exception e) {
      e.printStackTrace();
    }

    return model;
  }
示例#3
0
  @RequestMapping(value = "/acctadjust", method = RequestMethod.GET)
  public ModelAndView acctAdjust(HttpServletRequest request, ModelMap modelmap) {

    ModelAndView model = new ModelAndView();
    try {
      List<CurrencyCode> cclist = paymentService.getCurrencyCode();
      List<Merchant> merlist = merchantService.getMerchantdetails();

      modelmap.addAttribute("cclist", cclist);
      modelmap.addAttribute("merlist", merlist);
    } catch (Exception e) {
      e.printStackTrace();
    }
    model.setViewName("uam/acctadjust");
    return model;
  }
示例#4
0
  @RequestMapping(value = "/modifymerchant", method = RequestMethod.GET)
  public @ResponseBody ModelAndView modifyMerchant(
      HttpServletRequest request, @RequestParam("id") String merchantid) {
    System.out.println("In auth modifyMerchant method");
    System.out.println("id==>" + merchantid);

    ModelAndView model = new ModelAndView();
    model = new ModelAndView("acquirer/Modifymerchant");
    /*String id = (String) request.getAttribute("value");
    System.out.println("id==>"+id);*/
    List<Merchant> merchantList = merchantService.getMerchantdetails(merchantid);
    System.out.println("Modifylist=>" + merchantList);
    if (merchantList != null) {
      String mailid = merchantList.get(0).getEmailId();
      String mername = merchantList.get(0).getMerchantName();
      long mobile = merchantList.get(0).getMobile();
      long tel = merchantList.get(0).getTelephone();
      String country = merchantList.get(0).getCountry();
      String region = merchantList.get(0).getRegion();
      String business = merchantList.get(0).getBusiness();
      Date DOB = merchantList.get(0).getDOB();
      String address = merchantList.get(0).getAddress();
      String member = merchantList.get(0).getMembershiptype();
      long txnfee = merchantList.get(0).getTransactionfee();
      long id = merchantList.get(0).getId();

      model.addObject("merchantList", merchantList);
      model.addObject("merchantId", merchantid);
      model.addObject("mername", mername);
      model.addObject("DOB", DOB);
      model.addObject("mailid", mailid);
      model.addObject("mobile", mobile);
      model.addObject("tel", tel);
      model.addObject("business", business);
      model.addObject("region", region);
      model.addObject("address", address);
      model.addObject("country", country);
      model.addObject("member", member);
      model.addObject("txnfee", txnfee);
      model.addObject("id", id);
    }

    return model;
  }