Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

付款码,支付字段receipt 不是必传,传类com.github.binarywang.wxpay.bean.request.WxPayMicropayRequest中字段上加了 @Required #1445

Closed
ln0491 opened this issue Mar 17, 2020 · 2 comments

Comments

@ln0491
Copy link

ln0491 commented Mar 17, 2020

电子发票入口开放标识 | receipt | 否 | String(8) | Y | Y,传入Y时,支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能,传此字段才可生效

com.github.binarywang.wxpay.bean.request.WxPayMicropayRequest

/**

  • 字段名:电子发票入口开放标识 .
  • 变量名:receipt
  • 是否必填:否
  • 类型:String(8)
  • 示例值:Y
  • 描述:Y,传入Y时,支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能,传此字段才可生效

**/
@required
@XStreamAlias("receipt")
private String receipt;
如果不传支付时会报
com.github.binarywang.wxpay.exception.WxPayException: 必填字段 [receipt] 必须提供值

将注解@required去掉就OK,要么默认设置 为"N"

@binarywang
Copy link
Member

稍后进行修复

@binarywang
Copy link
Member

3.7.3.B 版本已修复,欢迎使用新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants