Package-level declarations

Types

Link copied to clipboard

Superclass for starting Stripe activities.

Link copied to clipboard

Activity used to display a AddPaymentMethodView and receive the resulting PaymentMethod in the Activity#onActivityResult(int, int, Intent) of the launching Activity.

Link copied to clipboard

A class to start AddPaymentMethodActivity. Arguments for the activity can be specified with Args and constructed with Args.Builder.

Link copied to clipboard

A representation of an Android component (i.e. ComponentActivity or Fragment) that can start an activity. ActivityHost and FragmentHost hold references to Android components, so they should only be used in a lifecycle-aware scope.

Link copied to clipboard
class BecsDebitBanks(banks: List<BecsDebitBanks.Bank>, shouldIncludeTestBank: Boolean = true)
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

Configure AddPaymentMethodActivity's UI and validation logic for billing address fields

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

An TextInputLayout that can show a loading indicator.

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

A subclass of TextInputLayout that programmatically wraps a styleable AutoCompleteTextView, which configures a CountryAdapter to display list of countries in its popup.

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

Activity containing a two-part payment flow that allows users to provide a shipping address as well as select a shipping method.

Link copied to clipboard
class PaymentFlowViewPager @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, isSwipingAllowed: Boolean = false) : ViewPager
Link copied to clipboard

An activity that allows a customer to select from their attached payment methods, or add a new one via AddPaymentMethodActivity.

Link copied to clipboard

A class to start PaymentMethodsActivity. Arguments for the activity can be specified with Args and constructed with Args.Builder.

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

Validation rules for postal codes

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