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