Web SDK
- Getting started
- Primer
- PrimerCheckout
- PrimerHeadlessCheckout
- CheckoutStyle
- Common objects
- Constants
getAssetsManager
getAssetsManager(): IAssetsManager
Get an instance of IAssetsManager
, which can be used to load and manage Primer’s checkout assets.
Returns
Hide child attributes
Hide child attributes
An instance of IAssetsManager
.
Hide IAssetsManager
Hide IAssetsManager
Retrieves the asset for a given PaymentMethodType. Returns a promise that
resolves to the asset or null
if the asset is not available.
Show Parameters
Show Parameters
One of PaymentMethodType.
Show Returns
Show Returns
⚠️ This property is Deprecated. Please use buttonText or displayName instead.
The name of the payment method that is displayed on the payment method button. Optional.
The name of the payment method that is displayed on the payment method button. This will be null for payment methods without a button title. Optional.
The name of the payment method. Optional.
Retrieves the asset for a given card network. Returns a promise that resolves to the asset object.
Show Parameters
Show Parameters
The network value, for example: VISA
, MASTERCARD
.