JS API Reference

Class: Payments

payment/payments.Payments

Hierarchy

  • EventTarget

    Payments

Table of contents

Constructors

Methods

Constructors

constructor

new Payments(yagnaApi, options?): Payments

Parameters

NameType
yagnaApiYagnaApi
options?PaymentOptions

Returns

Payments

Overrides

EventTarget.constructor

Defined in

src/payment/payments.ts:28

Methods

create

create(yagnaApi, options?): Promise<Payments>

Parameters

NameType
yagnaApiYagnaApi
options?PaymentOptions

Returns

Promise<Payments>

Defined in

src/payment/payments.ts:24


unsubscribe

unsubscribe(): Promise<unknown>

Unsubscribe from collecting payment events. An error will be thrown when the unsubscribe timeout expires.

Returns

Promise<unknown>

Defined in

src/payment/payments.ts:42