Skip to main content

tripay-node

Classes

Interfaces

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

NameTypeDescription
codestringThe code to check.

Returns

code is PaymentMethod

Returns true if the code is a valid payment method, otherwise false.

Defined in

src/payment/payment.helper.ts:9