Skip navigation links
A B C D F G H I J L M N O P R S T U V 

A

addressCity(String) - Method in class com.stripe.android.model.Card.Builder
 
addressCountry(String) - Method in class com.stripe.android.model.Card.Builder
 
addressLine1(String) - Method in class com.stripe.android.model.Card.Builder
 
addressLine2(String) - Method in class com.stripe.android.model.Card.Builder
 
addressState(String) - Method in class com.stripe.android.model.Card.Builder
 
addressZip(String) - Method in class com.stripe.android.model.Card.Builder
 
AMERICAN_EXPRESS - Static variable in class com.stripe.android.model.Card
 
APIConnectionException - Exception in com.stripe.android.exception
An Exception that represents a failure to connect to Stripe's API.
APIConnectionException(String) - Constructor for exception com.stripe.android.exception.APIConnectionException
 
APIConnectionException(String, Throwable) - Constructor for exception com.stripe.android.exception.APIConnectionException
 
APIException - Exception in com.stripe.android.exception
An Exception that represents an internal problem with Stripe's servers.
APIException(String, String, Integer, Throwable) - Constructor for exception com.stripe.android.exception.APIException
 
asCardBrand(String) - Static method in class com.stripe.android.util.StripeTextUtils
Converts an unchecked String value to a Card.CardBrand or null.
asFundingType(String) - Static method in class com.stripe.android.util.StripeTextUtils
Converts an unchecked String value to a Card.FundingType or null.
asTokenType(String) - Static method in class com.stripe.android.util.StripeTextUtils
Converts an unchecked String value to a Token.TokenType or null.
AuthenticationException - Exception in com.stripe.android.exception
An Exception that represents a failure to authenticate yourself to the server.
AuthenticationException(String, String, Integer) - Constructor for exception com.stripe.android.exception.AuthenticationException
 

B

brand(String) - Method in class com.stripe.android.model.Card.Builder
 
build() - Method in class com.stripe.android.model.Card.Builder
Generate a new Card object based on the arguments held by this Builder.
build() - Method in class com.stripe.android.net.RequestOptions.RequestOptionsBuilder
Construct the RequestOptions object.
Builder(String, Integer, Integer, String) - Constructor for class com.stripe.android.model.Card.Builder
Constructor with most common Card fields.
builder(String) - Static method in class com.stripe.android.net.RequestOptions
Static accessor for the RequestOptions.RequestOptionsBuilder class.

C

calendarInstance - Variable in class com.stripe.android.time.Clock
 
Card - Class in com.stripe.android.model
A model object representing a Card in the Android SDK.
Card(String, Integer, Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String) - Constructor for class com.stripe.android.model.Card
Card constructor with all available fields.
Card(String, Integer, Integer, String, String, String, String, String, String, String, String, String) - Constructor for class com.stripe.android.model.Card
Convenience constructor with address and currency.
Card(String, Integer, Integer, String) - Constructor for class com.stripe.android.model.Card
Convenience constructor for a Card object with a minimum number of inputs.
Card.Builder - Class in com.stripe.android.model
Builder class for a Card model.
Card.CardBrand - Annotation Type in com.stripe.android.model
 
Card.FundingType - Annotation Type in com.stripe.android.model
 
CardException - Exception in com.stripe.android.exception
An Exception indicating that there is a problem with a Card used for a request.
CardException(String, String, String, String, String, String, Integer, Throwable) - Constructor for exception com.stripe.android.exception.CardException
 
CardParser - Class in com.stripe.android.net
A helper class for parsing Card objects returned from the server.
CardParser() - Constructor for class com.stripe.android.net.CardParser
 
CHARSET - Static variable in class com.stripe.android.net.StripeApiHandler
 
Clock - Class in com.stripe.android.time
 
Clock() - Constructor for class com.stripe.android.time.Clock
 
com.stripe.android - package com.stripe.android
 
com.stripe.android.exception - package com.stripe.android.exception
 
