public class JSAPISigner
extends javax.servlet.http.HttpServlet
Sign JSAPI pay request
POST /jsapi-signer.api
Params
body :string , description of goods
total_fee :double , fee in CNY Yuan
openid :string , client's openid
Response
Content-Type: application/json
| 限定符和类型 | 字段和说明 |
|---|---|
private static java.lang.String |
BODY |
private static java.lang.String |
OPENID |
private static java.lang.String |
TOTAL_FEE |
protected WxpayFactory |
wxpayFactory |
| 构造器和说明 |
|---|
JSAPISigner() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
init() |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprivate static final java.lang.String BODY
private static final java.lang.String TOTAL_FEE
private static final java.lang.String OPENID
protected WxpayFactory wxpayFactory
public void init()
init 在类中 javax.servlet.GenericServletpublic void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
javax.servlet.ServletException
doPost 在类中 javax.servlet.http.HttpServletjava.io.IOExceptionjavax.servlet.ServletException