tripay-node
Classes
Interfaces
- BaseOptions
- ErrorResponse
- IBaseTransaction
- ICallback
- IClosedPaymentParams
- IClosedTransaction
- IClosedTransactionDetail
- IFeeCalc
- IOpenPaymentListParams
- IOpenPaymentParams
- IOpenTransaction
- IOpenTransactionList
- IOpenTransactionLists
- IOrderItem
- IPaymentChannel
- IPaymentInstruction
- ITransaction
- ITransactions
- ITripayPagination
- ITripayResponse
- PaymentInstructionParams
- RequestOptions
- TransactionOptions
- TransactionParams
Type Aliases
HTTPBody
Ƭ HTTPBody: Record<string, any>
Defined in
src/request/request.interface.ts:36
HTTPParams
Ƭ HTTPParams: Record<string, string | readonly string[] | undefined | null | number | boolean>
Defined in
src/request/request.interface.ts:32
PaymentMethod
Ƭ PaymentMethod: "MYBVA" | "PERMATAVA" | "BNIVA" | "BRIVA" | "MANDIRIVA" | "BCAVA" | "SMSVA" | "MUAMALATVA" | "CIMBVA" | "BSIVA" | "OCBCVA" | "DANAMONVA" | "BNCVA" | "BSIVAOP" | "ALFAMART" | "INDOMARET" | "ALFAMIDI" | "OVO" | "QRIS" | "QRISC" | "QRIS2" | "SHOPEEPAY" | "QRIS_SHOPEEPAY"
Represents the available payment methods.
Defined in
src/payment/payment.interface.ts:51
PaymentStatus
Ƭ PaymentStatus: "UNPAID" | "PAID" | "REFUND" | "EXPIRED" | "FAILED"
The possible payment statuses.
Defined in
src/payment/payment.interface.ts:46
Functions
isPaymentMethod
▸ isPaymentMethod(code): code is PaymentMethod
Checks if the given code is a valid payment method.
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The code to check. |
Returns
code is PaymentMethod
Returns true if the code is a valid payment method, otherwise false.