⚠️

This method is deprecated. Use getPaymentMethodResource instead.

Call this method to retrieve assets for a given paymentMethodType.

1
async getPaymentMethodAsset(paymentMethodType: string): Promise<Asset>
typescript
copy

Parameters

paymentMethodType
StringRequired
The payment method type to return an asset for

Returns

Asset
paymentMethodType
stringRequired

A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodLoad callback.

paymentMethodName
stringRequired
A user friendly English localized string identifier for the payment method
colored?
string
dark?
string
light?
string