JS API Reference
Class: Payments
payment/payments.Payments
Hierarchy
EventTarget↳
Payments
Table of contents
Constructors
Methods
Constructors
constructor
• new Payments(yagnaApi, options?): Payments
Parameters
| Name | Type |
|---|---|
yagnaApi | YagnaApi |
options? | PaymentOptions |
Returns
Overrides
EventTarget.constructor
Defined in
Methods
create
▸ create(yagnaApi, options?): Promise<Payments>
Parameters
| Name | Type |
|---|---|
yagnaApi | YagnaApi |
options? | PaymentOptions |
Returns
Promise<Payments>
Defined in
unsubscribe
▸ unsubscribe(): Promise<unknown>
Unsubscribe from collecting payment events. An error will be thrown when the unsubscribe timeout expires.
Returns
Promise<unknown>