feat: ( telebirr ) setup telebirr config

This commit is contained in:
Abubeker Yasin
2026-05-16 21:04:46 +03:00
parent 7a3931f2d4
commit 56b86e3f44
3 changed files with 24 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
import { registerAs } from '@nestjs/config';
export default registerAs('telebirr', () => ({
baseUrl: process.env.TELEBIRR_BASE_URL ?? '',
webBaseUrl: process.env.TELEBIRR_WEB_BASE_URL ?? '',
fabricAppId: process.env.TELEBIRR_FABRIC_APP_ID ?? '',
appSecret: process.env.TELEBIRR_APP_SECRET ?? '',
merchantAppId: process.env.TELEBIRR_MERCHANT_APP_ID ?? '',
merchantCode: process.env.TELEBIRR_MERCHANT_CODE ?? '',
notifyUrl: process.env.TELEBIRR_NOTIFY_URL ?? '',
returnUrl: process.env.TELEBIRR_RETURN_URL ?? '',
timeoutExpress: process.env.TELEBIRR_TIMEOUT_EXPRESS ?? '15m',
}));