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(    val city: String? = null,     val country: String? = null,     val line1: String? = null,     val line2: String? = null,     val postalCode: String? = null,     val state: String? = null) : StripeModel, StripeParamsModel

Model for an owner address object in the Source api.

Link copied to clipboard
data class AddressJapanParams(    val city: String? = null,     val country: String? = null,     val line1: String? = null,     val line2: String? = null,     val postalCode: String? = null,     val state: String? = null,     val town: String? = null) : StripeParamsModel, Parcelable
Link copied to clipboard
data class BankAccountTokenParams @JvmOverloads constructor(    country: String,     currency: String,     accountNumber: String,     accountHolderType: BankAccountTokenParams.Type? = null,     accountHolderName: String? = null,     routingNumber: String? = null) : TokenParams
Link copied to clipboard
object BankAccountTokenParamsFixtures
Link copied to clipboard
data class BinRange(val low: String, val high: String) : StripeModel
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
sealed class ConsumerPaymentDetailsCreateParams : StripeParamsModel, Parcelable

Model for Link Payment Method creation parameters, used for 'consumers/payment_details' endpoint.

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(val bankAccount: BankAccount) : CustomerPaymentSource
Link copied to clipboard
data class CustomerCard(val 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(val source: Source) : CustomerPaymentSource
Link copied to clipboard
data class CvcTokenParams(cvc: String) : TokenParams
Link copied to clipboard
data class DateOfBirth(    val day: Int,     val month: Int,     val 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(val pin: String) : StripeModel
Link copied to clipboard
data class KlarnaSourceParams @JvmOverloads constructor(    val purchaseCountry: String,     val lineItems: List<KlarnaSourceParams.LineItem>,     val customPaymentMethods: Set<KlarnaSourceParams.CustomPaymentMethods> = emptySet(),     val billingEmail: String? = null,     val billingPhone: String? = null,     val billingAddress: Address? = null,     val billingFirstName: String? = null,     val billingLastName: String? = null,     val billingDob: DateOfBirth? = null,     val pageOptions: KlarnaSourceParams.PaymentPageOptions? = null) : StripeParamsModel, Parcelable

Model representing parameters for creating a Klarna Source.

Link copied to clipboard
data class ListPaymentMethodsParams(    customerId: String,     paymentMethodType: PaymentMethod.Type,     limit: Int? = null,     endingBefore: String? = null,     startingAfter: String? = null) : 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(    val id: String?,     val created: Long?,     val liveMode: Boolean,     val type: PaymentMethod.Type?,     val billingDetails: PaymentMethod.BillingDetails? = null,     val customerId: String? = null,     val card: PaymentMethod.Card? = null,     val cardPresent: PaymentMethod.CardPresent? = null,     val fpx: PaymentMethod.Fpx? = null,     val ideal: PaymentMethod.Ideal? = null,     val sepaDebit: PaymentMethod.SepaDebit? = null,     val auBecsDebit: PaymentMethod.AuBecsDebit? = null,     val bacsDebit: PaymentMethod.BacsDebit? = null,     val sofort: PaymentMethod.Sofort? = null,     val upi: PaymentMethod.Upi? = null,     val netbanking: PaymentMethod.Netbanking? = null,     val usBankAccount: PaymentMethod.USBankAccount? = null) : 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(    val address: Address? = null,     val addressKana: AddressJapanParams? = null,     val addressKanji: AddressJapanParams? = null,     val dateOfBirth: DateOfBirth? = null,     val email: String? = null,     val firstName: String? = null,     val firstNameKana: String? = null,     val firstNameKanji: String? = null,     val gender: String? = null,     val idNumber: String? = null,     val lastName: String? = null,     val lastNameKana: String? = null,     val lastNameKanji: String? = null,     val maidenName: String? = null,     val metadata: Map<String, String>? = null,     val phone: String? = null,     val relationship: PersonTokenParams.Relationship? = null,     val ssnLast4: String? = null,     val verification: PersonTokenParams.Verification? = null) : 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(val 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(    val address: Address? = null,     val name: String? = null,     val phone: String? = null) : StripeModel, StripeParamsModel

Model representing a shipping address object

Link copied to clipboard
data class ShippingMethod @JvmOverloads constructor(    val label: String,     val identifier: String,     val amount: Long,     val currency: Currency,     val detail: String? = null) : 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(val items: List<SourceOrderParams.Item>? = null, val shipping: SourceOrderParams.Shipping? = null) : 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
data class WeChat(    val statementDescriptor: String? = null,     val appId: String?,     val nonce: String?,     val packageValue: String?,     val partnerId: String?,     val prepayId: String?,     val sign: String?,     val timestamp: String?,     val qrCodeUrl: String? = null) : StripeModel
Link copied to clipboard
data class WeChatPayNextAction : StripeModel

Functions

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