新增刷脸支付

This commit is contained in:
egzosn
2019-04-15 20:25:38 +08:00
parent 14b8c5185f
commit 100b9aecb7
3 changed files with 15 additions and 2 deletions

View File

@@ -211,7 +211,9 @@ public class WxPayService extends BasePayService<WxPayConfigStorage> {
setSign(parameters);
String requestXML = XML.getMap2Xml(parameters);
LOG.debug("requestXML" + requestXML);
if (LOG.isDebugEnabled()){
LOG.debug("requestXML" + requestXML);
}
//调起支付的参数列表
JSONObject result = requestTemplate.postForObject(getUrl(order.getTransactionType()), requestXML, JSONObject.class);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original huodull or egan.
* Copyright 2002-2017 the original egan or egan.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -47,6 +47,17 @@ public enum WxTransactionType implements TransactionType {
* 移动支付
*/
APP("pay/unifiedorder"),
/**
* 刷
脸支付
*/
FACEPAY("pay/facepay"){
@Override
public void setAttribute(Map<String, Object> parameters, PayOrder order) {
parameters.put("openid", order.getOpenid());
parameters.put("face_code", order.getAuthCode());
}
},
/**
* H5支付
*/