Skip to content

Commit 0a55dc5

Browse files
committed
#457 实现扫码支付回调通知的解析
1 parent 3d07676 commit 0a55dc5

File tree

4 files changed

+173
-53
lines changed

4 files changed

+173
-53
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxScanPayNotifyResult.java

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,43 @@
66
import lombok.EqualsAndHashCode;
77
import lombok.NoArgsConstructor;
88

9-
import java.io.Serializable;
10-
9+
/**
10+
* <pre>
11+
* 扫码支付通知回调类.
12+
* 具体定义,请查看文档:https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_4
13+
* </pre>
14+
*
15+
* @author <a href="https://github.com/binarywang">Binary Wang</a>
16+
*/
1117
@Data
1218
@EqualsAndHashCode(callSuper = true)
1319
@NoArgsConstructor
14-
public class WxScanPayNotifyResult extends BaseWxPayResult implements Serializable {
20+
@XStreamAlias("xml")
21+
public class WxScanPayNotifyResult extends BaseWxPayResult {
1522
private static final long serialVersionUID = 3381324564266118986L;
1623

1724
/**
18-
* 预支付ID
25+
* 用户标识.
26+
*/
27+
@XStreamAlias("openid")
28+
private String openid;
29+
30+
/**
31+
* <pre>
32+
* 是否关注公众账号.
33+
* 仅在公众账号类型支付有效,取值范围:Y或N;Y-关注;N-未关注
34+
* </pre>
35+
*/
36+
@XStreamAlias("is_subscribe")
37+
private String isSubscribe;
38+
39+
/**
40+
* <pre>
41+
* 商品ID.
42+
* 商户定义的商品id 或者订单号
43+
* </pre>
1944
*/
20-
@XStreamAlias("prepay_id")
21-
private String prepayId;
45+
@XStreamAlias("product_id")
46+
private String productId;
2247

2348
}

0 commit comments

Comments
 (0)