Skip to content

Instantly share code, notes, and snippets.

View alexthecurator's full-sized avatar
🏠
Working

Alexander alexthecurator

🏠
Working
View GitHub Profile
@ebundala
ebundala / mpesa-example.ts
Created January 26, 2024 11:53
Mpesa OpenApi node with nestjs
import { HttpService, Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Cron, CronExpression } from '@nestjs/schedule';
import { PrismaClient } from '@prisma/client';
import { writeFile } from 'fs/promises';
import NodeRsa from 'node-rsa';
import { join } from 'path';
import { AppLogger } from 'src/app-logger/app-logger.module';
import { HTTP_CLIENT_CONFIG } from './mpesa-tz.module';
@Injectable()