com.stripe.android.model - package com.stripe.android.model
 
com.stripe.android.net - package com.stripe.android.net
 
com.stripe.android.time - package com.stripe.android.time
 
com.stripe.android.util - package com.stripe.android.util
 
country(String) - Method in class com.stripe.android.model.Card.Builder
 
createSocket(Socket, String, int, boolean) - Method in class com.stripe.android.net.StripeSSLSocketFactory
 
createSocket(String, int) - Method in class com.stripe.android.net.StripeSSLSocketFactory
 
createSocket(String, int, InetAddress, int) - Method in class com.stripe.android.net.StripeSSLSocketFactory
 
createSocket(InetAddress, int) - Method in class com.stripe.android.net.StripeSSLSocketFactory
 
createSocket(InetAddress, int, InetAddress, int) - Method in class com.stripe.android.net.StripeSSLSocketFactory
 
createToken(Map<String, Object>, RequestOptions) - Static method in class com.stripe.android.net.StripeApiHandler
Create a Token using the input card parameters.
createToken(Card, TokenCallback) - Method in class com.stripe.android.Stripe
The simplest way to create a token, using a Card and TokenCallback.
createToken(Card, String, TokenCallback) - Method in class com.stripe.android.Stripe
Call to create a Token with a specific public key.
createToken(Card, Executor, TokenCallback) - Method in class com.stripe.android.Stripe
Call to create a Token on a specific Executor.
createToken(Card, String, Executor, TokenCallback) - Method in class com.stripe.android.Stripe
Call to create a Token with the publishable key and Executor specified.
createTokenSynchronous(Card) - Method in class com.stripe.android.Stripe
Blocking method to create a Token.
createTokenSynchronous(Card, String) - Method in class com.stripe.android.Stripe
Blocking method to create a Token.
currency(String) - Method in class com.stripe.android.model.Card.Builder
 

D

DateUtils - Class in com.stripe.android.util
 
DateUtils() - Constructor for class com.stripe.android.util.DateUtils
 
DINERS_CLUB - Static variable in class com.stripe.android.model.Card
 
DISCOVER - Static variable in class com.stripe.android.model.Card
 

F

fingerprint(String) - Method in class com.stripe.android.model.Card.Builder
 
freeze(Calendar) - Static method in class com.stripe.android.time.FrozenClock
 
FrozenClock - Class in com.stripe.android.time
 
FrozenClock() - Constructor for class com.stripe.android.time.FrozenClock
 
funding(String) - Method in class com.stripe.android.model.Card.Builder
 
FUNDING_CREDIT - Static variable in class com.stripe.android.model.Card
 
FUNDING_DEBIT - Static variable in class com.stripe.android.model.Card
 
FUNDING_PREPAID - Static variable in class com.stripe.android.model.Card
 
FUNDING_UNKNOWN - Static variable in class com.stripe.android.model.Card
 

G

getAddressCity() - Method in class com.stripe.android.model.Card
 
getAddressCountry() - Method in class com.stripe.android.model.Card
 
getAddressLine1() - Method in class com.stripe.android.model.Card
 
getAddressLine2() - Method in class com.stripe.android.model.Card
 
getAddressState() - Method in class com.stripe.android.model.Card
 
getAddressZip() - Method in class com.stripe.android.model.Card
 
getApiVersion() - Method in class com.stripe.android.net.RequestOptions
 
getBrand() - Method in class com.stripe.android.model.Card
Gets the Card.brand of this card.
getCalendarInstance() - Static method in class com.stripe.android.time.Clock
 
getCard() - Method in class com.stripe.android.model.Token
 
getCharge() - Method in exception com.stripe.android.exception.CardException
 
getCode() - Method in exception com.stripe.android.exception.CardException
 
getCountry() - Method in class com.stripe.android.model.Card
 
getCreated() - Method in class com.stripe.android.model.Token
 
getCurrency() - Method in class com.stripe.android.model.Card
 
