Call this method to retrieve resources for a given paymentMethodType
.
123456
@Throws(SdkUninitializedException::class)@JvmStaticfun getPaymentMethodResource( context: Context, paymentMethodType: String): PrimerPaymentMethodResource
kotlin
copy
Parameters
paymentMethodType
StringRequiredA unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodsLoaded callback.
Returns
PrimerPaymentMethodResource
paymentMethodType
StringRequiredA unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodsLoaded callback.
paymentMethodName
StringRequiredpaymentMethodLogo
PrimerPaymentMethodLogoRequiredpaymentMethodBackgroundColor
PrimerPaymentMethodBackgroundColorRequiredpaymentMethodType
StringRequiredA unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodsLoaded callback.
paymentMethodName
StringRequiredcreateView
createView: (Context) -> ViewRequiredThrows
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.