@konplit-services/common 1.0.231 → 1.0.234

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.
@@ -72,6 +72,7 @@ interface EasyPay {
72
72
  clientId: string;
73
73
  secret: string;
74
74
  easyPayBillerID: string;
75
+ easyPayAuthKey: string;
75
76
  easyPayMandateRef: string;
76
77
  easyPayClientCode: string;
77
78
  }
@@ -488,6 +488,9 @@ class AppConfigs {
488
488
  if (!this.env.NIBSS_EASYPAY_MANDATE_REF) {
489
489
  throw new Error("NIBSS_EASYPAY_MANDATE_REF is required");
490
490
  }
491
+ if (!this.env.NIBSS_EASYPAY_AUTH_KEY) {
492
+ throw new Error("NIBSS_EASYPAY_AUTH_KEY is required");
493
+ }
491
494
  if (!this.env.NIBSS_EASYPAY_CLIENT_CODE) {
492
495
  throw new Error("NIBSS_EASYPAY_CLIENT_CODE is required");
493
496
  }
@@ -547,6 +550,7 @@ class AppConfigs {
547
550
  easyPayBillerID: this.env.NIBSS_EASYPAY_BILLER_ID,
548
551
  easyPayMandateRef: this.env.NIBSS_EASYPAY_MANDATE_REF,
549
552
  easyPayClientCode: this.env.NIBSS_EASYPAY_CLIENT_CODE,
553
+ easyPayAuthKey: this.env.NIBSS_EASYPAY_AUTH_KEY,
550
554
  },
551
555
  payplus: {
552
556
  base_url: this.env.NIBSS_PAYPLUS_BASE_URL,
@@ -149,7 +149,7 @@ exports.authData = authData;
149
149
  */
150
150
  const generateOrderId = () => {
151
151
  const yyyymm = (0, timestamp_1.getYearMonth)();
152
- const id = (0, util_1.uniqueId)("abcdefkpvlxnm0123456789", 24);
152
+ const id = (0, util_1.uniqueId)("abcdefkpvlxnm0123456789", 22); //by defaul vp is added making it 30
153
153
  return `${yyyymm}${id}`;
154
154
  };
155
155
  exports.generateOrderId = generateOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.231",
3
+ "version": "1.0.234",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",