Package com.stripe.android

Types

AlipayAuthenticator
Link copied to clipboard
fun interface AlipayAuthenticator

Interface for handling PaymentIntent authentication with the Alipay SDK

ApiResultCallback
Link copied to clipboard
interface ApiResultCallback<in ResultType : StripeModel>

Generic interface for an API operation callback that either returns a result, ResultType, or an Exception

AppInfo
Link copied to clipboard
data class AppInfo : Parcelable

Data for identifying your plug-in or library.

CardUtils
Link copied to clipboard
object CardUtils

Utility class for functions to do with cards.

CustomerSession
Link copied to clipboard
class CustomerSession

Represents a logged-in session of a single Customer.

EphemeralKey
Link copied to clipboard
data class EphemeralKey : StripeModel

Represents an Ephemeral Key that can be used temporarily for API operations that typically require a secret key.

EphemeralKeyProvider
Link copied to clipboard
fun interface EphemeralKeyProvider

Represents an object that can call to a server and create EphemeralKeys.

EphemeralKeyUpdateListener
Link copied to clipboard
interface EphemeralKeyUpdateListener

Represents a listener for Ephemeral Key Update events.

GooglePayConfig
Link copied to clipboard
class GooglePayConfig @JvmOverloads constructor(publishableKey: String, connectedAccountId: String?)

Configuration settings for Google Pay's TokenizationSpecification.

GooglePayJsonFactory
Link copied to clipboard
@Singleton
class GooglePayJsonFactory(googlePayConfig: GooglePayConfig, isJcbEnabled: Boolean)

A factory for generating Google Pay JSON request objects for Google Pay API version 2.0.

IssuingCardPinService
Link copied to clipboard
class IssuingCardPinService

Methods for retrieval / update of a Stripe Issuing card

Logger
Link copied to clipboard
interface Logger
PaymentAuthConfig
Link copied to clipboard
class PaymentAuthConfig

Configuration for authentication mechanisms via StripePaymentController

PaymentConfiguration
Link copied to clipboard
data class PaymentConfiguration constructor(publishableKey: String, stripeAccountId: String?) : Parcelable
PaymentIntentResult
Link copied to clipboard
data class PaymentIntentResult constructor(intent: PaymentIntent, outcomeFromFlow: Int, failureMessage: String?) : StripeIntentResult<PaymentIntent>

A model representing the result of a PaymentIntent confirmation via Stripe.confirmPayment or handling of next actions via Stripe.handleNextActionForPayment.

PaymentSession
Link copied to clipboard
class PaymentSession

Represents a single start-to-finish payment operation.

PaymentSessionConfig
Link copied to clipboard
data class PaymentSessionConfig : Parcelable

Configuration for PaymentSession.

PaymentSessionData
Link copied to clipboard
data class PaymentSessionData : Parcelable

A data class representing the state of the associated PaymentSession.

PayWithGoogleUtils
Link copied to clipboard
object PayWithGoogleUtils

Public utility class for common Pay with Google-related tasks.

SetupIntentResult
Link copied to clipboard
data class SetupIntentResult : StripeIntentResult<SetupIntent>

A model representing the result of a SetupIntent confirmation via Stripe.confirmSetupIntent or handling of next actions via Stripe.handleNextActionForSetupIntent.

Stripe
Link copied to clipboard
class Stripe

Entry-point to the Stripe SDK.

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

Enums of beta headers allowed to be override when initializing Stripe.

StripeError
Link copied to clipboard
data class StripeError : StripeModel, Serializable

A model representing a Stripe Errors object.

StripeIntentResult
Link copied to clipboard
abstract class StripeIntentResult<out T : StripeIntent> : StripeModel

A model representing the result of a StripeIntent confirmation or authentication attempt via Stripe.confirmPayment or Stripe.handleNextActionForPayment

Functions

confirmAlipayPayment
Link copied to clipboard
suspend fun Stripe.confirmAlipayPayment(confirmPaymentIntentParams: ConfirmPaymentIntentParams, authenticator: AlipayAuthenticator, stripeAccountId: String? = this.stripeAccountId): PaymentIntentResult

Confirm and authenticate a PaymentIntent using the Alipay SDK

