Skip to content

Express Docs v0.1.0


Express Docs / ExpressButtonsInstance

Interface: ExpressButtonsInstance ​

Defined in: src/types.ts:1599

Handle returned by ExpressButtons(). Use it to render, tear down, or selectively remove individual payment buttons.

Methods ​

render() ​

render(): Promise<void>

Defined in: src/types.ts:1609

Renders all configured provider buttons into their containers.

Returns ​

Promise<void>

A promise that resolves when all providers have settled.

Remarks ​

Provider rendering is independent — one provider's failure does not block others. Failures are surfaced through onError.


teardown() ​

teardown(): void

Defined in: src/types.ts:1613

Removes all rendered payment buttons and cleans up provider resources.

Returns ​

void


teardownProvider() ​

teardownProvider(providerProtocolType, paymentMethodType): void

Defined in: src/types.ts:1620

Removes a single provider's button and cleans up its resources.

Parameters ​

providerProtocolType ​

ProviderProtocolType

The protocol of the provider to remove.

paymentMethodType ​

PaymentMethodType

The payment method of the provider to remove.

Returns ​

void

collana pay SDK Documentation