一、支付
当前台点击支付按钮,开始调用支付接口
public void CreatPayOrderForH5(HttpSession session, HttpServletRequest request, HttpServletResponse response)
{
AlipayClient alipayClient = new DefaultAlipayClient(AliPayConfig.URL, AliPayConfig.APPID, AliPayConfig.RSA_PRIVATE_KEY, AliPayConfig.FORMAT, AliPayConfig.input_charset, AliPayConfig.ALIPAY_PUBLIC_KEY, AliPayConfig.sign_type); //获得初始化的AlipayClient
AlipayTradeWapPayRequest alipayRequest = new AlipayTradeWapPayRequest();
//发起支付宝支付
//设置支付完成后的返回地址
alipayRequest.setReturnUrl("www.baidu.com");
//设置回跳和通知地址
alipayRequest.setNotifyUrl("www.google.com");
alipayRequest.setBizConten