Class Session
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about AccountHolder, please refer to the API Reference.static classFor more details about Filters, please refer to the API Reference.static classFor more details about Limits, please refer to the API Reference.static classFor more details about ManualEntry, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic Sessioncreate(SessionCreateParams params) To launch the Financial Connections authorization flow, create aSession.static Sessioncreate(SessionCreateParams params, RequestOptions options) To launch the Financial Connections authorization flow, create aSession.static SessionTo launch the Financial Connections authorization flow, create aSession.static Sessioncreate(Map<String, Object> params, RequestOptions options) To launch the Financial Connections authorization flow, create aSession.booleanThe account holder for whom accounts are collected in this session.The accounts that were collected as part of this Session.Tokenization is the process Stripe uses to collect sensitive card or bank account details, or personally identifiable information (PII), directly from your customers in a secure manner.A value that will be passed to the client to launch the authentication flow.getId()Unique identifier for the object.If the object exists in live mode, the value istrue.String representing the object's type.Permissions requested for accounts collected during this session.Data features requested to be retrieved upon account creation.For webview integrations only.inthashCode()static SessionRetrieves the details of a Financial ConnectionsSession.static Sessionretrieve(String session, RequestOptions options) Retrieves the details of a Financial ConnectionsSession.static Sessionretrieve(String session, SessionRetrieveParams params, RequestOptions options) Retrieves the details of a Financial ConnectionsSession.static SessionRetrieves the details of a Financial ConnectionsSession.voidsetAccountHolder(Session.AccountHolder accountHolder) The account holder for whom accounts are collected in this session.voidsetAccounts(AccountCollection accounts) The accounts that were collected as part of this Session.voidsetBankAccountToken(Token bankAccountToken) Tokenization is the process Stripe uses to collect sensitive card or bank account details, or personally identifiable information (PII), directly from your customers in a secure manner.voidsetClientSecret(String clientSecret) A value that will be passed to the client to launch the authentication flow.voidsetFilters(Session.Filters filters) voidUnique identifier for the object.voidsetLimits(Session.Limits limits) voidsetLivemode(Boolean livemode) If the object exists in live mode, the value istrue.voidsetManualEntry(Session.ManualEntry manualEntry) voidString representing the object's type.voidsetPermissions(List<String> permissions) Permissions requested for accounts collected during this session.voidsetPrefetch(List<String> prefetch) Data features requested to be retrieved upon account creation.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetReturnUrl(String returnUrl) For webview integrations only.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
create
To launch the Financial Connections authorization flow, create aSession. The session’sclient_secretcan be used to launch the flow using Stripe.js.- Throws:
StripeException
-
create
public static Session create(Map<String, Object> params, RequestOptions options) throws StripeExceptionTo launch the Financial Connections authorization flow, create aSession. The session’sclient_secretcan be used to launch the flow using Stripe.js.- Throws:
StripeException
-
create
To launch the Financial Connections authorization flow, create aSession. The session’sclient_secretcan be used to launch the flow using Stripe.js.- Throws:
StripeException
-
create
public static Session create(SessionCreateParams params, RequestOptions options) throws StripeException To launch the Financial Connections authorization flow, create aSession. The session’sclient_secretcan be used to launch the flow using Stripe.js.- Throws:
StripeException
-
retrieve
Retrieves the details of a Financial ConnectionsSession.- Throws:
StripeException
-
retrieve
Retrieves the details of a Financial ConnectionsSession.- Throws:
StripeException
-
retrieve
public static Session retrieve(String session, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a Financial ConnectionsSession.- Throws:
StripeException
-
retrieve
public static Session retrieve(String session, SessionRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a Financial ConnectionsSession.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAccountHolder
The account holder for whom accounts are collected in this session. -
getAccounts
The accounts that were collected as part of this Session. -
getBankAccountToken
Tokenization is the process Stripe uses to collect sensitive card or bank account details, or personally identifiable information (PII), directly from your customers in a secure manner. A token representing this information is returned to your server to use. Use our recommended payments integrations to perform this process on the client-side. This guarantees that no sensitive card data touches your server, and allows your integration to operate in a PCI-compliant way.If you can't use client-side tokenization, you can also create tokens using the API with either your publishable or secret API key. If your integration uses this method, you're responsible for any PCI compliance that it might require, and you must keep your secret API key safe. Unlike with client-side tokenization, your customer's information isn't sent directly to Stripe, so we can't determine how it's handled or stored.
You can't store or use tokens more than once. To store card or bank account information for later use, create Customer objects or External accounts. Radar, our integrated solution for automatic fraud protection, performs best with integrations that use client-side tokenization.
-
getClientSecret
A value that will be passed to the client to launch the authentication flow. -
getFilters
-
getLimits
-
getLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
getManualEntry
-
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
financial_connections.session. -
getPermissions
Permissions requested for accounts collected during this session. -
getPrefetch
Data features requested to be retrieved upon account creation. -
getReturnUrl
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. -
setAccountHolder
The account holder for whom accounts are collected in this session. -
setAccounts
The accounts that were collected as part of this Session. -
setBankAccountToken
Tokenization is the process Stripe uses to collect sensitive card or bank account details, or personally identifiable information (PII), directly from your customers in a secure manner. A token representing this information is returned to your server to use. Use our recommended payments integrations to perform this process on the client-side. This guarantees that no sensitive card data touches your server, and allows your integration to operate in a PCI-compliant way.If you can't use client-side tokenization, you can also create tokens using the API with either your publishable or secret API key. If your integration uses this method, you're responsible for any PCI compliance that it might require, and you must keep your secret API key safe. Unlike with client-side tokenization, your customer's information isn't sent directly to Stripe, so we can't determine how it's handled or stored.
You can't store or use tokens more than once. To store card or bank account information for later use, create Customer objects or External accounts. Radar, our integrated solution for automatic fraud protection, performs best with integrations that use client-side tokenization.
-
setClientSecret
A value that will be passed to the client to launch the authentication flow. -
setFilters
-
setId
Unique identifier for the object. -
setLimits
-
setLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
setManualEntry
-
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
financial_connections.session. -
setPermissions
Permissions requested for accounts collected during this session. -
setPrefetch
Data features requested to be retrieved upon account creation. -
setReturnUrl
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-