emvco-qr-sdk
Version:
A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.
15 lines (14 loc) • 616 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveAcquirerNetworkName = resolveAcquirerNetworkName;
const acquirer_constant_1 = require("../../constants/acquirer.constant");
/**
* Resolves the human-readable network name from a given GUI string.
*
* @param gui - The GUI string from tag 49 subtag 00 (e.g., "CO.COM.CRB.RED")
* @returns The resolved name of the network, or "Unknown" if not found.
*/
function resolveAcquirerNetworkName(gui) {
var _a;
return (_a = acquirer_constant_1.ACQUIRER_NETWORK_GUI_MAP[gui]) !== null && _a !== void 0 ? _a : 'Unknown';
}