Skip to main content

Class: Payment

The class that contains methods to obtain information about payments.

Constructors​

constructor​

• new Payment(options)

Constructs a new instance of the class.

Parameters​

NameTypeDescription
optionsBaseOptionsThe options for the class.

Defined in​

src/payment/payment.ts:21

Properties​

request​

• Private request: HTTPRequest

Defined in​

src/payment/payment.ts:15

Methods​

instructions​

▸ instructions(params): Promise<IPaymentInstruction[]>

Fetching payment instructions from each channel.

Throws

Throws an error if the method parameter is provided but is not a valid payment method.

See

Payment Instructions - Tripay

Parameters​

NameTypeDescription
paramsPaymentInstructionParamsThe parameters for retrieving payment instructions.

Returns​

Promise<IPaymentInstruction[]>

  • A promise that resolves to an array of payment instructions.

Defined in​

src/payment/payment.ts:36