getCVC() - Method in class com.stripe.android.model.Card
 
getDeclineCode() - Method in exception com.stripe.android.exception.CardException
 
getDefaultCipherSuites() - Method in class com.stripe.android.net.StripeSSLSocketFactory
 
getExpMonth() - Method in class com.stripe.android.model.Card
 
getExpYear() - Method in class com.stripe.android.model.Card
 
getFingerprint() - Method in class com.stripe.android.model.Card
 
getFunding() - Method in class com.stripe.android.model.Card
 
getId() - Method in class com.stripe.android.model.Token
 
getIdempotencyKey() - Method in class com.stripe.android.net.RequestOptions
 
getInstance() - Static method in class com.stripe.android.time.Clock
 
getLast4() - Method in class com.stripe.android.model.Card
 
getLivemode() - Method in class com.stripe.android.model.Token
 
getName() - Method in class com.stripe.android.model.Card
 
getNumber() - Method in class com.stripe.android.model.Card
 
getParam() - Method in exception com.stripe.android.exception.CardException
 
getParam() - Method in exception com.stripe.android.exception.InvalidRequestException
 
getPublishableApiKey() - Method in class com.stripe.android.net.RequestOptions
 
getRequestId() - Method in exception com.stripe.android.exception.StripeException
 
getResponseBody() - Method in class com.stripe.android.net.StripeResponse
 
getResponseCode() - Method in class com.stripe.android.net.StripeResponse
 
getResponseHeaders() - Method in class com.stripe.android.net.StripeResponse
 
getStatusCode() - Method in exception com.stripe.android.exception.StripeException
 
getString(JSONObject, String) - Static method in class com.stripe.android.util.StripeJsonUtils
Calls through to JSONObject.getString(String) while safely converting the raw string "null" and the empty string to null.
getSupportedCipherSuites() - Method in class com.stripe.android.net.StripeSSLSocketFactory
 
getType() - Method in class com.stripe.android.model.Card
Deprecated.
getType() - Method in class com.stripe.android.model.Token
 
getUsed() - Method in class com.stripe.android.model.Token
 

H

hasAnyPrefix(String, String...) - Static method in class com.stripe.android.util.StripeTextUtils
Check to see if the input number has any of the given prefixes.
hashMapFromCard(Card) - Static method in class com.stripe.android.util.StripeNetworkUtils
A utility function to map the fields of a Card object into a Map we can use in network communications.
hasMonthPassed(int, int) - Static method in class com.stripe.android.util.DateUtils
Determines whether the input year-month pair has passed.
hasYearPassed(int) - Static method in class com.stripe.android.util.DateUtils
Determines whether or not the input year has already passed.

I

InvalidRequestException - Exception in com.stripe.android.exception
An Exception indicating that invalid parameters were used in a request.
InvalidRequestException(String, String, String, Integer, Throwable) - Constructor for exception com.stripe.android.exception.InvalidRequestException
 
isBlank(String) - Static method in class com.stripe.android.util.StripeTextUtils
A checker for whether or not the input value is entirely whitespace.
isWholePositiveNumber(String) - Static method in class com.stripe.android.util.StripeTextUtils
Check to see whether the input string is a whole, positive number.

J

JCB - Static variable in class com.stripe.android.model.Card
 

L

last4(String) - Method in class com.stripe.android.model.Card.Builder
 
LIVE_API_BASE - Static variable in class com.stripe.android.net.StripeApiHandler
 

M

MASTERCARD - Static variable in class com.stripe.android.model.Card
 
MAX_LENGTH_AMERICAN_EXPRESS - Static variable in class com.stripe.android.model.Card
 
MAX_LENGTH_DINERS_CLUB - Static variable in class com.stripe.android.model.Card
 
MAX_LENGTH_STANDARD - Static variable in class com.stripe.android.model.Card
 

N

name(String) - Method in class com.stripe.android.model.Card.Builder
 
nullIfBlank(String) - Static method in class com.stripe.android.util.StripeTextUtils
Swap null for blank text values.

O

onError(Exception) - Method in interface com.stripe.android.TokenCallback
Error callback method.
onSuccess(Token) - Method in interface com.stripe.android.TokenCallback
Success callback method.
optString(JSONObject, String) - Static method in class com.stripe.android.util.StripeJsonUtils
Calls through to JSONObject.optString(String) while safely converting the raw string "null" and the empty string to null.

P

parseCard(String) - Static method in class com.stripe.android.net.CardParser
Parse the card directly from a JSON-formatted String value.
parseCard(JSONObject) - Static method in class com.stripe.android.net.CardParser
Convert a JSONObject into a Card object.
parseToken(String) - Static method in class com.stripe.android.net.TokenParser
 
PermissionException - Exception in com.stripe.android.exception
A type of AuthenticationException resulting from incorrect permissions to perform the requested action.
PermissionException(String, String, Integer) - Constructor for exception com.stripe.android.exception.PermissionException
 
PREFIXES_AMERICAN_EXPRESS - Static variable in class com.stripe.android.model.Card
 
PREFIXES_DINERS_CLUB - Static variable in class com.stripe.android.model.Card
 
PREFIXES_DISCOVER - Static variable in class com.stripe.android.model.Card
 
PREFIXES_JCB - Static variable in class com.stripe.android.model.Card
 
PREFIXES_MASTERCARD - Static variable in class com.stripe.android.model.Card
 
PREFIXES_VISA - Static variable in class com.stripe.android.model.Card
 

R

RateLimitException - Exception in com.stripe.android.exception
An Exception indicating that too many requests have hit the API too quickly.
RateLimitException(String, String, String, Integer, Throwable) - Constructor for exception com.stripe.android.exception.RateLimitException
 
RequestOptions - Class in com.stripe.android.net
Data class representing options for a Stripe API request.
RequestOptions.RequestOptionsBuilder - Class in com.stripe.android.net
Builder class for a set of RequestOptions.
RequestOptionsBuilder(String) - Constructor for class com.stripe.android.net.RequestOptions.RequestOptionsBuilder
Builder constructor requiring an API key.
retrieveToken(RequestOptions, String) - Static method in class com.stripe.android.net.StripeApiHandler
Retrieve a Token by its ID.

S

serialVersionUID - Static variable in exception com.stripe.android.exception.StripeException
 
setAddressCity(String) - Method in class com.stripe.android.model.Card
Deprecated.
setAddressCountry(String) - Method in class com.stripe.android.model.Card
Deprecated.
setAddressLine1(String) - Method in class com.stripe.android.model.Card
Deprecated.
setAddressLine2(String) - Method in class com.stripe.android.model.Card
Deprecated.
setAddressState(String) - Method in class com.stripe.android.model.Card
Deprecated.
setAddressZip(String) - Method in class com.stripe.android.model.Card
Deprecated.
setApiVersion(String) - Method in class com.stripe.android.net.RequestOptions.RequestOptionsBuilder
Setter for the API version for this set of RequestOptions.
setCurrency(String) - Method in class com.stripe.android.model.Card
Deprecated.
setCVC(String) - Method in class com.stripe.android.model.Card
Deprecated.
setDefaultPublishableKey(String) - Method in class com.stripe.android.Stripe
Set the default publishable key to use with this Stripe instance.
setExpMonth(Integer) - Method in class com.stripe.android.model.Card
Deprecated.
setExpYear(Integer) - Method in class com.stripe.android.model.Card
Deprecated.
setIdempotencyKey(String) - Method in class com.stripe.android.net.RequestOptions.RequestOptionsBuilder
Setter for the optional idempotency value of the RequestOptions.
setName(String) - Method in class com.stripe.android.model.Card
Deprecated.
setNumber(String) - Method in class com.stripe.android.model.Card
Deprecated.
setPublishableApiKey(String) - Method in class com.stripe.android.net.RequestOptions.RequestOptionsBuilder
A way to set your publishable key outside of the constructor.
Stripe - Class in com.stripe.android
Class that handles Token creation from charges and Card models.
Stripe() - Constructor for class com.stripe.android.Stripe
A blank constructor to set the key later.
Stripe(String) - Constructor for class com.stripe.android.Stripe
Constructor with publishable key.
StripeApiHandler - Class in com.stripe.android.net
Handler for calls to the Stripe API.
StripeApiHandler() - Constructor for class com.stripe.android.net.StripeApiHandler
 
StripeException - Exception in com.stripe.android.exception
A base class for Stripe-related Exceptions.
StripeException(String, String, Integer) - Constructor for exception com.stripe.android.exception.StripeException
 
StripeException(String, String, Integer, Throwable) - Constructor for exception com.stripe.android.exception.StripeException
 
StripeJsonUtils - Class in com.stripe.android.util
A set of JSON parsing utility functions.
StripeJsonUtils() - Constructor for class com.stripe.android.util.StripeJsonUtils
 
StripeNetworkUtils - Class in com.stripe.android.util
Utility class for static functions useful for networking and data transfer.
StripeNetworkUtils() - Constructor for class com.stripe.android.util.StripeNetworkUtils
 
StripeResponse - Class in com.stripe.android.net
Represents a response from the Stripe servers.
StripeResponse(int, String, Map<String, List<String>>) - Constructor for class com.stripe.android.net.StripeResponse
Object constructor.
StripeSSLSocketFactory - Class in com.stripe.android.net
Wraps a SSLSocketFactory and enables more TLS versions on older versions of Android.
StripeSSLSocketFactory() - Constructor for class com.stripe.android.net.StripeSSLSocketFactory
Constructor for a socket factory instance.
StripeTextUtils - Class in com.stripe.android.util
Utility class for common text-related operations on Stripe data coming from the server.
StripeTextUtils() - Constructor for class com.stripe.android.util.StripeTextUtils
 

T

Token - Class in com.stripe.android.model
The model of a Stripe card token.
Token(String, boolean, Date, Boolean, Card, String) - Constructor for class com.stripe.android.model.Token
Constructor that should not be invoked in your code.
Token.TokenType - Annotation Type in com.stripe.android.model
 
TokenCallback - Interface in com.stripe.android
An interface representing a callback to be notified about the resutls of Token creation or requests
TokenParser - Class in com.stripe.android.net
A class that handles parsing the JSON of a Token object.
TokenParser() - Constructor for class com.stripe.android.net.TokenParser
 
TOKENS - Static variable in class com.stripe.android.net.StripeApiHandler
 
toString() - Method in exception com.stripe.android.exception.StripeException
 
TYPE_CARD - Static variable in class com.stripe.android.model.Token
 

U

unfreeze() - Static method in class com.stripe.android.time.FrozenClock
 
UNKNOWN - Static variable in class com.stripe.android.model.Card
 

V

validateCard() - Method in class com.stripe.android.model.Card
Checks whether this represents a valid card.
validateCVC() - Method in class com.stripe.android.model.Card
Checks whether or not the Card.cvc field is valid.
validateExpiryDate() - Method in class com.stripe.android.model.Card
Checks whether or not the Card.expMonth and Card.expYear fields represent a valid expiry date.
validateExpMonth() - Method in class com.stripe.android.model.Card
Checks whether or not the Card.expMonth field is valid.
validateExpYear() - Method in class com.stripe.android.model.Card
Checks whether or not the Card.expYear field is valid.
validateNumber() - Method in class com.stripe.android.model.Card
Checks whether or not the Card.number field is valid.
VERSION - Static variable in class com.stripe.android.net.StripeApiHandler
 
VISA - Static variable in class com.stripe.android.model.Card
 
A B C D F G H I J L M N O P R S T U V 
Skip navigation links