Package com.stripe.android.model

Types

AccountParams
Link copied to clipboard
data class AccountParams : TokenParams
Address
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.

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

A representation of a Card API object.

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

A representation of supported card brands and related data

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

Model representing parameters for confirming a PaymentIntent.

ConfirmSetupIntentParams
Link copied to clipboard
data class ConfirmSetupIntentParams : ConfirmStripeIntentParams

Model representing parameters for confirming a SetupIntent.

ConfirmStripeIntentParams
Link copied to clipboard
interface ConfirmStripeIntentParams : StripeParamsModel, Parcelable

Interface for params for confirming a PaymentIntent or SetupIntent.

CountryCode
Link copied to clipboard
data class CountryCode(value: String) : Parcelable
Customer
Link copied to clipboard
data class Customer : StripeModel

Model for a Stripe Customer object

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

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

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

Result of a successful Google Pay Payment Data Request

IssuingCardPin
Link copied to clipboard
data class IssuingCardPin(pin: String) : StripeModel
KlarnaSourceParams
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.

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

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

PaymentMethod
Link copied to clipboard
data class PaymentMethod 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?) : 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.

PaymentMethodCreateParams
Link copied to clipboard
data class PaymentMethodCreateParams : StripeParamsModel, Parcelable

Model for PaymentMethod creation parameters.

PaymentMethodOptionsParams
Link copied to clipboard
sealed class PaymentMethodOptionsParams : StripeParamsModel, Parcelable
PersonTokenParams
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.

RadarSession
Link copied to clipboard
data class RadarSession(id: String) : StripeModel
SetupIntent
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.

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

Model representing a shipping address object

ShippingMethod
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.

Source
Link copied to clipboard
data class Source : StripeModel, StripePaymentSource

Model for a Sources API object.

SourceOrder
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.

SourceOrderParams
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.

SourceParams
Link copied to clipboard
data class SourceParams : StripeParamsModel, Parcelable

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

SourceTypeModel
Link copied to clipboard
sealed class SourceTypeModel : StripeModel

Models for Source type-specific data

StripeFile
Link copied to clipboard
data class StripeFile : StripeModel
StripeFileParams
Link copied to clipboard
data class StripeFileParams(file: File, purpose: StripeFilePurpose)
StripeFilePurpose
Link copied to clipboard
enum StripeFilePurpose : Enum<StripeFilePurpose>

The purpose of the uploaded file. Possible values are business_icon, business_logo, customer_signature, dispute_evidence, identity_document, pci_document, or tax_document_user_upload.

StripeIntent
Link copied to clipboard
interface StripeIntent : StripeModel

An interface for methods available in PaymentIntent and SetupIntent

StripeModel
Link copied to clipboard
interface StripeModel : Parcelable

Model for a Stripe API object.

StripeParamsModel
Link copied to clipboard
interface StripeParamsModel : Parcelable

Model for a Stripe API object creation parameters

StripePaymentSource
Link copied to clipboard
interface StripePaymentSource : Parcelable

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

Token
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.

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

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

TokenParams
Link copied to clipboard
abstract class TokenParams(tokenType: Token.Type, attribution: Set<String>) : StripeParamsModel, Parcelable
WeChat
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
WeChatPayNextAction
Link copied to clipboard
data class WeChatPayNextAction : StripeModel

Functions

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