wxpay-nodejs-sdk 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -59,6 +59,8 @@ interface WxPayOptions {
59
59
  wxpayPublicKey?: string | Buffer;
60
60
  /** 是否开启应答验签,默认 true */
61
61
  enableResponseVerification?: boolean;
62
+ /** 是否启用跨城容灾(主备域名自动切换),默认 true */
63
+ enableFailover?: boolean;
62
64
  }
63
65
  /** 请求参数基础类型 */
64
66
  type RequestParams = Record<string, string | number | boolean | undefined>;
@@ -4575,6 +4577,17 @@ interface MedInsJsapiBridgeConfig {
4575
4577
  sign: string;
4576
4578
  }
4577
4579
 
4580
+ /**
4581
+ * 自动更新配置选项
4582
+ */
4583
+ interface AutoUpdateOptions {
4584
+ /** 更新间隔(毫秒),默认 60 分钟 */
4585
+ intervalMs?: number;
4586
+ /** 更新失败时的回调 */
4587
+ onError?: (error: Error) => void;
4588
+ /** 更新成功时的回调 */
4589
+ onSuccess?: (serialNos: string[]) => void;
4590
+ }
4578
4591
  /**
4579
4592
  * 微信支付平台证书管理器
4580
4593
  *
@@ -4593,11 +4606,22 @@ declare class CertificateManager {
4593
4606
  private wxpayPublicKeyId;
4594
4607
  /** API V3 密钥 */
4595
4608
  private readonly apiV3Key;
4609
+ /** 自动更新定时器 */
4610
+ private autoUpdateTimer;
4596
4611
  constructor(apiV3Key: string, certificates?: PlatformCertificate[]);
4597
4612
  /**
4598
4613
  * 获取证书序列号列表
4599
4614
  */
4600
4615
  get serialNos(): string[];
4616
+ /**
4617
+ * 获取最新的证书序列号或公钥ID
4618
+ *
4619
+ * 优先返回微信支付公钥ID(公钥模式),否则返回第一个平台证书序列号。
4620
+ * 用于设置请求头 Wechatpay-Serial,告知微信支付客户端支持验签的证书。
4621
+ *
4622
+ * @returns 序列号字符串,无配置时返回 undefined
4623
+ */
4624
+ getNewestSerial(): string | undefined;
4601
4625
  /**
4602
4626
  * 设置微信支付公钥(公钥模式)
4603
4627
  *
@@ -4629,6 +4653,34 @@ declare class CertificateManager {
4629
4653
  * 清空证书缓存
4630
4654
  */
4631
4655
  clear(): void;
4656
+ /**
4657
+ * 启动自动更新
4658
+ *
4659
+ * 定期调用更新函数刷新平台证书。适用于生产环境的证书自动维护。
4660
+ *
4661
+ * @param updateFn - 证书更新函数,返回最新的证书 Map
4662
+ * @param options - 自动更新配置选项
4663
+ * @returns 停止更新的函数
4664
+ *
4665
+ * @example
4666
+ * ```ts
4667
+ * const manager = new CertificateManager(apiV3Key);
4668
+ * const stop = manager.startAutoUpdate(
4669
+ * async () => {
4670
+ * const certs = await downloadCertificates();
4671
+ * return certs;
4672
+ * },
4673
+ * { intervalMs: 60 * 60 * 1000 }
4674
+ * );
4675
+ * // 稍后停止
4676
+ * stop();
4677
+ * ```
4678
+ */
4679
+ startAutoUpdate(updateFn: () => Promise<Map<string, string>>, options?: AutoUpdateOptions): () => void;
4680
+ /**
4681
+ * 停止自动更新
4682
+ */
4683
+ stopAutoUpdate(): void;
4632
4684
  }
4633
4685
 
4634
4686
  /**
@@ -4645,10 +4697,16 @@ declare class CertificateManager {
4645
4697
  * ```
4646
4698
  */
