This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
mti: '2200', | |
stan: '000000359198', | |
rrn: '142847359198', | |
processingCode: '000000', | |
terminalId: '2SUD0001', | |
merchantId: 'SUD000000000001', | |
amounts: { | |
amount: '5662000000000100', | |
currency: '566', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |