Skip to content

Instantly share code, notes, and snippets.

@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()
@ebundala
ebundala / countries.json
Created June 27, 2019 07:57 — forked from tepahk/countries.json
JSON array of all countries with ISO-2 and ISO-3 codes pulled from https://www.iso.org/obp/ui/#search/code/
[{
"name" : "Afghanistan",
"iso2": "AF",
"iso3" : "AFG",
"numeric": "004"
},
{
"name" : "South Africa",
"iso2": "ZA",
"iso3" : "ZAF",