@konplit-services/common 1.0.319 → 1.0.320

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.
@@ -307,6 +307,7 @@ declare class AppConfigs {
307
307
  invoice_url: string;
308
308
  noReplyEmail: string;
309
309
  emailName: string;
310
+ checkoutUrl: string;
310
311
  };
311
312
  getOpayDetails(): Opay;
312
313
  getNIBSSDetails(): NIBSS;
@@ -522,6 +522,9 @@ class AppConfigs {
522
522
  if (!this.env.VALUEPAY_EMAIL_NAME) {
523
523
  throw new Error("VALUEPAY_NO_REPLY_EMAIL is required");
524
524
  }
525
+ if (!this.env.CHECKOUT_URL) {
526
+ throw new Error("CHECKOUT_URL is required");
527
+ }
525
528
  return {
526
529
  visa_redirect_url: this.env.VALUEPAY_VISA_REDIRECT_URL,
527
530
  visa_redirect_fail_url: this.env.VALUEPAY_VISA_FAIL_REDIRECT_URL,
@@ -533,6 +536,7 @@ class AppConfigs {
533
536
  invoice_url: this.env.VALUEPAY_INVOICE_URL,
534
537
  noReplyEmail: this.env.VALUEPAY_NO_REPLY_EMAIL,
535
538
  emailName: this.env.VALUEPAY_EMAIL_NAME,
539
+ checkoutUrl: this.env.CHECKOUT_URL,
536
540
  };
537
541
  }
538
542
  getOpayDetails() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.319",
3
+ "version": "1.0.320",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",