Exemplo n.º 1
0
 private void payReturn(String paluginid) {
   try {
     IPaymentEvent paymentPlugin = SpringContextHolder.getBean(paluginid);
     String ordersn = paymentPlugin.onReturn();
     this.showSuccess("支付成功", "查看此订单", "orderdetail_" + ordersn + ".html");
   } catch (RuntimeException e) {
     this.logger.error("支付发生错误", e);
     this.showError("支付失败" + e.getMessage());
   }
 }
Exemplo n.º 2
0
  private void pay() {
    Integer orderId = this.getIntParam("orderid");
    Integer paymentId = this.getIntParam("paymentid");

    Order order = this.orderManager.get(orderId);
    PayCfg payCfg = this.paymentManager.get(paymentId);

    IPaymentEvent paymentPlugin = SpringContextHolder.getBean(payCfg.getType());
    String payhtml = paymentPlugin.onPay(payCfg, order);
    this.disableCustomPage();
    this.putData("payhtml", payhtml);
  }
Exemplo n.º 3
0
 private void callback(String pluginid) {
   IPaymentEvent paymentPlugin = SpringContextHolder.getBean(pluginid);
   String payhtml = paymentPlugin.onCallBack();
   this.showJson(payhtml);
 }