khqr_generator library

Classes

EMV
EMV (Europay, MasterCard, and Visa) constants used in KHQR generation.
ErrorCode
Defines a collection of error codes and messages for KHQR generation and validation.
IndividualInfo
Represents the information required to generate a KHQR for an individual account.
KHQRData
Represents the data contained within a KHQR code.
KHQRGenerator
A utility class for generating, verifying, and decoding KHQR codes.
KHQRResponse
Represents the response from a KHQR generation or decoding operation.
MerchantInfo
Represents the information required to generate a KHQR for a merchant account.
Status
Represents the status of a KHQR operation, including success or error details.
Tag
Represents an EMV Tag-Length-Value (TLV) structure.
VerificationResult
Represents the result of a KHQR verification operation.

Enums

KHQRCurrency
Represents the supported currencies for KHQR transactions.
MerchantType
Represents the type of merchant for a KHQR transaction.

Functions

calculateCRC(String data) String
Calculates the Cyclic Redundancy Check (CRC) for the given data.
calculateMD5(String data) String
Calculates the MD5 hash of the given data.