Package-level declarations

Types

Link copied to clipboard

A class to create BECS Debit Mandate Agreement text for the BecsDebitWidget.

Link copied to clipboard
class BecsDebitMandateAcceptanceTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.textViewStyle) : AppCompatTextView
Link copied to clipboard
class BecsDebitWidget @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, companyName: String = "") : FrameLayout

A form for accepting a customer's BECS account information.

Link copied to clipboard
class CardFormView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : LinearLayout

A view to collect credit card information and provide CardParams for API invocation. The postal code field adjust its form accordingly based on currently selected country.

Link copied to clipboard

Represents a listener for card input events. Note that events are not one-time events. For instance, a user can "complete" the CVC many times by deleting and re-entering the value.

Link copied to clipboard
class CardInputWidget @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : LinearLayout, CardWidget

A single-line card input widget.

Link copied to clipboard
class CardMultilineWidget @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, shouldShowPostalCode: Boolean = CardWidget.DEFAULT_POSTAL_CODE_ENABLED) : LinearLayout, CardWidget

A multiline card input widget that uses Material Components for Android.

Link copied to clipboard

A StripeEditText that handles spacing out the digits of a credit card.

Link copied to clipboard
fun interface CardValidCallback

An interface for a callback object that will be called when the user's input changes.

Link copied to clipboard
class CvcEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = AppCompatR.attr.editTextStyle) : StripeEditText

A StripeEditText for CVC input.

Link copied to clipboard
class ExpiryDateEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = AppCompatR.attr.editTextStyle) : StripeEditText

An EditText that handles putting numbers around a central divider character.

Link copied to clipboard
Link copied to clipboard
class PostalCodeEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = AppCompatR.attr.editTextStyle) : StripeEditText
Link copied to clipboard
class ShippingInfoWidget @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : LinearLayout

A widget used to collect address data from a user.

Link copied to clipboard

Provides a toolbar, save button, and loading states for the save button.

Link copied to clipboard
open class StripeEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = AppCompatR.attr.editTextStyle) : TextInputEditText

Extension of TextInputEditText that listens for users pressing the delete key when there is no text present. Google has actually made this somewhat difficult, but we listen here for hardware key presses, older Android soft keyboard delete presses, and modern Google Keyboard delete key presses.

Functions

Link copied to clipboard
fun selectCardBrandToDisplay(userSelectedBrand: CardBrand?, possibleBrands: List<CardBrand>, merchantPreferredBrands: List<CardBrand>): CardBrand