Class Session

java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.financialconnections.Session
All Implemented Interfaces:
HasId, StripeActiveObject, StripeObjectInterface

public class Session extends ApiResource implements HasId
A Financial Connections Session is the secure way to programmatically launch the client-side Stripe.js modal that lets your users link their accounts.
  • Constructor Details

    • Session

      public Session()
  • Method Details

    • create

      public static Session create(Map<String,Object> params) throws StripeException
      To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.
      Throws:
      StripeException
    • create

      public static Session create(Map<String,Object> params, RequestOptions options) throws StripeException
      To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.
      Throws:
      StripeException
    • create

      public static Session create(SessionCreateParams params) throws StripeException
      To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can 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 a Session. The session’s client_secret can be used to launch the flow using Stripe.js.
      Throws:
      StripeException
    • retrieve

      public static Session retrieve(String session) throws StripeException
      Retrieves the details of a Financial Connections Session.
      Throws:
      StripeException
    • retrieve

      public static Session retrieve(String session, RequestOptions options) throws StripeException
      Retrieves the details of a Financial Connections Session.
      Throws:
      StripeException
    • retrieve

      public static Session retrieve(String session, Map<String,Object> params, RequestOptions options) throws StripeException
      Retrieves the details of a Financial Connections Session.
      Throws:
      StripeException
    • retrieve

      public static Session retrieve(String session, SessionRetrieveParams params, RequestOptions options) throws StripeException
      Retrieves the details of a Financial Connections Session.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getAccountHolder

      public Session.AccountHolder getAccountHolder()
      The account holder for whom accounts are collected in this session.
    • getAccounts

      public AccountCollection getAccounts()
      The accounts that were collected as part of this Session.
    • getClientSecret

      public String getClientSecret()
      A value that will be passed to the client to launch the authentication flow.
    • getFilters

      public Session.Filters getFilters()
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to financial_connections.session.

    • getPermissions

      public List<String> getPermissions()
      Permissions requested for accounts collected during this session.
    • getPrefetch

      public List<String> getPrefetch()
      Data features requested to be retrieved upon account creation.
    • getReturnUrl

      public String 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

      public void setAccountHolder(Session.AccountHolder accountHolder)
      The account holder for whom accounts are collected in this session.
    • setAccounts

      public void setAccounts(AccountCollection accounts)
      The accounts that were collected as part of this Session.
    • setClientSecret

      public void setClientSecret(String clientSecret)
      A value that will be passed to the client to launch the authentication flow.
    • setFilters

      public void setFilters(Session.Filters filters)
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to financial_connections.session.

    • setPermissions

      public void setPermissions(List<String> permissions)
      Permissions requested for accounts collected during this session.
    • setPrefetch

      public void setPrefetch(List<String> prefetch)
      Data features requested to be retrieved upon account creation.
    • setReturnUrl

      public void setReturnUrl(String returnUrl)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId