LpmRepository

class LpmRepository @Inject constructor(resources: Resources?, isFinancialConnectionsAvailable: IsFinancialConnectionsAvailable = DefaultIsFinancialConnectionsAvailable())

This class is responsible for loading the LPM UI Specification for all LPMs, and returning a particular requested LPM.

Constructors

Link copied to clipboard
@Inject
fun LpmRepository(resources: Resources?, isFinancialConnectionsAvailable: IsFinancialConnectionsAvailable = DefaultIsFinancialConnectionsAvailable())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class SupportedPaymentMethod(    val code: PaymentMethodCode,     val requiresMandate: Boolean,     @StringRes val displayNameResource: Int,     @DrawableRes val iconResource: Int,     val tintIconOnSelection: Boolean,     val requirement: PaymentMethodRequirements,     val formSpec: LayoutSpec)

Enum defining all payment method types for which Payment Sheet can collect payment data.

Functions

Link copied to clipboard
fun fromCode(code: String?): LpmRepository.SupportedPaymentMethod?
Link copied to clipboard
fun initialize(inputStream: InputStream?)
Link copied to clipboard
fun values(): Collection<LpmRepository.SupportedPaymentMethod>