confirmPaymentIntent
Link copied to clipboard
suspend fun Stripe.confirmPaymentIntent(confirmPaymentIntentParams: ConfirmPaymentIntentParams, idempotencyKey: String? = null): PaymentIntent

Suspend function to confirm a PaymentIntent object.

confirmSetupIntent
Link copied to clipboard
suspend fun Stripe.confirmSetupIntent(confirmSetupIntentParams: ConfirmSetupIntentParams, idempotencyKey: String? = null): SetupIntent

Suspend function to confirm a SetupIntent object.

confirmWeChatPayPayment
Link copied to clipboard
suspend fun Stripe.confirmWeChatPayPayment(confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = this.stripeAccountId): WeChatPayNextAction

Suspend function to confirm a PaymentIntent for WeChat Pay. Extract params from WeChatPayNextAction to pass to WeChat Pay SDK.

createAccountToken
Link copied to clipboard
suspend fun Stripe.createAccountToken(accountParams: AccountParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): Token

Create a Token from a coroutine.

createBankAccountToken
Link copied to clipboard
suspend fun Stripe.createBankAccountToken(bankAccountTokenParams: BankAccountTokenParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): Token

Create a bank account token from a coroutine.

createCardToken
Link copied to clipboard
suspend fun Stripe.createCardToken(cardParams: CardParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): Token

Create a Card token from a coroutine.

createCvcUpdateToken
Link copied to clipboard
suspend fun Stripe.createCvcUpdateToken(@Size(min = 3, max = 4cvc: String, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): Token

Create a CVC update token from a coroutine.

createFile
Link copied to clipboard
suspend fun Stripe.createFile(fileParams: StripeFileParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): StripeFile

Create a StripeFile from a coroutine.

createPaymentMethod
Link copied to clipboard
suspend fun Stripe.createPaymentMethod(paymentMethodCreateParams: PaymentMethodCreateParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): PaymentMethod

Create a PaymentMethod from a coroutine.

createPersonToken
Link copied to clipboard
suspend fun Stripe.createPersonToken(params: PersonTokenParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): Token

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.

createPiiToken
Link copied to clipboard
suspend fun Stripe.createPiiToken(personalId: String, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): Token

Create a PII token from a coroutine.

createRadarSession
Link copied to clipboard
suspend fun Stripe.createRadarSession(): RadarSession

Create a Radar Session.

createSource
Link copied to clipboard
suspend fun Stripe.createSource(sourceParams: SourceParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId): Source

Create a Source from a coroutine.

getAuthenticateSourceResult
Link copied to clipboard
suspend fun Stripe.getAuthenticateSourceResult(requestCode: Int, data: Intent): Source

Get the Source from Intent returned via Activity#onActivityResult(int, int, Intent)}} for Source authentication. (see authenticateSource)

getPaymentIntentResult
Link copied to clipboard
suspend fun Stripe.getPaymentIntentResult(requestCode: Int, data: Intent): PaymentIntentResult

Get the PaymentIntentResult from Intent returned via Activity#onActivityResult(int, int, Intent)}} for PaymentIntent automatic confirmation (see confirmPayment) or manual confirmation (see handleNextActionForPayment})

getSetupIntentResult
Link copied to clipboard
suspend fun Stripe.getSetupIntentResult(requestCode: Int, data: Intent): SetupIntentResult

Get the SetupIntentResult from Intent returned via Activity#onActivityResult(int, int, Intent)}} for SetupIntentResult confirmation. (see confirmSetupIntent)

retrievePaymentIntent
Link copied to clipboard
suspend fun Stripe.retrievePaymentIntent(clientSecret: String, stripeAccountId: String? = this.stripeAccountId): PaymentIntent

Retrieve a PaymentIntent from a coroutine.

retrieveSetupIntent
Link copied to clipboard
suspend fun Stripe.retrieveSetupIntent(clientSecret: String, stripeAccountId: String? = this.stripeAccountId): SetupIntent

Retrieve a SetupIntent asynchronously.

retrieveSource
Link copied to clipboard
suspend fun Stripe.retrieveSource(@Size(min = 1sourceId: String, @Size(min = 1clientSecret: String, stripeAccountId: String? = this.stripeAccountId): Source

Retrieve a Source from a coroutine.