4647
4699
  declare class WxPayClient {
4648
- /** 生产环境 API 地址 */
4700
+ /** 生产环境 API 主域名 */
4649
4701
  private static readonly PRODUCTION_BASE;
4702
+ /** 生产环境 API 备用域名(跨城容灾) */
4703
+ private static readonly PRODUCTION_BACKUP;
4650
4704
  /** 沙箱环境 API 地址 */
4651
4705
  private static readonly SANDBOX_BASE;
4706
+ /** SDK 版本号 */
4707
+ private static readonly SDK_VERSION;
4708
+ /** 动态 User-Agent 字符串 */
4709
+ private static readonly USER_AGENT;
4652
4710
  /** 商户号 */
4653
4711
  readonly mchid: string;
4654
4712
  private readonly apiV3Key;
@@ -4656,6 +4714,7 @@ declare class WxPayClient {
4656
4714
  private readonly privateKey;
4657
4715
  private readonly timeout;
4658
4716
  private readonly baseUrl;
4717
+ private readonly backupUrl;
4659
4718
  private readonly enableResponseVerification;
4660
4719
  /** 平台证书管理器 */
4661
4720
  readonly certificates: CertificateManager;
@@ -4705,6 +4764,8 @@ declare class WxPayClient {
4705
4764
  upload<T = unknown>(path: string, file: Buffer, filename: string, meta?: Record<string, unknown>): Promise<WxPayResponse<T>>;
4706
4765
  /**
4707
4766
  * 通用 HTTP 请求方法
4767
+ *
4768
+ * 支持跨城容灾:当主域名请求失败(网络错误、超时)时,自动切换到备用域名重试。
4708
4769
  */
4709
4770
  private request;
4710
4771
  /**
@@ -4738,6 +4799,61 @@ declare class WxPayError extends Error {
4738
4799
  get isServerError(): boolean;
4739
4800
  }
4740
4801
 
4802
+ /**
4803
+ * 解密后的平台证书信息
4804
+ */
4805
+ interface DecryptedCertificate {
4806
+ /** 证书序列号 */
4807
+ serialNo: string;
4808
+ /** 证书生效时间 */
4809
+ effectiveTime: string;
4810
+ /** 证书过期时间 */
4811
+ expireTime: string;
4812
+ /** PEM 格式的证书内容 */
4813
+ certificatePem: string;
4814
+ }
4815
+ /**
4816
+ * 微信支付平台证书服务
4817
+ *
4818
+ * 提供平台证书的下载和管理功能,支持:
4819
+ * - 调用 /v3/certificates 接口下载平台证书列表
4820
+ * - 使用 APIv3 密钥解密证书内容
4821
+ * - 与 CertificateManager 集成更新本地证书缓存
4822
+ *
4823
+ * @see https://pay.weixin.qq.com/doc/v3/merchant/4012551764
4824
+ */
4825
+ declare class CertificateService {
4826
+ private readonly client;
4827
+ private readonly apiV3Key;
4828
+ private readonly certificateManager;
4829
+ constructor(client: WxPayClient, apiV3Key: string, certificateManager: CertificateManager);
4830
+ /**
4831
+ * 下载平台证书列表
4832
+ *
4833
+ * 调用微信支付 /v3/certificates 接口获取当前可用的平台证书。
4834
+ * 返回的证书内容已解密为 PEM 格式。
4835
+ *
4836
+ * @returns 解密后的平台证书列表
4837
+ */
4838
+ downloadCertificates(): Promise<WxPayResponse<DecryptedCertificate[]>>;
4839
+ /**
4840
+ * 下载并更新本地平台证书缓存
4841
+ *
4842
+ * 下载最新的平台证书列表,解密后自动更新 CertificateManager 中的缓存。
4843
+ * 适用于定时更新证书的场景。
4844
+ *
4845
+ * @returns 更新后的证书列表
4846
+ */
4847
+ downloadAndUpdate(): Promise<DecryptedCertificate[]>;
4848
+ /**
4849
+ * 使用 AES-256-GCM 解密证书内容
4850
+ *
4851
+ * @param encrypted - 加密的证书信息
4852
+ * @returns PEM 格式的证书内容
4853
+ */
4854
+ private decryptCertificate;
4855
+ }
4856
+
4741
4857
  /**
4742
4858
  * JSAPI 支付 / 小程序支付 服务
4743
4859
  *
@@ -6364,10 +6480,18 @@ interface DecryptedCallback<T = unknown> {
6364
6480
  /** 解密后的业务数据 */
6365
6481
  data: T;
6366
6482
  }
6483
+ /**
6484
+ * 支持的签名类型
6485
+ *
6486
+ * 目前微信支付仅支持 WECHATPAY2-SHA256-RSA2048 签名类型,
6487
+ * 保留此类型以便未来扩展其他签名算法。
6488
+ */
6489
+ type SignatureType = string;
6367
6490
  /**
6368
6491
  * 微信支付回调通知处理器
6369
6492
  *
6370
6493
  * 负责验证回调签名并解密回调通知中的业务数据。
6494
+ * 支持通过 Wechatpay-Signature-Type 头识别签名类型。
6371
6495
  *
6372
6496
  * @see https://pay.weixin.qq.com/doc/v3/merchant/4012791861
6373
6497
  * @see https://pay.weixin.qq.com/doc/v3/merchant/4012075249
@@ -6380,10 +6504,12 @@ declare class CallbackHandler {
6380
6504
  * 验证回调通知签名
6381
6505
  *
6382
6506
  * 使用微信支付平台公钥验证回调通知的签名。
6507
+ * 支持读取 Wechatpay-Signature-Type 头识别签名类型。
6383
6508
  *
6384
6509
  * @param headers - 回调请求头
6385
6510
  * @param body - 回调请求体(原始 JSON 字符串)
6386
6511
  * @returns 签名验证是否通过
6512
+ * @throws 如果签名类型不支持或找不到对应的证书
6387
6513
  */
6388
6514
  verifySignature(headers: CallbackHeaders, body: string): boolean;
6389
6515
  /**
@@ -7450,6 +7576,366 @@ declare class SecurityService {
7450
7576
  echoTest(request: EchoTestRequest): Promise<WxPayResponse<EchoTestResponse>>;
7451
7577
  }
7452
7578
 
7579
+ /**
7580
+ * 微工卡服务
7581
+ *
7582
+ * 提供微工卡(工资卡)相关 API 封装,包括:
7583
+ * - 查询授权关系
7584
+ * - 生成预授权 token
7585
+ * - 核身预下单
7586
+ * - 查询核身结果
7587
+ * - 发起批量转账
7588
+ *
7589
+ * @see https://pay.weixin.qq.com/doc/v3/merchant/4012711988
7590
+ */
7591
+ declare class PayrollCardService {
7592
+ private readonly client;
7593
+ constructor(client: WxPayClient);
7594
+ /**
7595
+ * 查询授权关系
7596
+ *
7597
+ * 查询商户与用户之间的微工卡授权关系。
7598
+ *
7599
+ * @param params - 查询参数
7600
+ * @returns 授权关系信息
7601
+ */
7602
+ queryAuthorization(params: {
7603
+ sub_mchid: string;
7604
+ appid: string;
7605
+ openid: string;
7606
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7607
+ /**
7608
+ * 生成预授权 token
7609
+ *
7610
+ * 生成微工卡预授权 token,用于后续核身操作。
7611
+ *
7612
+ * @param request - 预授权请求参数
7613
+ * @returns 预授权 token 信息
7614
+ */
7615
+ createToken(request: {
7616
+ sub_mchid: string;
7617
+ appid: string;
7618
+ openid: string;
7619
+ out_request_no: string;
7620
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7621
+ /**
7622
+ * 核身预下单
7623
+ *
7624
+ * 创建核身预下单,获取核身参数。
7625
+ *
7626
+ * @param request - 核身预下单请求参数
7627
+ * @returns 核身参数信息
7628
+ */
7629
+ createAuthentication(request: {
7630
+ sub_mchid: string;
7631
+ appid: string;
7632
+ openid: string;
7633
+ out_request_no: string;
7634
+ token: string;
7635
+ scene: string;
7636
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7637
+ /**
7638
+ * 查询核身结果
7639
+ *
7640
+ * 根据商户请求号查询核身结果。
7641
+ *
7642
+ * @param outRequestNo - 商户请求号
7643
+ * @param params - 查询参数
7644
+ * @returns 核身结果信息
7645
+ */
7646
+ queryAuthentication(outRequestNo: string, params: {
7647
+ sub_mchid: string;
7648
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7649
+ /**
7650
+ * 发起批量转账
7651
+ *
7652
+ * 通过工资卡渠道发起批量转账。
7653
+ *
7654
+ * @param request - 批量转账请求参数
7655
+ * @returns 批量转账结果
7656
+ */
7657
+ createTransferBatch(request: {
7658
+ sub_mchid: string;
7659
+ appid: string;
7660
+ out_batch_no: string;
7661
+ batch_name: string;
7662
+ batch_remark: string;
7663
+ total_amount: number;
7664
+ total_num: number;
7665
+ transfer_detail_list: {
7666
+ out_detail_no: string;
7667
+ transfer_amount: number;
7668
+ transfer_remark: string;
7669
+ openid: string;
7670
+ user_name?: string;
7671
+ }[];
7672
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7673
+ }
7674
+
7675
+ /**
7676
+ * 刷码乘车服务
7677
+ *
7678
+ * 提供公共出行平台代扣服务 API 封装,包括:
7679
+ * - 开通用户服务
7680
+ * - 查询用户服务状态
7681
+ * - 扣费受理
7682
+ * - 查询扣费订单
7683
+ *
7684
+ * @see https://pay.weixin.qq.com/doc/v3/merchant/4012647399
7685
+ */
7686
+ declare class ScanAndRideService {
7687
+ private readonly client;
7688
+ constructor(client: WxPayClient);
7689
+ /**
7690
+ * 开通用户服务
7691
+ *
7692
+ * 用户授权开通刷码乘车服务。
7693
+ *
7694
+ * @param request - 开通服务请求参数
7695
+ * @returns 开通结果
7696
+ */
7697
+ createUserService(request: {
7698
+ appid: string;
7699
+ sub_mchid: string;
7700
+ out_request_no: string;
7701
+ openid: string;
7702
+ service_id: string;
7703
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7704
+ /**
7705
+ * 查询用户服务状态
7706
+ *
7707
+ * 查询用户是否已开通刷码乘车服务。
7708
+ *
7709
+ * @param outRequestNo - 商户请求号
7710
+ * @param params - 查询参数
7711
+ * @returns 用户服务状态
7712
+ */
7713
+ queryUserService(outRequestNo: string, params: {
7714
+ sub_mchid: string;
7715
+ service_id: string;
7716
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7717
+ /**
7718
+ * 扣费受理
7719
+ *
7720
+ * 发起刷码乘车扣费请求。
7721
+ *
7722
+ * @param request - 扣费请求参数
7723
+ * @returns 扣费受理结果
7724
+ */
7725
+ createTransaction(request: {
7726
+ appid: string;
7727
+ sub_mchid: string;
7728
+ out_trade_no: string;
7729
+ description: string;
7730
+ notify_url: string;
7731
+ amount: {
7732
+ total: number;
7733
+ currency?: string;
7734
+ };
7735
+ openid: string;
7736
+ service_id: string;
7737
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7738
+ /**
7739
+ * 查询扣费订单
7740
+ *
7741
+ * 根据商户订单号查询扣费订单状态。
7742
+ *
7743
+ * @param outTradeNo - 商户订单号
7744
+ * @param params - 查询参数
7745
+ * @returns 订单信息
7746
+ */
7747
+ queryTransaction(outTradeNo: string, params: {
7748
+ sub_mchid: string;
7749
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7750
+ }
7751
+
7752
+ /**
7753
+ * 零售门店服务
7754
+ *
7755
+ * 提供微信支付零售门店相关 API 封装,包括:
7756
+ * - 门店活动管理
7757
+ * - 门店资质管理
7758
+ * - 零售门店活动操作
7759
+ *
7760
+ * @see https://pay.weixin.qq.com/doc/v3/merchant/4012064295
7761
+ */
7762
+ declare class RetailStoreService {
7763
+ private readonly client;
7764
+ constructor(client: WxPayClient);
7765
+ /**
7766
+ * 创建门店活动
7767
+ *
7768
+ * @param request - 活动创建请求参数
7769
+ * @returns 创建结果
7770
+ */
7771
+ createActivity(request: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7772
+ /**
7773
+ * 查询门店活动详情
7774
+ *
7775
+ * @param activityId - 活动ID
7776
+ * @returns 活动详情
7777
+ */
7778
+ queryActivity(activityId: string): Promise<WxPayResponse<Record<string, unknown>>>;
7779
+ /**
7780
+ * 更新门店活动
7781
+ *
7782
+ * @param activityId - 活动ID
7783
+ * @param request - 更新请求参数
7784
+ * @returns 更新结果
7785
+ */
7786
+ updateActivity(activityId: string, request: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7787
+ /**
7788
+ * 创建门店资质
7789
+ *
7790
+ * @param request - 资质创建请求参数
7791
+ * @returns 创建结果
7792
+ */
7793
+ createQualification(request: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7794
+ /**
7795
+ * 查询门店资质
7796
+ *
7797
+ * @param qualificationId - 资质ID
7798
+ * @returns 资质详情
7799
+ */
7800
+ queryQualification(qualificationId: string): Promise<WxPayResponse<Record<string, unknown>>>;
7801
+ }
7802
+
7803
+ /**
7804
+ * 商家零钱服务
7805
+ *
7806
+ * 提供微信支付商家零钱(金盘计划)相关 API 封装,包括:
7807
+ * - 查询商户零钱余额
7808
+ * - 查询商户零钱流水
7809
+ * - 商家零钱状态管理
7810
+ *
7811
+ * @see https://pay.weixin.qq.com/doc/v3/merchant/4012064295
7812
+ */
7813
+ declare class GoldPlanService {
7814
+ private readonly client;
7815
+ constructor(client: WxPayClient);
7816
+ /**
7817
+ * 查询商户零钱余额
7818
+ *
7819
+ * @param mchid - 商户号
7820
+ * @returns 零钱余额信息
7821
+ */
7822
+ queryBalance(mchid: string): Promise<WxPayResponse<Record<string, unknown>>>;
7823
+ /**
7824
+ * 查询商户零钱流水
7825
+ *
7826
+ * @param mchid - 商户号
7827
+ * @param params - 查询参数
7828
+ * @returns 零钱流水列表
7829
+ */
7830
+ queryFlow(mchid: string, params?: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7831
+ /**
7832
+ * 查询商家零钱状态
7833
+ *
7834
+ * @param mchid - 商户号
7835
+ * @returns 零钱状态信息
7836
+ */
7837
+ queryStatus(mchid: string): Promise<WxPayResponse<Record<string, unknown>>>;
7838
+ }
7839
+
7840
+ /**
7841
+ * 爱心餐服务
7842
+ *
7843
+ * 提供微信支付爱心餐相关 API 封装,包括:
7844
+ * - 品牌管理
7845
+ * - 订单管理
7846
+ *
7847
+ * @see https://pay.weixin.qq.com/doc/v3/merchant/4012064295
7848
+ */
7849
+ declare class LoveFeastService {
7850
+ private readonly client;
7851
+ constructor(client: WxPayClient);
7852
+ /**
7853
+ * 创建爱心餐品牌
7854
+ *
7855
+ * @param request - 品牌创建请求参数
7856
+ * @returns 创建结果
7857
+ */
7858
+ createBrand(request: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7859
+ /**
7860
+ * 查询爱心餐品牌
7861
+ *
7862
+ * @param brandId - 品牌ID
7863
+ * @returns 品牌详情
7864
+ */
7865
+ queryBrand(brandId: string): Promise<WxPayResponse<Record<string, unknown>>>;
7866
+ /**
7867
+ * 创建爱心餐订单
7868
+ *
7869
+ * @param request - 订单创建请求参数
7870
+ * @returns 订单创建结果
7871
+ */
7872
+ createOrder(request: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7873
+ /**
7874
+ * 查询爱心餐订单
7875
+ *
7876
+ * @param outTradeNo - 商户订单号
7877
+ * @param params - 查询参数
7878
+ * @returns 订单详情
7879
+ */
7880
+ queryOrder(outTradeNo: string, params?: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7881
+ }
7882
+
7883
+ /**
7884
+ * 商户专属优惠券服务
7885
+ *
7886
+ * 提供微信支付商户专属优惠券相关 API 封装,包括:
7887
+ * - 优惠券批次管理
7888
+ * - 优惠券发放
7889
+ * - 优惠券查询
7890
+ *
7891
+ * @see https://pay.weixin.qq.com/doc/v3/merchant/4012084079
7892
+ */
7893
+ declare class MerchantExclusiveCouponService {
7894
+ private readonly client;
7895
+ constructor(client: WxPayClient);
7896
+ /**
7897
+ * 创建优惠券批次
7898
+ *
7899
+ * @param request - 批次创建请求参数
7900
+ * @returns 创建结果
7901
+ */
7902
+ createCouponStock(request: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7903
+ /**
7904
+ * 查询优惠券批次详情
7905
+ *
7906
+ * @param stockId - 批次ID
7907
+ * @returns 批次详情
7908
+ */
7909
+ queryCouponStock(stockId: string): Promise<WxPayResponse<Record<string, unknown>>>;
7910
+ /**
7911
+ * 发放优惠券
7912
+ *
7913
+ * @param request - 发放请求参数
7914
+ * @returns 发放结果
7915
+ */
7916
+ sendCoupon(request: {
7917
+ stock_id: string;
7918
+ out_request_no: string;
7919
+ openid: string;
7920
+ }): Promise<WxPayResponse<Record<string, unknown>>>;
7921
+ /**
7922
+ * 查询用户优惠券
7923
+ *
7924
+ * @param openid - 用户标识
7925
+ * @param params - 查询参数
7926
+ * @returns 用户优惠券列表
7927
+ */
7928
+ queryUserCoupons(openid: string, params?: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7929
+ /**
7930
+ * 查询优惠券详情
7931
+ *
7932
+ * @param couponId - 优惠券ID
7933
+ * @param params - 查询参数
7934
+ * @returns 优惠券详情
7935
+ */
7936
+ queryCoupon(couponId: string, params?: Record<string, unknown>): Promise<WxPayResponse<Record<string, unknown>>>;
7937
+ }
7938
+
7453
7939
  /**
7454
7940
  * 调起支付参数生成工具
7455
7941
  *
@@ -7848,6 +8334,15 @@ declare function buildAuthorization(mchid: string, serialNo: string, timestamp:
7848
8334
  * 生成随机 nonce 字符串
7849
8335
  */
7850
8336
  declare function generateNonce(): string;
8337
+ /**
8338
+ * 验证应答时间戳是否在有效期内
8339
+ *
8340
+ * 微信支付要求应答时间戳与当前时间之差不超过 5 分钟,防止重放攻击。
8341
+ *
8342
+ * @param timestamp - HTTP 头 Wechatpay-Timestamp 的值(Unix 秒)
8343
+ * @returns 时间戳是否有效
8344
+ */
8345
+ declare function isTimestampValid(timestamp: string): boolean;
7851
8346
  /**
7852
8347
  * 验证微信支付应答或回调通知签名
7853
8348
  *
@@ -7861,14 +8356,26 @@ declare function generateNonce(): string;
7861
8356
  */
7862
8357
  declare function verifySignature(body: string, signature: string, timestamp: string, nonce: string, publicKey: string | Buffer): boolean;
7863
8358
  /**
7864
- * 使用 RSAES-OAEP(SHA-256)算法加密敏感字段
8359
+ * 使用 RSAES-OAEP(SHA-1)算法加密敏感字段
7865
8360
  *
7866
8361
  * 用于分账接口等需要加密接收方姓名等敏感信息的场景。
8362
+ * 注意:微信支付官方要求使用 SHA-1 作为 OAEP 填充的哈希算法,与 SHA-256 不兼容。
7867
8363
  *
7868
8364
  * @param plaintext - 待加密的明文
7869
8365
  * @param publicKey - 微信支付公钥或平台证书公钥(PEM 格式)
7870
8366
  * @returns Base64 编码的密文
7871
8367
  */
7872
8368
  declare function oaepEncrypt(plaintext: string, publicKey: string | Buffer): string;
8369
+ /**
8370
+ * 使用 RSAES-OAEP(SHA-1)算法解密敏感字段
8371
+ *
8372
+ * 用于解密微信支付下行的敏感信息(如用户姓名、银行卡号等)。
8373
+ * 微信支付使用商户证书公钥加密下行数据,商户需使用对应的私钥解密。
8374
+ *
8375
+ * @param ciphertext - Base64 编码的密文
8376
+ * @param privateKey - 商户 API 私钥(PEM 格式)
8377
+ * @returns 解密后的明文字符串
8378
+ */
8379
+ declare function oaepDecrypt(ciphertext: string, privateKey: string | Buffer): string;
7873
8380
 
7874
- export { type ActivateCouponStockRequest, type ActivateCouponStockResponse, type AddProfitSharingReceiverRequest, type AddProfitSharingReceiverResponse, type AppBridgeConfig, AppService, type ApplyAbnormalRefundRequest, type ApplyAbnormalRefundResponse, type ApplyMerchantTransferElecSignByOutBillNoRequest, type ApplyMerchantTransferElecSignByTransferBillNoRequest, type ApplyMerchantTransferElecSignResponse, type ApplyParkingRefundRequest, type ApplyParkingRefundResponse, type AssignSmartGuideRequest, type AuthorizationCloseInfo, type AuthorizationCloseReason, BillService, type BuildPartnershipRequest, type BuildPartnershipResponse, type BusinessCircleAuthorizeCallbackData, type BusinessCircleRefundCallbackData, BusinessCircleService, type BusinessCircleTransactionCallbackData, CallbackHandler, type CallbackHeaders, type CallbackNotification, type CallbackResource, type CancelMerchantTransferResponse, type CancelPayScoreOrderRequest, type CancelPayScoreOrderResponse, CertificateManager, type CloseCombineOrderParams, type CloseCombineOrderRequest, type CloseCombineSubOrder, type CloseMerchantTransferAuthorizationResponse, type CloseOrderParams, type CloseOrderRequest, CombineAppService, CombineH5Service, CombineMiniProgramService, CombineNativeService, type CombinePayerInfo, type CombinePayerInfoResponse, type CombinePromotionDetail, type CombinePromotionGoodsDetail, type CombineSceneInfo, type CombineSceneInfoResponse, CombineService, type CombineSubOrder, type CombineSubOrderAmount, type CombineSubOrderAmountResponse, type CombineSubOrderResponse, type CombineSubOrderSettleInfo, type CombineTransactionCallbackData, type CombineTransactionSubOrder, type ComplaintCallbackData, type ComplaintCallbackUrlRequest, type ComplaintCallbackUrlResponse, type ComplaintNegotiationHistoryResponse, type ComplaintNegotiationRecord, type ComplaintNegotiationState, ComplaintService, type ComplaintState, type ComplaintSummary, type CompleteComplaintRequest, type CompletePayScoreOrderRequest, type CompletePayScoreOrderResponse, type CouponConsumeGoodsDetail, type CouponConsumeInformation, type CouponCutToMessage, type CouponFixedNormalCoupon, type CouponLimitCard, type CouponNormalCouponInformation, type CouponPatternInfo, CouponService, type CouponStatus, type CouponStockItem, type CouponStockStatus, type CouponStockType, type CouponStockUseRule, type CouponType, type CouponUseCallbackData, type CouponUseRule, type CreateAppCombineOrderRequest, type CreateAppCombineOrderResponse, type CreateAppOrderRequest, type CreateAppOrderResponse, type CreateCombineOrderRequest, type CreateCombineOrderResponse, type CreateCouponStockRequest, type CreateCouponStockResponse, type CreateH5CombineOrderRequest, type CreateH5CombineOrderResponse, type CreateH5OrderRequest, type CreateH5OrderResponse, type CreateJsapiOrderRequest, type CreateJsapiOrderResponse, type CreateMedInsOrderRequest, type CreateMerchantTransferAuthorizationRequest, type CreateMerchantTransferAuthorizationResponse, type CreateMerchantTransferRequest, type CreateMerchantTransferResponse, type CreateMiniProgramCombineOrderRequest, type CreateMiniProgramCombineOrderResponse, type CreateNativeCombineOrderRequest, type CreateNativeCombineOrderResponse, type CreateNativeOrderRequest, type CreateNativeOrderResponse, type CreateParkingRequest, type CreateParkingResponse, type CreateParkingTransactionRequest, type CreateParkingTransactionResponse, type CreatePayGiftActivityRequest, type CreatePayGiftActivityResponse, type CreatePayScoreOrderRequest, type CreatePayScoreOrderResponse, type CreateProfitSharingOrderRequest, type CreateProfitSharingOrderResponse, type CreateProfitSharingReturnOrderRequest, type CreateProfitSharingReturnOrderResponse, type CreateRefundRequest, type CreateRefundResponse, type CreateTransferAfterAuthorizationRequest, type CreateTransferAfterAuthorizationResponse, type CreateTransferWithAuthorizationRequest, type CreateTransferWithAuthorizationResponse, type DecryptedCallback, type DeleteProfitSharingReceiverRequest, type DeleteProfitSharingReceiverResponse, type DownloadBillParams, type DownloadBillResponse, type DownloadCouponStockFlowResponse, type EchoTestRequest, type EchoTestResponse, type ElecSignHashType, type ElecSignState, type FundFlowBillParams, type FundFlowBillResponse, type GetPayGiftActivityGoodsResponse, type GetPayGiftActivityMerchantsResponse, type GoodsDetail, type H5CombineSceneInfo, type H5Info, type H5SceneInfo, H5Service, type JsapiBridgeConfig, JsapiService, type MedInsCashAddEntity, type MedInsCashReduceEntity, type MedInsJsapiBridgeConfig, type MedInsMedInsPayStatus, type MedInsMiniProgramBridgeConfig, type MedInsMixPayStatus, type MedInsMixPayType, type MedInsOrderResponse, type MedInsOrderType, type MedInsPersonIdentification, type MedInsRefundCallbackData, type MedInsSelfPayStatus, MedInsService, type MedInsSuccessCallbackData, MediaService, type MerchantTransferAuthorizationCallbackData, type MerchantTransferAuthorizationJsapiBridgeConfig, type MerchantTransferAuthorizationState, type MerchantTransferCallbackData, type MerchantTransferJsapiBridgeConfig, MerchantTransferService, type MerchantTransferState, type MiniProgramBridgeConfig, type ModifyPayScoreOrderRequest, type ModifyPayScoreOrderResponse, NativeService, type OrderAmount, type OrderAmountResponse, type OrderDetail, type OrderPayer, type ParkingAmount, type ParkingAppBridgeConfig, type ParkingBlockReason, type ParkingCallbackBlockReason, type ParkingEntryStatusCallbackData, type ParkingH5BridgeConfig, type ParkingMiniProgramBridgeConfig, type ParkingPayer, type ParkingPromotionDetail, type ParkingRefundAmount, type ParkingRefundFrom, type ParkingRefundGoodsDetail, type ParkingRefundPromotionDetail, type ParkingRepayBridgeConfig, type ParkingSceneInfo, ParkingService, type ParkingState, type ParkingTradeState, type ParkingTransactionCallbackData, type PartnershipAuthorizedData, type PartnershipBusinessType, type PartnershipPartner, type PartnershipPartnerType, type PartnershipRecord, PartnershipService, type PartnershipState, type PauseCouponStockRequest, type PauseCouponStockResponse, PayGiftActivityService, type PayGiftActivityState, type PayGiftActivitySummary, type PayScoreAppBridgeConfig, type PayScoreCollection, type PayScoreCollectionDetail, type PayScoreCollectionState, type PayScoreDetailAppBridgeConfig, type PayScoreDetailJsapiBridgeConfig, type PayScoreDetailMiniProgramBridgeConfig, type PayScoreDevice, type PayScoreDiscount, type PayScoreJsapiBridgeConfig, type PayScoreLocation, type PayScoreMiniProgramBridgeConfig, type PayScoreOrderState, type PayScoreOrderStateDescription, type PayScorePayment, type PayScorePromotionDetail, type PayScorePromotionGoodsDetail, type PayScoreRefundCallbackData, type PayScoreRiskFund, PayScoreService, type PayScoreTimeRange, type PayScoreUserConfirmCallbackData, type PayScoreUserPaidCallbackData, type PlateColor, type PlateServiceState, type PlatformCertificate, type ProfitSharingBillParams, type ProfitSharingBillResponse, type ProfitSharingCallbackData, type ProfitSharingFailReason, type ProfitSharingReceiver, type ProfitSharingReceiverResponse, type ProfitSharingReceiverResult, type ProfitSharingReceiverType, type ProfitSharingRelationType, type ProfitSharingReturnFailReason, type ProfitSharingReturnResult, ProfitSharingService, type ProfitSharingState, type PromotionDetail, type PromotionGoodsDetail, type QueryBusinessCircleAuthorizationResponse, type QueryBusinessCirclePendingPointsParams, type QueryBusinessCirclePendingPointsResponse, type QueryCombineOrderParams, type QueryCombineOrderResponse, type QueryComplaintResponse, type QueryComplaintsParams, type QueryComplaintsResponse, type QueryCouponDetailParams, type QueryCouponDetailResponse, type QueryCouponStockItemsParams, type QueryCouponStockItemsResponse, type QueryCouponStockMerchantsParams, type QueryCouponStockMerchantsResponse, type QueryCouponStocksParams, type QueryCouponStocksResponse, type QueryMerchantTransferAuthorizationResponse, type QueryMerchantTransferElecSignResponse, type QueryMerchantTransferResponse, type QueryOrderParams, type QueryOrderResponse, type QueryParkingOrderResponse, type QueryParkingRefundResponse, type QueryPartnershipsParams, type QueryPartnershipsResponse, type QueryPayGiftActivitiesParams, type QueryPayGiftActivitiesResponse, type QueryPayGiftActivityResponse, type QueryPayScoreOrderParams, type QueryPayScoreOrderResponse, type QueryPlateServiceParams, type QueryPlateServiceResponse, type QueryProfitSharingAmountResponse, type QueryProfitSharingOrderParams, type QueryProfitSharingOrderResponse, type QueryProfitSharingReturnOrderParams, type QueryProfitSharingReturnOrderResponse, type QueryRefundParams, type QueryRefundResponse, type QuerySmartGuidesParams, type QuerySmartGuidesResponse, type QueryUserCouponsParams, type QueryUserCouponsResponse, type RefundAmount, type RefundAmountResponse, type RefundCallbackData, type RefundFromAccount, type RefundGoodsDetail, type RefundPromotionDetail, type RegisterSmartGuideRequest, type RegisterSmartGuideResponse, type ReplyComplaintRequest, type ReplyImmediateServiceRequest, type RequestParams, type RestartCouponStockRequest, type RestartCouponStockResponse, type SceneInfo, type SceneInfoResponse, SecurityService, type SendCouponRequest, type SendCouponResponse, type SetCouponCallbackRequest, type SetCouponCallbackResponse, type SettleInfo, type SignPayload, type SignType, type SmartGuide, SmartGuideService, type StoreInfo, type SyncBusinessCircleParkingStatusRequest, type SyncBusinessCirclePointsRequest, type SyncPayScoreOrderRequest, type SyncPayScoreOrderResponse, type TradeBillParams, type TradeBillResponse, type TransactionCallbackData, type TransferSceneReportInfo, type UnfreezeProfitSharingRequest, type UnfreezeProfitSharingResponse, type UpdateComplaintRefundRequest, type UpdateSmartGuideRequest, type UploadComplaintImageResponse, type UploadMarketingImageRequest, type UploadMarketingImageResponse, type UserCouponItem, WxPayClient, WxPayError, type WxPayErrorDetail, type WxPayOptions, type WxPayResponse, buildAppBridgeConfig, buildAuthorization, buildH5CouponUrl, buildJsapiBridgeConfig, buildMedInsJsapiBridgeConfig, buildMedInsMiniProgramBridgeConfig, buildMerchantTransferAuthorizationJsapiBridgeConfig, buildMerchantTransferJsapiBridgeConfig, buildMerchantTransferMiniProgramBridgeConfig, buildMiniProgramBridgeConfig, buildParkingAppBridgePath, buildParkingH5BridgeUrl, buildParkingMiniProgramBridgeConfig, buildParkingRepayBridgeConfig, buildPayScoreAppBridgeConfig, buildPayScoreDetailAppBridgeConfig, buildPayScoreDetailJsapiBridgeConfig, buildPayScoreDetailMiniProgramBridgeConfig, buildPayScoreJsapiBridgeConfig, buildPayScoreMiniProgramBridgeConfig, buildSignString, generateAppPaySign, generateNonce, generateNonceStr, generatePayScorePaySign, generatePaySign, oaepEncrypt, sign, verifySignature };
8381
+ export { type ActivateCouponStockRequest, type ActivateCouponStockResponse, type AddProfitSharingReceiverRequest, type AddProfitSharingReceiverResponse, type AppBridgeConfig, AppService, type ApplyAbnormalRefundRequest, type ApplyAbnormalRefundResponse, type ApplyMerchantTransferElecSignByOutBillNoRequest, type ApplyMerchantTransferElecSignByTransferBillNoRequest, type ApplyMerchantTransferElecSignResponse, type ApplyParkingRefundRequest, type ApplyParkingRefundResponse, type AssignSmartGuideRequest, type AuthorizationCloseInfo, type AuthorizationCloseReason, BillService, type BuildPartnershipRequest, type BuildPartnershipResponse, type BusinessCircleAuthorizeCallbackData, type BusinessCircleRefundCallbackData, BusinessCircleService, type BusinessCircleTransactionCallbackData, CallbackHandler, type CallbackHeaders, type CallbackNotification, type CallbackResource, type CancelMerchantTransferResponse, type CancelPayScoreOrderRequest, type CancelPayScoreOrderResponse, CertificateManager, CertificateService, type CloseCombineOrderParams, type CloseCombineOrderRequest, type CloseCombineSubOrder, type CloseMerchantTransferAuthorizationResponse, type CloseOrderParams, type CloseOrderRequest, CombineAppService, CombineH5Service, CombineMiniProgramService, CombineNativeService, type CombinePayerInfo, type CombinePayerInfoResponse, type CombinePromotionDetail, type CombinePromotionGoodsDetail, type CombineSceneInfo, type CombineSceneInfoResponse, CombineService, type CombineSubOrder, type CombineSubOrderAmount, type CombineSubOrderAmountResponse, type CombineSubOrderResponse, type CombineSubOrderSettleInfo, type CombineTransactionCallbackData, type CombineTransactionSubOrder, type ComplaintCallbackData, type ComplaintCallbackUrlRequest, type ComplaintCallbackUrlResponse, type ComplaintNegotiationHistoryResponse, type ComplaintNegotiationRecord, type ComplaintNegotiationState, ComplaintService, type ComplaintState, type ComplaintSummary, type CompleteComplaintRequest, type CompletePayScoreOrderRequest, type CompletePayScoreOrderResponse, type CouponConsumeGoodsDetail, type CouponConsumeInformation, type CouponCutToMessage, type CouponFixedNormalCoupon, type CouponLimitCard, type CouponNormalCouponInformation, type CouponPatternInfo, CouponService, type CouponStatus, type CouponStockItem, type CouponStockStatus, type CouponStockType, type CouponStockUseRule, type CouponType, type CouponUseCallbackData, type CouponUseRule, type CreateAppCombineOrderRequest, type CreateAppCombineOrderResponse, type CreateAppOrderRequest, type CreateAppOrderResponse, type CreateCombineOrderRequest, type CreateCombineOrderResponse, type CreateCouponStockRequest, type CreateCouponStockResponse, type CreateH5CombineOrderRequest, type CreateH5CombineOrderResponse, type CreateH5OrderRequest, type CreateH5OrderResponse, type CreateJsapiOrderRequest, type CreateJsapiOrderResponse, type CreateMedInsOrderRequest, type CreateMerchantTransferAuthorizationRequest, type CreateMerchantTransferAuthorizationResponse, type CreateMerchantTransferRequest, type CreateMerchantTransferResponse, type CreateMiniProgramCombineOrderRequest, type CreateMiniProgramCombineOrderResponse, type CreateNativeCombineOrderRequest, type CreateNativeCombineOrderResponse, type CreateNativeOrderRequest, type CreateNativeOrderResponse, type CreateParkingRequest, type CreateParkingResponse, type CreateParkingTransactionRequest, type CreateParkingTransactionResponse, type CreatePayGiftActivityRequest, type CreatePayGiftActivityResponse, type CreatePayScoreOrderRequest, type CreatePayScoreOrderResponse, type CreateProfitSharingOrderRequest, type CreateProfitSharingOrderResponse, type CreateProfitSharingReturnOrderRequest, type CreateProfitSharingReturnOrderResponse, type CreateRefundRequest, type CreateRefundResponse, type CreateTransferAfterAuthorizationRequest, type CreateTransferAfterAuthorizationResponse, type CreateTransferWithAuthorizationRequest, type CreateTransferWithAuthorizationResponse, type DecryptedCallback, type DecryptedCertificate, type DeleteProfitSharingReceiverRequest, type DeleteProfitSharingReceiverResponse, type DownloadBillParams, type DownloadBillResponse, type DownloadCouponStockFlowResponse, type EchoTestRequest, type EchoTestResponse, type ElecSignHashType, type ElecSignState, type FundFlowBillParams, type FundFlowBillResponse, type GetPayGiftActivityGoodsResponse, type GetPayGiftActivityMerchantsResponse, GoldPlanService, type GoodsDetail, type H5CombineSceneInfo, type H5Info, type H5SceneInfo, H5Service, type JsapiBridgeConfig, JsapiService, LoveFeastService, type MedInsCashAddEntity, type MedInsCashReduceEntity, type MedInsJsapiBridgeConfig, type MedInsMedInsPayStatus, type MedInsMiniProgramBridgeConfig, type MedInsMixPayStatus, type MedInsMixPayType, type MedInsOrderResponse, type MedInsOrderType, type MedInsPersonIdentification, type MedInsRefundCallbackData, type MedInsSelfPayStatus, MedInsService, type MedInsSuccessCallbackData, MediaService, MerchantExclusiveCouponService, type MerchantTransferAuthorizationCallbackData, type MerchantTransferAuthorizationJsapiBridgeConfig, type MerchantTransferAuthorizationState, type MerchantTransferCallbackData, type MerchantTransferJsapiBridgeConfig, MerchantTransferService, type MerchantTransferState, type MiniProgramBridgeConfig, type ModifyPayScoreOrderRequest, type ModifyPayScoreOrderResponse, NativeService, type OrderAmount, type OrderAmountResponse, type OrderDetail, type OrderPayer, type ParkingAmount, type ParkingAppBridgeConfig, type ParkingBlockReason, type ParkingCallbackBlockReason, type ParkingEntryStatusCallbackData, type ParkingH5BridgeConfig, type ParkingMiniProgramBridgeConfig, type ParkingPayer, type ParkingPromotionDetail, type ParkingRefundAmount, type ParkingRefundFrom, type ParkingRefundGoodsDetail, type ParkingRefundPromotionDetail, type ParkingRepayBridgeConfig, type ParkingSceneInfo, ParkingService, type ParkingState, type ParkingTradeState, type ParkingTransactionCallbackData, type PartnershipAuthorizedData, type PartnershipBusinessType, type PartnershipPartner, type PartnershipPartnerType, type PartnershipRecord, PartnershipService, type PartnershipState, type PauseCouponStockRequest, type PauseCouponStockResponse, PayGiftActivityService, type PayGiftActivityState, type PayGiftActivitySummary, type PayScoreAppBridgeConfig, type PayScoreCollection, type PayScoreCollectionDetail, type PayScoreCollectionState, type PayScoreDetailAppBridgeConfig, type PayScoreDetailJsapiBridgeConfig, type PayScoreDetailMiniProgramBridgeConfig, type PayScoreDevice, type PayScoreDiscount, type PayScoreJsapiBridgeConfig, type PayScoreLocation, type PayScoreMiniProgramBridgeConfig, type PayScoreOrderState, type PayScoreOrderStateDescription, type PayScorePayment, type PayScorePromotionDetail, type PayScorePromotionGoodsDetail, type PayScoreRefundCallbackData, type PayScoreRiskFund, PayScoreService, type PayScoreTimeRange, type PayScoreUserConfirmCallbackData, type PayScoreUserPaidCallbackData, PayrollCardService, type PlateColor, type PlateServiceState, type PlatformCertificate, type ProfitSharingBillParams, type ProfitSharingBillResponse, type ProfitSharingCallbackData, type ProfitSharingFailReason, type ProfitSharingReceiver, type ProfitSharingReceiverResponse, type ProfitSharingReceiverResult, type ProfitSharingReceiverType, type ProfitSharingRelationType, type ProfitSharingReturnFailReason, type ProfitSharingReturnResult, ProfitSharingService, type ProfitSharingState, type PromotionDetail, type PromotionGoodsDetail, type QueryBusinessCircleAuthorizationResponse, type QueryBusinessCirclePendingPointsParams, type QueryBusinessCirclePendingPointsResponse, type QueryCombineOrderParams, type QueryCombineOrderResponse, type QueryComplaintResponse, type QueryComplaintsParams, type QueryComplaintsResponse, type QueryCouponDetailParams, type QueryCouponDetailResponse, type QueryCouponStockItemsParams, type QueryCouponStockItemsResponse, type QueryCouponStockMerchantsParams, type QueryCouponStockMerchantsResponse, type QueryCouponStocksParams, type QueryCouponStocksResponse, type QueryMerchantTransferAuthorizationResponse, type QueryMerchantTransferElecSignResponse, type QueryMerchantTransferResponse, type QueryOrderParams, type QueryOrderResponse, type QueryParkingOrderResponse, type QueryParkingRefundResponse, type QueryPartnershipsParams, type QueryPartnershipsResponse, type QueryPayGiftActivitiesParams, type QueryPayGiftActivitiesResponse, type QueryPayGiftActivityResponse, type QueryPayScoreOrderParams, type QueryPayScoreOrderResponse, type QueryPlateServiceParams, type QueryPlateServiceResponse, type QueryProfitSharingAmountResponse, type QueryProfitSharingOrderParams, type QueryProfitSharingOrderResponse, type QueryProfitSharingReturnOrderParams, type QueryProfitSharingReturnOrderResponse, type QueryRefundParams, type QueryRefundResponse, type QuerySmartGuidesParams, type QuerySmartGuidesResponse, type QueryUserCouponsParams, type QueryUserCouponsResponse, type RefundAmount, type RefundAmountResponse, type RefundCallbackData, type RefundFromAccount, type RefundGoodsDetail, type RefundPromotionDetail, type RegisterSmartGuideRequest, type RegisterSmartGuideResponse, type ReplyComplaintRequest, type ReplyImmediateServiceRequest, type RequestParams, type RestartCouponStockRequest, type RestartCouponStockResponse, RetailStoreService, ScanAndRideService, type SceneInfo, type SceneInfoResponse, SecurityService, type SendCouponRequest, type SendCouponResponse, type SetCouponCallbackRequest, type SetCouponCallbackResponse, type SettleInfo, type SignPayload, type SignType, type SignatureType, type SmartGuide, SmartGuideService, type StoreInfo, type SyncBusinessCircleParkingStatusRequest, type SyncBusinessCirclePointsRequest, type SyncPayScoreOrderRequest, type SyncPayScoreOrderResponse, type TradeBillParams, type TradeBillResponse, type TransactionCallbackData, type TransferSceneReportInfo, type UnfreezeProfitSharingRequest, type UnfreezeProfitSharingResponse, type UpdateComplaintRefundRequest, type UpdateSmartGuideRequest, type UploadComplaintImageResponse, type UploadMarketingImageRequest, type UploadMarketingImageResponse, type UserCouponItem, WxPayClient, WxPayError, type WxPayErrorDetail, type WxPayOptions, type WxPayResponse, buildAppBridgeConfig, buildAuthorization, buildH5CouponUrl, buildJsapiBridgeConfig, buildMedInsJsapiBridgeConfig, buildMedInsMiniProgramBridgeConfig, buildMerchantTransferAuthorizationJsapiBridgeConfig, buildMerchantTransferJsapiBridgeConfig, buildMerchantTransferMiniProgramBridgeConfig, buildMiniProgramBridgeConfig, buildParkingAppBridgePath, buildParkingH5BridgeUrl, buildParkingMiniProgramBridgeConfig, buildParkingRepayBridgeConfig, buildPayScoreAppBridgeConfig, buildPayScoreDetailAppBridgeConfig, buildPayScoreDetailJsapiBridgeConfig, buildPayScoreDetailMiniProgramBridgeConfig, buildPayScoreJsapiBridgeConfig, buildPayScoreMiniProgramBridgeConfig, buildSignString, generateAppPaySign, generateNonce, generateNonceStr, generatePayScorePaySign, generatePaySign, isTimestampValid, oaepDecrypt, oaepEncrypt, sign, verifySignature };