本文整理汇总了Java中com.alipay.api.domain.AlipayTradeWapPayModel类的典型用法代码示例。如果您正苦于以下问题:Java AlipayTradeWapPayModel类的具体用法?Java AlipayTradeWapPayModel怎么用?Java AlipayTradeWapPayModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AlipayTradeWapPayModel类属于com.alipay.api.domain包,在下文中一共展示了AlipayTradeWapPayModel类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: wapPay
import com.alipay.api.domain.AlipayTradeWapPayModel; //导入依赖的package包/类
/**
* Wap支付
* https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.dfHHR3&
* treeId=203&articleId=105285&docType=1
*
* @throws AlipayApiException
* @throws IOException
*/
public static void wapPay(HttpServletResponse response, AlipayTradeWapPayModel model, String returnUrl,
String notifyUrl) throws AlipayApiException, IOException {
String form = wapPayToString(response, model, returnUrl, notifyUrl);
HttpServletResponse httpResponse = response;
httpResponse.setContentType("text/html;charset=" + AliPayConfig.build().getCharset());
httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
httpResponse.getWriter().flush();
}
开发者ID:youngMen1,项目名称:JAVA-,代码行数:17,代码来源:AliPay.java
示例2: wapPay
import com.alipay.api.domain.AlipayTradeWapPayModel; //导入依赖的package包/类
/**
* Wap支付
* @throws AlipayApiException
* @throws IOException
*/
public static void wapPay(HttpServletResponse response, AlipayTradeWapPayModel model, String returnUrl,
String notifyUrl) throws AlipayApiException, IOException {
String form = wapPayToString(response, model, returnUrl, notifyUrl);
HttpServletResponse httpResponse = response;
httpResponse.setContentType("text/html;charset=" + AliPayConfig.build().getCharset());
httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
httpResponse.getWriter().flush();
}
开发者ID:iBase4J,项目名称:iBase4J-Common,代码行数:14,代码来源:AliPay.java
示例3: wapPayToString
import com.alipay.api.domain.AlipayTradeWapPayModel; //导入依赖的package包/类
public static String wapPayToString(HttpServletResponse response, AlipayTradeWapPayModel model, String returnUrl,
String notifyUrl) throws AlipayApiException, IOException {
AlipayTradeWapPayRequest alipayRequest = new AlipayTradeWapPayRequest();// 创建API对应的request
alipayRequest.setReturnUrl(returnUrl);
alipayRequest.setNotifyUrl(notifyUrl);// 在公共参数中设置回跳和通知地址
alipayRequest.setBizModel(model);// 填充业务参数
return AliPayConfig.build().getAlipayClient().pageExecute(alipayRequest).getBody(); // 调用SDK生成表单
}
开发者ID:iBase4J,项目名称:iBase4J-Common,代码行数:9,代码来源:AliPay.java
示例4: wapPayToString
import com.alipay.api.domain.AlipayTradeWapPayModel; //导入依赖的package包/类
public static String wapPayToString(HttpServletResponse response, AlipayTradeWapPayModel model, String returnUrl,
String notifyUrl) throws AlipayApiException, IOException {
AlipayTradeWapPayRequest alipayRequest = new AlipayTradeWapPayRequest();// 创建API对应的request
alipayRequest.setReturnUrl(returnUrl);
alipayRequest.setNotifyUrl(notifyUrl);// 在公共参数中设置回跳和通知地址
alipayRequest.setBizModel(model);// 填充业务参数
return AliPayConfig.build().getAlipayClient().pageExecute(alipayRequest).getBody(); // 调用SDK生成表单
}
开发者ID:guokezheng,项目名称:automat,代码行数:9,代码来源:AliPay.java
示例5: wapPay
import com.alipay.api.domain.AlipayTradeWapPayModel; //导入依赖的package包/类
/**
* WAP支付
* https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.dfHHR3&treeId=203&articleId=105285&docType=1
* @param response
* @param model
* @param returnUrl
* @param notifyUrl
* @throws {AlipayApiException}
* @throws IOException
*/
public static void wapPay(HttpServletResponse response,AlipayTradeWapPayModel model,String returnUrl,String notifyUrl) throws AlipayApiException, IOException {
String form = wapPayStr(response, model, returnUrl, notifyUrl);
HttpServletResponse httpResponse = response;
httpResponse.setContentType("text/html;charset=" + AliPayApiConfigKit.getAliPayApiConfig().getCharset());
httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
httpResponse.getWriter().flush();
}
开发者ID:Javen205,项目名称:IJPay,代码行数:18,代码来源:AliPayApi.java
示例6: wapPayStr
import com.alipay.api.domain.AlipayTradeWapPayModel; //导入依赖的package包/类
/**
* WAP支付
* @param response
* @param model
* @param returnUrl
* @param notifyUrl
* @return {String}
* @throws {AlipayApiException}
* @throws IOException
*/
public static String wapPayStr(HttpServletResponse response,AlipayTradeWapPayModel model,String returnUrl,String notifyUrl) throws AlipayApiException, IOException {
AlipayTradeWapPayRequest alipayRequest = new AlipayTradeWapPayRequest();// 创建API对应的request
alipayRequest.setReturnUrl(returnUrl);
alipayRequest.setNotifyUrl(notifyUrl);// 在公共参数中设置回跳和通知地址
alipayRequest.setBizModel(model);// 填充业务参数
return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().pageExecute(alipayRequest).getBody(); // 调用SDK生成表单
}
开发者ID:Javen205,项目名称:IJPay,代码行数:18,代码来源:AliPayApi.java
示例7: wapPayToString
import com.alipay.api.domain.AlipayTradeWapPayModel; //导入依赖的package包/类
/**
* WAP支付
* @param response
* @param model
* @param returnUrl
* @param notifyUrl
* @return {String}
* @throws {AlipayApiException}
* @throws IOException
*/
@Deprecated
public static String wapPayToString(HttpServletResponse response,AlipayTradeWapPayModel model,String returnUrl,String notifyUrl) throws AlipayApiException, IOException {
return wapPayStr(response, model, returnUrl, notifyUrl);
}
开发者ID:Javen205,项目名称:IJPay,代码行数:15,代码来源:AliPayApi.java
注:本文中的com.alipay.api.domain.AlipayTradeWapPayModel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论