WxPayConfig.java 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package com.ylx.common.config;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. /**
  6. * @author jianlong
  7. * @date 2024-04-02 18:20
  8. */
  9. @Data
  10. @Component
  11. @ConfigurationProperties(prefix = "wx")
  12. public class WxPayConfig {
  13. /**
  14. * appid.
  15. */
  16. private String appId;
  17. /**
  18. * appSecret.
  19. */
  20. private String appSecret;
  21. /**
  22. * 微信支付商户号.
  23. */
  24. private String mchId;
  25. /**
  26. * 微信支付商户密钥.
  27. */
  28. private String mchKey;
  29. /**
  30. * 异步回调地址
  31. */
  32. private String notifyUrl;
  33. /**
  34. * 退款异步回调地址
  35. */
  36. private String refundNotify;
  37. /**
  38. * 证书地址
  39. */
  40. private String certPath;
  41. /**
  42. * 证书密钥地址
  43. */
  44. private String certKeyPath;
  45. /**
  46. * 微信平台证书
  47. */
  48. private String platFormPath;
  49. private String msgDataFormat;
  50. }