Documentation Index Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Call this method to retrieve assets for all the payment methods available on the current client session.
@Deprecated (
message = "This method is deprecated." ,
replaceWith = ReplaceWith ( "getPaymentMethodResources(context)" )
)
@Throws (SdkUninitializedException:: class )
@JvmStatic
fun getPaymentMethodAssets (context: Context ): List < PrimerPaymentMethodAsset >
Parameters
Android Context of your Activity or Fragment.
Returns
List<PrimerPaymentMethodAsset>
A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodsLoaded callback. A user friendly English localized string identifier for the payment method.
paymentMethodLogo
PrimerPaymentMethodLogo
required
A Drawable to be used anywhere.
A Drawable to be used on dark theme.
A Drawable to be used on light theme.
paymentMethodBackgroundColor
PrimerPaymentMethodBackgroundColor
required
A @ColorInt to be used anywhere.
A @ColorInt to be used on dark theme.
A @ColorInt to be used on light theme.
Throws
SdkUninitializedException
An exception that will be thrown in case the SDK was not initialized properly.
Before calling any of the manager’s method, the SDK must be initialized using start method.