Package com.stripe.android.model

Types

Link copied to clipboard
data class AccountParams : TokenParams
Link copied to clipboard
data class AccountRange : StripeModel
Link copied to clipboard
data class Address constructor(city: String?, country: String?, line1: String?, line2: String?, postalCode: String?, state: String?) : StripeModel, StripeParamsModel

Model for an owner address object in the Source api.

Link copied to clipboard
data class AddressJapanParams(city: String?, country: String?, line1: String?, line2: String?, postalCode: String?, state: String?, town: String?) : StripeParamsModel, Parcelable
Link copied to clipboard
data class BankAccount : StripeModel, StripePaymentSource
Link copied to clipboard
data class BankAccountTokenParams @JvmOverloads constructor(country: String, currency: String, accountNumber: String, accountHolderType: BankAccountTokenParams.Type?, accountHolderName: String?, routingNumber: String?) : TokenParams
Link copied to clipboard
object BankAccountTokenParamsFixtures
Link copied to clipboard
data class BinRange(low: String, high: String) : StripeModel
Link copied to clipboard
data class Card : StripeModel, StripePaymentSource

A representation of a Card API object.

Link copied to clipboard
enum CardBrand : Enum<CardBrand>

A representation of supported card brands and related data

Link copied to clipboard
enum CardFunding : Enum<CardFunding>
Link copied to clipboard
data class CardParams : TokenParams
Link copied to clipboard
data class ConfirmPaymentIntentParams : ConfirmStripeIntentParams

Model representing parameters for confirming a PaymentIntent.

Link copied to clipboard
data class ConfirmSetupIntentParams : ConfirmStripeIntentParams

Model representing parameters for confirming a SetupIntent.

Link copied to clipboard
interface ConfirmStripeIntentParams : StripeParamsModel, Parcelable

Interface for params for confirming a PaymentIntent or SetupIntent.

Link copied to clipboard
data class ConsumerPaymentDetails : StripeModel
Link copied to clipboard
data class ConsumerSession : StripeModel

The result of a call to Link consumer sign up.

Link copied to clipboard
data class ConsumerSessionLookup : StripeModel

The result of a call to retrieve the ConsumerSession for a Link user.

Link copied to clipboard
data class Customer : StripeModel

Model for a Stripe Customer object

Link copied to clipboard
data class CustomerBankAccount(bankAccount: BankAccount) : CustomerPaymentSource
Link copied to clipboard
data class CustomerCard(card: Card) : CustomerPaymentSource
Link copied to clipboard
sealed class CustomerPaymentSource : StripeModel

Model of the "data" object inside a Customer "source" object.

Link copied to clipboard
data class CustomerSource(source: Source) : CustomerPaymentSource
Link copied to clipboard
data class CvcTokenParams(cvc: String) : TokenParams
Link copied to clipboard
data class DateOfBirth(day: Int, month: Int, year: Int) : StripeParamsModel, Parcelable
Link copied to clipboard
sealed class ExpirationDate
Link copied to clipboard
data class GooglePayResult : Parcelable

Result of a successful Google Pay Payment Data Request

Link copied to clipboard
data class IssuingCardPin(pin: String) : StripeModel
Link copied to clipboard
data class KlarnaSourceParams @JvmOverloads constructor(purchaseCountry: String, lineItems: List<KlarnaSourceParams.LineItem>, customPaymentMethods: Set<KlarnaSourceParams.CustomPaymentMethods>, billingEmail: String?, billingPhone: String?, billingAddress: Address?, billingFirstName: String?, billingLastName: String?, billingDob: DateOfBirth?, pageOptions: KlarnaSourceParams.PaymentPageOptions?) : StripeParamsModel, Parcelable

Model representing parameters for creating a Klarna Source.

Link copied to clipboard
data class ListPaymentMethodsParams(customerId: String, paymentMethodType: PaymentMethod.Type, limit: Int?, endingBefore: String?, startingAfter: String?) : StripeParamsModel, Parcelable
Link copied to clipboard
data class MandateDataParams(type: MandateDataParams.Type) : StripeParamsModel, Parcelable
Link copied to clipboard
enum MicrodepositType : Enum<MicrodepositType>
Link copied to clipboard
data class PaymentIntent : StripeIntent

A PaymentIntent tracks the process of collecting a payment from your customer.

