LpmRepository
This class is responsible for loading the LPM UI Specification for all LPMs, and returning a particular requested LPM.
This is not injected as a singleton because when the activity is killed the FormViewModel and SheetViewModel don't share the Dagger graph and the repository is not a singleton. Additionally every time you create a new form view model a new repository is created and thus needs to be initialized.
Constructors
Types
Link copied to clipboard
data class LpmRepositoryArguments(val resources: Resources?, val isFinancialConnectionsAvailable: IsFinancialConnectionsAvailable = DefaultIsFinancialConnectionsAvailable())
Content copied to clipboard
Link copied to clipboard
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)
Content copied to clipboard
Enum defining all payment method types for which Payment Sheet can collect payment data.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard