Package com.stripe.android.view

Types

ActivityStarter
Link copied to clipboard
abstract class ActivityStarter<TargetActivityType : Activity, ArgsType : ActivityStarter.Args>

Superclass for starting Stripe activities.

AddPaymentMethodActivity
Link copied to clipboard
class AddPaymentMethodActivity : StripeActivity

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

AddPaymentMethodActivityStarter
Link copied to clipboard

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

AuthActivityStarter
Link copied to clipboard
fun interface AuthActivityStarter<ArgsType>
AuthActivityStarterHost
Link copied to clipboard
sealed class AuthActivityStarterHost

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.

BecsDebitMandateAcceptanceTextFactory
Link copied to clipboard
class BecsDebitMandateAcceptanceTextFactory(context: Context)

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

BecsDebitMandateAcceptanceTextView
Link copied to clipboard
class BecsDebitMandateAcceptanceTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : AppCompatTextView
BecsDebitWidget
Link copied to clipboard
class BecsDebitWidget @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int, companyName: String) : FrameLayout

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

BillingAddressFields
Link copied to clipboard
enum BillingAddressFields : Enum<BillingAddressFields>

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

CardFormView
Link copied to clipboard
class CardFormView @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : 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.

CardInputListener
Link copied to clipboard
interface CardInputListener

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.

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

A single-line card input widget.

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

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

CardNumberEditText
Link copied to clipboard
class CardNumberEditText : StripeEditText

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

CardNumberTextInputLayout
Link copied to clipboard
class CardNumberTextInputLayout : TextInputLayout

An TextInputLayout that can show a loading indicator.

CardValidCallback
Link copied to clipboard
fun interface CardValidCallback

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

Country
Link copied to clipboard
data class Country(code: CountryCode, name: String)
CountryTextInputLayout
Link copied to clipboard
class CountryTextInputLayout : TextInputLayout

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

CountryUtils
Link copied to clipboard
object CountryUtils
CvcEditText
Link copied to clipboard
class CvcEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : StripeEditText

A StripeEditText for CVC input.

ExpiryDateEditText
Link copied to clipboard
class ExpiryDateEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : StripeEditText

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

KeyboardController
Link copied to clipboard
class KeyboardController(activity: Activity)
PaymentAuthWebViewActivity
Link copied to clipboard
class PaymentAuthWebViewActivity : AppCompatActivity
PaymentFlowActivity
Link copied to clipboard
class PaymentFlowActivity : StripeActivity

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

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

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

PaymentMethodsActivityStarter
Link copied to clipboard

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

PaymentUtils
Link copied to clipboard
object PaymentUtils
PostalCodeEditText
Link copied to clipboard
class PostalCodeEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : StripeEditText
PostalCodeValidator
Link copied to clipboard
class PostalCodeValidator

Validation rules for postal codes

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

A widget used to collect address data from a user.

StripeActivity
Link copied to clipboard
abstract class StripeActivity : AppCompatActivity

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

StripeEditText
Link copied to clipboard
open class StripeEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : 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.