Commit 805089bc authored by cy's avatar cy

支付

parent cded8a06
...@@ -55,12 +55,14 @@ public class AliPayServiceImpl implements AliPayService { ...@@ -55,12 +55,14 @@ public class AliPayServiceImpl implements AliPayService {
"\"total_amount\":" + payPageDto.getTotal() + "," + "\"total_amount\":" + payPageDto.getTotal() + "," +
"\"subject\":\"充值\"," + "\"subject\":\"充值\"," +
"\"body\":\"充值\"," + "\"body\":\"充值\"," +
" }"); "\"product_code\":\"FAST_INSTANT_TRADE_PAY\"" +
"}");
String form = ""; String form = "";
//调用SDK生成表单 //调用SDK生成表单
try { try {
AlipayTradePagePayResponse response = alipayClient.pageExecute(alipayRequest); AlipayTradePagePayResponse response = alipayClient.pageExecute(alipayRequest);
form = response.getBody(); form = response.getBody();
System.out.println(form);
httpResponse.setContentType("text/html;charset=UTF-8"); httpResponse.setContentType("text/html;charset=UTF-8");
//直接将完整的表单html输出到页面 //直接将完整的表单html输出到页面
httpResponse.getWriter().write(form); httpResponse.getWriter().write(form);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment