OmgPayConfig.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.ruoyi.app.utils.omg;
  2. import lombok.Data;
  3. /**
  4. * OMG(歐買尬/FunPoint) 商店配置(运行时传入,支持多门店)。
  5. *
  6. * <p>每个门店在 OMG 平台申请商店后会拿到一组专属金钥,由业务层从 pos_store_omg 读取后构造本对象。
  7. * 申请入口:测试环境 https://payment-stage.funpoint.com.tw/ | 正式环境 https://payment.funpoint.com.tw/
  8. *
  9. * <p>OMG 签名用 CheckMacValue(SHA256, EncryptType=1),与蓝新 NewebPay(AES+SHA256) 不同,
  10. * 故本配置与签名工具均独立于 newebpay 包。
  11. *
  12. * @author ruoyi
  13. * @date 2026-07-29
  14. */
  15. @Data
  16. public class OmgPayConfig {
  17. /** 商店代号 MerchantID(OMG 分配)。 */
  18. private String merchantId;
  19. /** 商店 HashKey(OMG 分配)。 */
  20. private String hashKey;
  21. /** 商店 HashIV(OMG 分配)。 */
  22. private String hashIv;
  23. public OmgPayConfig() {
  24. }
  25. public OmgPayConfig(String merchantId, String hashKey, String hashIv) {
  26. this.merchantId = merchantId;
  27. this.hashKey = hashKey;
  28. this.hashIv = hashIv;
  29. }
  30. }