WxPayProperties.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.izouma.nineth.config;
  2. import lombok.Data;
  3. import org.apache.commons.lang3.builder.ToStringBuilder;
  4. import org.apache.commons.lang3.builder.ToStringStyle;
  5. import org.springframework.boot.context.properties.ConfigurationProperties;
  6. /**
  7. * wxpay pay properties
  8. *
  9. * @author Binary Wang
  10. */
  11. @ConfigurationProperties(prefix = "wx.pay")
  12. @Data
  13. public class WxPayProperties {
  14. /**
  15. * 设置微信公众号或者小程序等的appid
  16. */
  17. private String appId;
  18. /**
  19. * 微信支付商户号
  20. */
  21. private String mchId;
  22. /**
  23. * 微信支付商户密钥
  24. */
  25. private String mchKey;
  26. /**
  27. * 服务商模式下的子商户公众账号ID,普通模式请不要配置,请在配置文件中将对应项删除
  28. */
  29. private String subAppId;
  30. /**
  31. * 服务商模式下的子商户号,普通模式请不要配置,最好是请在配置文件中将对应项删除
  32. */
  33. private String subMchId;
  34. /**
  35. * apiclient_cert.p12文件的绝对路径,或者如果放在项目中,请以classpath:开头指定
  36. */
  37. private String keyPath;
  38. private String notifyUrl;
  39. private String refundNotifyUrl;
  40. private String returnUrl;
  41. }