Class coreutil

This class contains util methods More…

Static Public Member Functions

static DeviceEnum ConvertDeviceToEnum (string enumValue)
static string ConvertToString (Enum eff)
static string CardTypeBasedOnAid (string aid)
static string CardTypeBasedOnBin (string maskedPan)
static string ByteArrayToString (byte[] data)
static string ByteArrayToHexString (byte[] data, int offset, int length, bool spaces)
static string ByteArrayToHexString (byte[] data, int offset, int length)
static string ConvertHexToAscii (string hexString)
static string ConvertAsciiToHex (string asciiString)
static byte [] StringToByteArray (string hex)
static byte [] HexStringToByteArray (string data)
static TipType ConvertTipType (string enumValue)
static Currency ConvertToCurrency (string enumValue)
static string ConvertEnumToString (Enum eff)
static string GenerateOrderId ()
static string AddUpAllAmounts (CoreSale coreSale)
static String ctlsTlvFromApplicationID (String applicationID)
static String appendTLV (String tlvString, String tag, String value)

Detailed Description

This class contains util methods

Member Function Documentation

AddUpAllAmounts()

    • static string CorePayments.CoreUtil.AddUpAllAmounts
    • (
    • CoreSale
    • coreSale
    • )

  • inlinestatic

appendTLV()

    • static String CorePayments.CoreUtil.appendTLV
    • (
    • String
    • tlvString,

    • String
    • tag,

    • String
    • value

    • )

  • inlinestatic

ByteArrayToHexString() [1/2]

    • static string CorePayments.CoreUtil.ByteArrayToHexString
    • (
    • byte []
    • data,

    • int
    • offset,

    • int
    • length,

    • bool
    • spaces

    • )

  • inlinestatic

ByteArrayToHexString() [2/2]

    • static string CorePayments.CoreUtil.ByteArrayToHexString
    • (
    • byte []
    • data,

    • int
    • offset,

    • int
    • length

    • )

  • inlinestatic

ByteArrayToString()

    • static string CorePayments.CoreUtil.ByteArrayToString
    • (
    • byte []
    • data
    • )

  • inlinestatic

CardTypeBasedOnAid()

    • static string CorePayments.CoreUtil.CardTypeBasedOnAid
    • (
    • string
    • aid
    • )

  • inlinestatic

CardTypeBasedOnBin()

    • static string CorePayments.CoreUtil.CardTypeBasedOnBin
    • (
    • string
    • maskedPan
    • )

  • inlinestatic

ConvertAsciiToHex()

    • static string CorePayments.CoreUtil.ConvertAsciiToHex
    • (
    • string
    • asciiString
    • )

  • inlinestatic

ConvertDeviceToEnum()

    • static DeviceEnum CorePayments.CoreUtil.ConvertDeviceToEnum
    • (
    • string
    • enumValue
    • )

  • inlinestatic

ConvertEnumToString()

    • static string CorePayments.CoreUtil.ConvertEnumToString
    • (
    • Enum
    • eff
    • )

  • inlinestatic

ConvertHexToAscii()

    • static string CorePayments.CoreUtil.ConvertHexToAscii
    • (
    • string
    • hexString
    • )

  • inlinestatic

ConvertTipType()

    • static TipType CorePayments.CoreUtil.ConvertTipType
    • (
    • string
    • enumValue
    • )

  • inlinestatic

ConvertToCurrency()

    • static Currency CorePayments.CoreUtil.ConvertToCurrency
    • (
    • string
    • enumValue
    • )

  • inlinestatic

ConvertToString()

    • static string CorePayments.CoreUtil.ConvertToString
    • (
    • Enum
    • eff
    • )

  • inlinestatic

ctlsTlvFromApplicationID()

    • static String CorePayments.CoreUtil.ctlsTlvFromApplicationID
    • (
    • String
    • applicationID
    • )

  • inlinestatic

GenerateOrderId()

    • static string CorePayments.CoreUtil.GenerateOrderId
    • (
    • )

  • inlinestatic

HexStringToByteArray()

    • static byte [] CorePayments.CoreUtil.HexStringToByteArray
    • (
    • string
    • data
    • )

  • inlinestatic

StringToByteArray()

    • static byte [] CorePayments.CoreUtil.StringToByteArray
    • (
    • string
    • hex
    • )

  • inlinestatic