Skip to content

Instantly share code, notes, and snippets.

import {Global, HttpStatus, Injectable, Logger} from "@nestjs/common";
import {HttpService} from "@nestjs/axios";
import {ConfigService} from "@nestjs/config";
import * as https from "node:https";
import {lastValueFrom} from "rxjs";
export interface GenerateCardUniqueKeyRequest {
mkac: string;
accountNumber: string;
{
mti: '2200',
stan: '000000359198',
rrn: '142847359198',
processingCode: '000000',
terminalId: '2SUD0001',
merchantId: 'SUD000000000001',
amounts: {
amount: '5662000000000100',
currency: '566',
@sadiqumar18
sadiqumar18 / playground.ts
Created February 16, 2025 13:51
Transaction Schema With ISO mapping
export enum ISO8583Fields {
MTI = '0',
PAN = '2',
PROCESSING_CODE = '3',
AMOUNT = '4',
AMOUNT_RECONCILIATION = '5',
AMOUNT_CARDHOLDER_BILLING = '6',
TRANSMISSION_DATE_TIME = '7',
AMOUNT_CARDHOLDER_FEE = '8',
STAN = '11',