1
getAssetsManager(): IAssetsManager
ts
copy

Get an instance of IAssetsManager, which can be used to load and manage Primer's checkout assets.

Returns

IAssetsManager

An instance of `IAssetsManager`.
IAssetsManager

getPaymentMethodAssetPromise<ButtonPaymentMethodAsset | null>

Retrieves the asset for a given PaymentMethodType. Returns a promise that resolves to the asset or null if the asset is not available.

Returns

backgroundColorobject

The background color of the payment method button.
Properties

coloredstringRequired

The color to use when theme is colored.

darkstringRequired

The color to use when theme is dark.

lightstringRequired

The color to use when theme is light.

iconUrlobject

The URL of the payment method icon that is displayed on the payment method button.
Properties

coloredstringRequired

The color to use when theme is colored.

darkstringRequired

The color to use when theme is dark.

lightstringRequired

The color to use when theme is light.

paymentMethodNamestring

The name of the payment method that is displayed on the payment method button. Optional.