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
Name | Type | Description |
---|---|---|
options | BaseOptions | The options for the class. |
Defined in
Properties
request
• Private
request: HTTPRequest
Defined in
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
Parameters
Name | Type | Description |
---|---|---|
params | PaymentInstructionParams | The parameters for retrieving payment instructions. |
Returns
Promise
<IPaymentInstruction
[]>
- A promise that resolves to an array of payment instructions.