com.lorne.weixin.pay.api.CreditCardPay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin-api Show documentation
Show all versions of weixin-api Show documentation
weixin-api project for Spring Project
package com.lorne.weixin.pay.api;
import com.lorne.weixin.pay.model.WxConfig;
import com.lorne.weixin.pay.util.WeixinApiUtils;
import com.lorne.weixin.pay.util.WeixinUtils;
import java.util.Map;
/**
* Created by houcunlu on 2017/10/19.
*
*/
public class CreditCardPay {
/**
* 提交刷卡支付
* @param config 支付配置文件
* @param authCode 支付码
* @param deviceInfo 终端设备号(商户自定义,如门店编号)
* @param body 商品描述
* @param outTradeNo 商户订单号
* @param totalFee 订单金额
* @return 支付请求结果
*/
public static Map payMicropay (WxConfig config ,String authCode ,String deviceInfo , String body , String outTradeNo , int totalFee ){
// 调用微信支付API的机器IP
String ip = "127.0.0.1";
/**
* 提交刷卡支付
*/
Map map = WeixinUtils.payMicropay(config , authCode , deviceInfo , body, outTradeNo ,ip , totalFee );
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy