public class AlipaySubmit extends Object
| Constructor and Description |
|---|
AlipaySubmit() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildRequest(String sign_type,
String key,
String private_key,
Map<String,String> sParaTemp,
String strMethod,
String strButtonName)
建立请求,以表单HTML形式构造(默认)
|
static String |
buildRequest(String sign_type,
String key,
String private_key,
Map<String,String> sParaTemp,
String strMethod,
String strButtonName,
String strParaFileName)
建立请求,以表单HTML形式构造,带文件上传功能
|
static String |
buildRequestMysign(String sign_type,
String key,
String private_key,
Map<String,String> sPara)
生成签名结果
|
static String |
query_timestamp(String partner)
用于防钓鱼,调用接口query_timestamp来获取时间戳的处理函数
注意:远程解析XML出错,与服务器是否支持SSL等配置有关
|
public static final String CODING
public static String buildRequestMysign(String sign_type, String key, String private_key, Map<String,String> sPara)
sPara - 要签名的数组public static String buildRequest(String sign_type, String key, String private_key, Map<String,String> sParaTemp, String strMethod, String strButtonName)
sParaTemp - 请求参数数组strMethod - 提交方式。两个值可选:post、getstrButtonName - 确认按钮显示文字public static String buildRequest(String sign_type, String key, String private_key, Map<String,String> sParaTemp, String strMethod, String strButtonName, String strParaFileName)
sParaTemp - 请求参数数组strMethod - 提交方式。两个值可选:post、getstrButtonName - 确认按钮显示文字strParaFileName - 文件上传的参数名public static String query_timestamp(String partner) throws MalformedURLException, org.dom4j.DocumentException, IOException
IOExceptionorg.dom4j.DocumentExceptionMalformedURLExceptionCopyright © 2018. All rights reserved.