当前位置: 首页>>代码示例>>Java>>正文


Java AlipayTradeWapPayRequest.setReturnUrl方法代码示例

本文整理汇总了Java中com.alipay.api.request.AlipayTradeWapPayRequest.setReturnUrl方法的典型用法代码示例。如果您正苦于以下问题:Java AlipayTradeWapPayRequest.setReturnUrl方法的具体用法?Java AlipayTradeWapPayRequest.setReturnUrl怎么用?Java AlipayTradeWapPayRequest.setReturnUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.alipay.api.request.AlipayTradeWapPayRequest的用法示例。


在下文中一共展示了AlipayTradeWapPayRequest.setReturnUrl方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAlipayWapPayInfo

import com.alipay.api.request.AlipayTradeWapPayRequest; //导入方法依赖的package包/类
private AlipayPrepayInfo getAlipayWapPayInfo(String tradeNo, String amount, String timeout, String productName, String productDesc, PaymentAccountInfoInterface accountInfo)
        throws Exception {
    AlipayTradeWapPayRequest alipayRequest = new AlipayTradeWapPayRequest();
    alipayRequest.setReturnUrl(accountInfo.getAliReturnUrl());
    alipayRequest.setNotifyUrl(accountInfo.getAliNotifyUrl());
    alipayRequest.setBizContent("{" +
            "\"out_trade_no\":\"" + tradeNo + "\"," +
            "\"total_amount\":" + amount + "," +
            "\"seller_id\":\"" + accountInfo.getAliPartnerId() + "\"," +
            "\"subject\":\"" + productName + "\"," +
            "\"body\":\"" + productDesc + "\"," +
            "\"timeout_express\":\"" + timeout + "\"," +
            "\"product_code\":\"QUICK_WAP_PAY\"" +
            "}");

    String form = getAlipayClient(accountInfo).pageExecute(alipayRequest).getBody();
    return new AlipayPrepayInfo(form, null);
}
 
开发者ID:superkoh,项目名称:k-framework,代码行数:19,代码来源:AlipayServiceImpl.java

示例2: wapPayToString

import com.alipay.api.request.AlipayTradeWapPayRequest; //导入方法依赖的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

示例3: wapPayToString

import com.alipay.api.request.AlipayTradeWapPayRequest; //导入方法依赖的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

示例4: createWapOrder

import com.alipay.api.request.AlipayTradeWapPayRequest; //导入方法依赖的package包/类
public String createWapOrder(AlipayTradeOrder order){
	String result = "";
	AlipayTradeWapPayRequest alipayRequest = new AlipayTradeWapPayRequest();//创建API对应的request
    alipayRequest.setReturnUrl(config.RETURN_URL);
    alipayRequest.setNotifyUrl(config.NOTIFY_URL);
    alipayRequest.setBizContent(BeanUtil.object2json(order));//填充业务参数
    try {
        result = client.pageExecute(alipayRequest).getBody(); //调用SDK生成表单
    } catch (AlipayApiException e) {
        e.printStackTrace();
    }
	return result;
}
 
开发者ID:anylineorg,项目名称:anyline,代码行数:14,代码来源:AlipayUtil.java

示例5: wapPayStr

import com.alipay.api.request.AlipayTradeWapPayRequest; //导入方法依赖的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


注:本文中的com.alipay.api.request.AlipayTradeWapPayRequest.setReturnUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。