Search
Preparing search index...
The search index is not available
Documentation
GitHub
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
util
Globals
{"Types":"_types_","API Client":"_client_","Common Utils":"_util_","Express Middleware":"_middleware_"}
Module util
Functions
generatePayGateChecksum
getTestCards
getTestCardsByTransactionType
getTransactionInfo
redirectBrowser
removeAllNonValuedProperties
toCentAmount
Object literals
TransactionCodeMap
TransactionStatusMap
Functions
generate
Pay
Gate
Checksum
generate
Pay
Gate
Checksum
(
data
:
UntypedObject
, encryptionKey
:
string
)
:
string
Parameters
data:
UntypedObject
encryptionKey:
string
Returns
string
get
Test
Cards
get
Test
Cards
(
)
:
CreditCard
[]
Returns
CreditCard
[]
get
Test
Cards
ByTransaction
Type
get
Test
Cards
ByTransaction
Type
(
)
:
CreditCard
[]
Returns
CreditCard
[]
get
Transaction
Info
get
Transaction
Info
(
paymentStatus
:
PaymentStatus
)
:
TransactionStatus
Parameters
paymentStatus:
PaymentStatus
Returns
TransactionStatus
redirect
Browser
redirect
Browser
(
uri
:
string
, params
:
any
)
:
void
Parameters
uri:
string
params:
any
Returns
void
remove
All
Non
Valued
Properties
remove
All
Non
Valued
Properties
(
obj
:
UntypedObject
)
:
void
Parameters
obj:
UntypedObject
Returns
void
to
Cent
Amount
to
Cent
Amount
(
amount
:
string
|
number
)
:
string
Parameters
amount:
string
|
number
Returns
string
Object literals
Const
Transaction
Code
Map
Transaction
Code
Map
:
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
Transaction
Status
Map
Transaction
Status
Map
:
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
generate
Pay
Gate
Checksum
get
Test
Cards
get
Test
Cards
ByTransaction
Type
get
Transaction
Info
redirect
Browser
remove
All
Non
Valued
Properties
to
Cent
Amount
Transaction
Code
Map
Transaction
Status
Map