@konplit-services/common 1.2.1 → 1.2.3
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/build/app.configs.d.ts +15 -13
- package/build/app.configs.js +4 -0
- package/build/events/qrpayments-events/interfaces/qr-query-order-status.interfce.d.ts +1 -0
- package/build/events/qrpayments-events/interfaces/qr-query-status-delay-coplete.interface.d.ts +1 -0
- package/build/events/qrpayments-events/interfaces/qr-query-status-delay.interface.d.ts +1 -0
- package/package.json +1 -1
package/build/app.configs.d.ts
CHANGED
|
@@ -137,6 +137,20 @@ interface Interswitch {
|
|
|
137
137
|
recurrent_secret_key: string;
|
|
138
138
|
webhookSecretKey: string;
|
|
139
139
|
}
|
|
140
|
+
export interface ValuePay {
|
|
141
|
+
visa_redirect_url: string;
|
|
142
|
+
visa_redirect_fail_url: string;
|
|
143
|
+
visa_callback_url: string;
|
|
144
|
+
valuepay_ceo: string;
|
|
145
|
+
support_email: string;
|
|
146
|
+
support_phone: string;
|
|
147
|
+
ip_token: string;
|
|
148
|
+
invoice_url: string;
|
|
149
|
+
noReplyEmail: string;
|
|
150
|
+
emailName: string;
|
|
151
|
+
checkoutUrl: string;
|
|
152
|
+
paymentUrl: string;
|
|
153
|
+
}
|
|
140
154
|
interface InterswitchTransfer {
|
|
141
155
|
client_id: string;
|
|
142
156
|
secret_key: string;
|
|
@@ -308,19 +322,7 @@ declare class AppConfigs {
|
|
|
308
322
|
rotateKey: string;
|
|
309
323
|
region: string;
|
|
310
324
|
};
|
|
311
|
-
getValuePayDetails():
|
|
312
|
-
visa_redirect_url: string;
|
|
313
|
-
visa_redirect_fail_url: string;
|
|
314
|
-
visa_callback_url: string;
|
|
315
|
-
valuepay_ceo: string;
|
|
316
|
-
support_email: string;
|
|
317
|
-
support_phone: string;
|
|
318
|
-
ip_token: string;
|
|
319
|
-
invoice_url: string;
|
|
320
|
-
noReplyEmail: string;
|
|
321
|
-
emailName: string;
|
|
322
|
-
checkoutUrl: string;
|
|
323
|
-
};
|
|
325
|
+
getValuePayDetails(): ValuePay;
|
|
324
326
|
getOpayDetails(): Opay;
|
|
325
327
|
getNIBSSDetails(): NIBSS;
|
|
326
328
|
getFidelityDetails(): {
|
package/build/app.configs.js
CHANGED
|
@@ -543,6 +543,9 @@ class AppConfigs {
|
|
|
543
543
|
if (!this.env.CHECKOUT_URL) {
|
|
544
544
|
throw new Error("CHECKOUT_URL is required");
|
|
545
545
|
}
|
|
546
|
+
if (!this.env.VALUEPAY_PAYMENT_URL) {
|
|
547
|
+
throw new Error("VALUEPAY_PAYMENT_URL is required");
|
|
548
|
+
}
|
|
546
549
|
return {
|
|
547
550
|
visa_redirect_url: this.env.VALUEPAY_VISA_REDIRECT_URL,
|
|
548
551
|
visa_redirect_fail_url: this.env.VALUEPAY_VISA_FAIL_REDIRECT_URL,
|
|
@@ -555,6 +558,7 @@ class AppConfigs {
|
|
|
555
558
|
noReplyEmail: this.env.VALUEPAY_NO_REPLY_EMAIL,
|
|
556
559
|
emailName: this.env.VALUEPAY_EMAIL_NAME,
|
|
557
560
|
checkoutUrl: this.env.CHECKOUT_URL,
|
|
561
|
+
paymentUrl: this.env.VALUEPAY_PAYMENT_URL
|
|
558
562
|
};
|
|
559
563
|
}
|
|
560
564
|
getOpayDetails() {
|