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()); } }
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); }
private void callback(String pluginid) { IPaymentEvent paymentPlugin = SpringContextHolder.getBean(pluginid); String payhtml = paymentPlugin.onCallBack(); this.showJson(payhtml); }