Link copied to clipboard
data class PaymentMethod @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(id: String?, created: Long?, liveMode: Boolean, type: PaymentMethod.Type?, billingDetails: PaymentMethod.BillingDetails?, customerId: String?, card: PaymentMethod.Card?, cardPresent: PaymentMethod.CardPresent?, fpx: PaymentMethod.Fpx?, ideal: PaymentMethod.Ideal?, sepaDebit: PaymentMethod.SepaDebit?, auBecsDebit: PaymentMethod.AuBecsDebit?, bacsDebit: PaymentMethod.BacsDebit?, sofort: PaymentMethod.Sofort?, upi: PaymentMethod.Upi?, netbanking: PaymentMethod.Netbanking?, usBankAccount: PaymentMethod.USBankAccount?) : StripeModel

PaymentMethod objects represent your customer's payment instruments. They can be used with PaymentIntents to collect payments or saved to Customer objects to store instrument details for future payments.

Link copied to clipboard
data class PaymentMethodCreateParams : StripeParamsModel, Parcelable

Model for PaymentMethod creation parameters.

Link copied to clipboard
sealed class PaymentMethodOptionsParams : StripeParamsModel, Parcelable
Link copied to clipboard
data class PersonTokenParams(address: Address?, addressKana: AddressJapanParams?, addressKanji: AddressJapanParams?, dateOfBirth: DateOfBirth?, email: String?, firstName: String?, firstNameKana: String?, firstNameKanji: String?, gender: String?, idNumber: String?, lastName: String?, lastNameKana: String?, lastNameKanji: String?, maidenName: String?, metadata: Map<String, String>?, phone: String?, relationship: PersonTokenParams.Relationship?, ssnLast4: String?, verification: PersonTokenParams.Verification?) : TokenParams

Creates a single-use token that represents the details for a person. Use this when creating or updating persons associated with a Connect account. See the documentation to learn more.

Link copied to clipboard
data class RadarSession(id: String) : StripeModel
Link copied to clipboard
data class SetupIntent : StripeIntent

A SetupIntent guides you through the process of setting up a customer's payment credentials for future payments.

Link copied to clipboard
data class ShippingInformation(address: Address?, name: String?, phone: String?) : StripeModel, StripeParamsModel

Model representing a shipping address object

Link copied to clipboard
data class ShippingMethod @JvmOverloads constructor(label: String, identifier: String, amount: Long, currency: Currency, detail: String?) : StripeModel

Model representing a shipping method in the Android SDK.

Link copied to clipboard
data class Source : StripeModel, StripePaymentSource

Model for a Sources API object.

Link copied to clipboard
data class SourceOrder : StripeModel

Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.

Link copied to clipboard
data class SourceOrderParams @JvmOverloads constructor(items: List<SourceOrderParams.Item>?, shipping: SourceOrderParams.Shipping?) : StripeParamsModel, Parcelable

Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.

Link copied to clipboard
data class SourceParams : StripeParamsModel, Parcelable

Represents a grouping of parameters needed to create a Source object on the server.

Link copied to clipboard
sealed class SourceTypeModel : StripeModel

Models for Source type-specific data

Link copied to clipboard
interface StripeIntent : StripeModel

An interface for methods available in PaymentIntent and SetupIntent

Link copied to clipboard
interface StripeParamsModel : Parcelable

Model for a Stripe API object creation parameters

Link copied to clipboard
interface StripePaymentSource : Parcelable

Represents an object that has an ID field that can be used to create payments with Stripe.

Link copied to clipboard
data class Token : StripeModel, StripePaymentSource

Tokenization is the process Stripe uses to collect sensitive card, bank account details, Stripe account details or personally identifiable information (PII), directly from your customers in a secure manner. A Token representing this information is returned to you to use.

Link copied to clipboard
enum TokenizationMethod : Enum<TokenizationMethod>

If a card number is tokenized, this is the method that was used.

Link copied to clipboard
abstract class TokenParams(tokenType: Token.Type, attribution: Set<String>) : StripeParamsModel, Parcelable
Link copied to clipboard
data class WeChat(statementDescriptor: String?, appId: String?, nonce: String?, packageValue: String?, partnerId: String?, prepayId: String?, sign: String?, timestamp: String?, qrCodeUrl: String?) : StripeModel
Link copied to clipboard
data class WeChatPayNextAction : StripeModel

Functions

Link copied to clipboard
fun StripeIntent.getRequestCode(): Int