mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-02 14:00:51 +08:00
刷脸付对应案例
This commit is contained in:
@@ -138,6 +138,23 @@
|
||||
|
||||
/*-----------/条码付 刷卡付-------------------*/
|
||||
|
||||
```
|
||||
#### 刷脸付
|
||||
|
||||
```java
|
||||
|
||||
/*-----------刷脸付-------------------*/
|
||||
//获取对应的支付账户操作工具(可根据账户id)
|
||||
PayOrder order = new PayOrder("egan order", "egan order", null == price ? new BigDecimal(0.01) : price, UUID.randomUUID().toString().replace("-", ""), WxTransactionType.FACEPAY);
|
||||
//设置人脸凭证
|
||||
order.setAuthCode(authCode);
|
||||
// 用户在商户 appid下的唯一标识
|
||||
order.setOpenid(openid);
|
||||
//支付结果
|
||||
Map<String, Object> params = service.microPay(order);
|
||||
|
||||
/*-----------/刷脸付-------------------*/
|
||||
|
||||
```
|
||||
|
||||
#### 回调处理
|
||||
|
||||
Reference in New Issue
Block a user