Options
All
  • Public
  • Public/Protected
  • All
Menu

Module util

Functions

generatePayGateChecksum

  • generatePayGateChecksum(data: UntypedObject, encryptionKey: string): string
  • Parameters

    Returns string

getTestCards

getTestCardsByTransactionType

getTransactionInfo

redirectBrowser

  • redirectBrowser(uri: string, params: any): void
  • Parameters

    • uri: string
    • params: any

    Returns void

removeAllNonValuedProperties

  • Parameters

    Returns void

toCentAmount

  • toCentAmount(amount: string | number): string
  • Parameters

    • amount: string | number

    Returns string

Object literals

Const TransactionCodeMap

TransactionCodeMap: object

0

0: TransactionCode = TransactionCode.NOT_DONE

1

1: TransactionCode = TransactionCode.APPROVED

2

2: TransactionCode = TransactionCode.DECLINED

3

3: TransactionCode = TransactionCode.CANCELLED

4

4: TransactionCode = TransactionCode.USER_CANCELLED

5

5: TransactionCode = TransactionCode.RECEIVED_BY_PAYGATE

7

7: TransactionCode = TransactionCode.SETTLEMENT_VOIDED

Const TransactionStatusMap

TransactionStatusMap: object

0

0: TransactionStatusText = TransactionStatusText.NOT_DONE

1

1: TransactionStatusText = TransactionStatusText.APPROVED

2

2: TransactionStatusText = TransactionStatusText.DECLINED

3

3: TransactionStatusText = TransactionStatusText.CANCELLED

4

4: TransactionStatusText = TransactionStatusText.USER_CANCELLED

5

5: TransactionStatusText = TransactionStatusText.RECEIVED_BY_PAYGATE

7

7: TransactionStatusText = TransactionStatusText.SETTLEMENT_VOIDED