Package com.stripe.android.model

Types

AccountParams
Link copied to clipboard
Create an account tokenCreates a single-use token that wraps a user’s legal entity information. Use this when creating or updating a Connect account. See the account tokens documentation to learn more.
data class AccountParams : TokenParams
Address
Link copied to clipboard
Model for an owner address object in the Source api.
data class Address : StripeModel, StripeParamsModel
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
A representation of a Card API object.
data class Card : TokenParams, StripeModel, StripePaymentSource
CardBrand
Link copied to clipboard
A representation of supported card brands and related data
enum CardBrand : Enum
CardFunding
Link copied to clipboard
enum CardFunding : Enum
CardParams
Link copied to clipboard
data class CardParams : TokenParams
ConfirmPaymentIntentParams
Link copied to clipboard
Model representing parameters for confirming a PaymentIntent.
data class ConfirmPaymentIntentParams : ConfirmStripeIntentParams
ConfirmSetupIntentParams
Link copied to clipboard
Model representing parameters for confirming a SetupIntent.
data class ConfirmSetupIntentParams : ConfirmStripeIntentParams, Parcelable
ConfirmStripeIntentParams
Link copied to clipboard
Interface for params for confirming a PaymentIntent or SetupIntent.See ConfirmPaymentIntentParams and ConfirmSetupIntentParams
interface ConfirmStripeIntentParams : StripeParamsModel
Customer
Link copied to clipboard
Model for a Stripe Customer object
data class Customer : StripeModel
CustomerSource
Link copied to clipboard
Model of the "data" object inside a Customer "source" object.
data class CustomerSource : StripeModel, StripePaymentSource
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
Result of a successful Google Pay Payment Data Request
data class GooglePayResult : Parcelable
IssuingCardPin
Link copied to clipboard
data class IssuingCardPin(pin: String) : StripeModel
KlarnaSourceParams
Link copied to clipboard
Model representing parameters for creating a Klarna Source.See Klarna Payments with SourcesNote: The optional fields billingEmail, billingPhone, billingAddress, billingFirstName, billingLastName, and billingDob can be provided to skip Klarna's customer information form.If this information is missing, Klarna will prompt the customer for these values during checkout. Be careful with this option: If the provided information is invalid, Klarna may reject the transaction without giving the customer a chance to correct it.
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
MandateDataParams
Link copied to clipboard
data class MandateDataParams(type: MandateDataParams.Type) : StripeParamsModel, Parcelable
PaymentIntent
Link copied to clipboard
A PaymentIntent tracks the process of collecting a payment from your customer.
data class PaymentIntent : StripeIntent
PaymentMethod
Link copied to clipboard
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.Related guides: Payment Methods and More Payment Scenarios.See PaymentMethodCreateParams for PaymentMethod creation
data class PaymentMethod : StripeModel
PaymentMethodCreateParams
Link copied to clipboard
Model for PaymentMethod creation parameters.Used by Stripe.createPaymentMethodSynchronousSee Create a PaymentMethod.See PaymentMethod for API object.
data class PaymentMethodCreateParams : StripeParamsModel, Parcelable
PaymentMethodOptionsParams
Link copied to clipboard
sealed class PaymentMethodOptionsParams : StripeParamsModel, Parcelable
PersonTokenParams
Link copied to clipboard
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.See Create a person token
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
SetupIntent
Link copied to clipboard
A SetupIntent guides you through the process of setting up a customer's payment credentials for future payments.See the API Reference for SetupIntents for more information.
data class SetupIntent : StripeIntent
ShippingInformation
Link copied to clipboard
Model representing a shipping address object
data class ShippingInformation(address: Address?,name: String?,phone: String?) : StripeModel, StripeParamsModel
ShippingMethod
Link copied to clipboard
Model representing a shipping method in the Android SDK.
data class ShippingMethod @JvmOverloads() constructor(label: String,identifier: String,amount: Long,currency: Currency,detail: String?) : StripeModel
Source
Link copied to clipboard
Model for a Sources API object.See Sources API Reference.
data class Source : StripeModel, StripePaymentSource
SourceOrder
Link copied to clipboard
Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.API reference
data class SourceOrder : StripeModel
SourceOrderParams
Link copied to clipboard
Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.API reference
data class SourceOrderParams @JvmOverloads() constructor(items: List<SourceOrderParams.Item>?,shipping: SourceOrderParams.Shipping?) : StripeParamsModel, Parcelable
SourceParams
Link copied to clipboard
Represents a grouping of parameters needed to create a Source object on the server.
class SourceParams : StripeParamsModel
SourceTypeModel
Link copied to clipboard
Models for Source type-specific data
sealed class SourceTypeModel : StripeModel
StripeFile
Link copied to clipboard
data class StripeFile : StripeModel
StripeFileParams
Link copied to clipboard
Create a fileTo upload a file to Stripe, you’ll need to send a request of type multipart/form-data. The request should contain the file you would like to upload, as well as the parameters for creating a file.
data class StripeFileParams(file: File,purpose: StripeFilePurpose)
StripeFilePurpose
Link copied to clipboard
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.purpose
enum StripeFilePurpose : Enum
StripeIntent
Link copied to clipboard
An interface for methods available in PaymentIntent and SetupIntent
interface StripeIntent : StripeModel
StripeModel
Link copied to clipboard
Model for a Stripe API object.
interface StripeModel : Parcelable
StripeParamsModel
Link copied to clipboard
Model for a Stripe API object creation parameters
interface StripeParamsModel
StripePaymentSource
Link copied to clipboard
Represents an object that has an ID field that can be used to create payments with Stripe.
interface StripePaymentSource : Parcelable
Token
Link copied to clipboard
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.
data class Token : StripeModel, StripePaymentSource
TokenizationMethod
Link copied to clipboard
If a card number is tokenized, this is the method that was used.See tokenization_method
enum TokenizationMethod : Enum
TokenParams
Link copied to clipboard
abstract class TokenParams(tokenType: Token.Type,attribution: Set<String>) : StripeParamsModel, Parcelable
WeChat
Link copied to clipboard
data class WeChat : StripeModel