@konplit-services/common 1.0.284 → 1.0.285

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.
@@ -135,6 +135,7 @@ interface Interswitch {
135
135
  visa_callback_url: string;
136
136
  recurrent_client_id: string;
137
137
  recurrent_secret_key: string;
138
+ webhookSecretKey: string;
138
139
  }
139
140
  interface InterswitchTransfer {
140
141
  client_id: string;
@@ -726,6 +726,9 @@ class AppConfigs {
726
726
  if (!this.env.INTERSWITCH_DEFAULT_EXPONENT) {
727
727
  throw new Error("INTERSWITCH_DEFAULT_EXPONENT is required");
728
728
  }
729
+ if (!this.env.INTERSWITCH_WEBHOOK_SECRETKEY) {
730
+ throw new Error("INTERSWITCH_WEBHOOK_SECRETKEY is required");
731
+ }
729
732
  return {
730
733
  merchant_id: this.env.INTERSWITCH_MERCHANT_ID,
731
734
  pay_item_id: this.env.INTERSWITCH_PAY_ITEM_ID,
@@ -739,6 +742,7 @@ class AppConfigs {
739
742
  visa_callback_url: this.env.INTERSWITCH_VISA_CALLBACK_URL,
740
743
  recurrent_client_id: this.env.INTERSWITCH_RECURRENT_CLIENT_ID,
741
744
  recurrent_secret_key: this.env.INTERSWITCH_RECURRENT_SECRET_KEY,
745
+ webhookSecretKey: this.env.INTERSWITCH_WEBHOOK_SECRETKEY,
742
746
  };
743
747
  }
744
748
  // Interswitch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.284",
3
+ "version": "1.0.285",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",