Skip to content

Express Docs v0.1.0


Express Docs / ExpressButtonsInstance

Interface: ExpressButtonsInstance

Defined in: src/types.ts:1533

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:1543

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:1547

Removes all rendered payment buttons and cleans up provider resources.

Returns

void


teardownProvider()

teardownProvider(providerProtocolType, paymentMethodType): void

Defined in: src/types.ts:1554

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

CollanaPay SDK Documentation