NewebPayConfig.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.ruoyi.app.utils.newebpay;
  2. import lombok.Data;
  3. /**
  4. * 蓝新金流(NewebPay) 商店配置(运行时传入,支持多门店)。
  5. *
  6. * <p>每个门店在蓝新平台申请商店后会拿到一组专属金钥,由业务层从 pos_store_newebpay 读取后构造本对象。
  7. * 申请入口:测试环境 https://ccore.newebpay.com/ | 正式环境 https://core.newebpay.com/
  8. *
  9. * <p>HashKey 固定 32 字节(→ AES-256),HashIV 固定 16 字节。
  10. *
  11. * @author ruoyi
  12. * @date 2026-06-22
  13. */
  14. @Data
  15. public class NewebPayConfig {
  16. /** 商店代号(对应 MPG 请求 MerchantID / 查询请求 MerchantID)。 */
  17. private String merchantId;
  18. /** 商店 HashKey(固定 32 字节)。 */
  19. private String hashKey;
  20. /** 商店 HashIV(固定 16 字节)。 */
  21. private String hashIv;
  22. public NewebPayConfig() {
  23. }
  24. public NewebPayConfig(String merchantId, String hashKey, String hashIv) {
  25. this.merchantId = merchantId;
  26. this.hashKey = hashKey;
  27. this.hashIv = hashIv;
  28. }
  29. }