漏了productId
This commit is contained in:
parent
f56f0b1848
commit
7fe0b7b055
@ -220,6 +220,8 @@ public class PayUtil {
|
|||||||
*
|
*
|
||||||
* @param weixinAccount
|
* @param weixinAccount
|
||||||
* 支付配置信息
|
* 支付配置信息
|
||||||
|
* @param productId
|
||||||
|
* 商品ID
|
||||||
* @param body
|
* @param body
|
||||||
* 商品描述
|
* 商品描述
|
||||||
* @param outTradeNo
|
* @param outTradeNo
|
||||||
@ -235,10 +237,12 @@ public class PayUtil {
|
|||||||
* @throws PayException
|
* @throws PayException
|
||||||
*/
|
*/
|
||||||
public static String createNativePayRequestURL(
|
public static String createNativePayRequestURL(
|
||||||
WeixinPayAccount weixinAccount, String body, String outTradeNo,
|
WeixinPayAccount weixinAccount, String productId, String body,
|
||||||
double totalFee, String createIp) throws PayException {
|
String outTradeNo, double totalFee, String createIp)
|
||||||
|
throws PayException {
|
||||||
MchPayPackage payPackage = new MchPayPackage(weixinAccount, null, body,
|
MchPayPackage payPackage = new MchPayPackage(weixinAccount, null, body,
|
||||||
outTradeNo, totalFee, createIp, TradeType.NATIVE);
|
outTradeNo, totalFee, createIp, TradeType.NATIVE);
|
||||||
|
payPackage.setProductId(productId);
|
||||||
String paySignKey = weixinAccount.getPaySignKey();
|
String paySignKey = weixinAccount.getPaySignKey();
|
||||||
payPackage.setSign(paysignMd5(payPackage, paySignKey));
|
payPackage.setSign(paysignMd5(payPackage, paySignKey));
|
||||||
PrePay prePay = createPrePay(payPackage, paySignKey);
|
PrePay prePay = createPrePay(payPackage, paySignKey);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user