Class VerificationSession
- All Implemented Interfaces:
HasId
,MetadataStore<VerificationSession>
,StripeActiveObject
,StripeObjectInterface
A VerificationSession transitions through multiple statuses throughout its lifetime as it progresses through the verification flow. The VerificationSession contains the user's verified data after verification checks are complete.
Related guide: The Verification Sessions API
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Shows last VerificationSession error.static class
static class
Request one time password verification ofprovided_details.phone
.static class
static class
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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncancel()
A VerificationSession object can be canceled when it is inrequires_input
status.cancel
(RequestOptions options) A VerificationSession object can be canceled when it is inrequires_input
status.A VerificationSession object can be canceled when it is inrequires_input
status.cancel
(VerificationSessionCancelParams params, RequestOptions options) A VerificationSession object can be canceled when it is inrequires_input
status.A VerificationSession object can be canceled when it is inrequires_input
status.cancel
(Map<String, Object> params, RequestOptions options) A VerificationSession object can be canceled when it is inrequires_input
status.protected boolean
static VerificationSession
Creates a VerificationSession object.static VerificationSession
create
(VerificationSessionCreateParams params, RequestOptions options) Creates a VerificationSession object.static VerificationSession
Creates a VerificationSession object.static VerificationSession
create
(Map<String, Object> params, RequestOptions options) Creates a VerificationSession object.boolean
A string to reference this user.The short-lived client secret used by Stripe.js to show a verification modal inside your app.Time at which the object was created.getId()
Unique identifier for the object.If present, this property tells you the last error encountered when processing the verification.Get ID of expandablelastVerificationReport
object.Get expandedlastVerificationReport
.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.A set of options for the session’s verification checks.Details provided about the user being verified.Redaction status of this VerificationSession.Token referencing a Customer resource.Status of this VerificationSession.getType()
The type of verification check to be performed.getUrl()
The short-lived URL that you use to redirect a user to Stripe to submit their identity information.The configuration token of a Verification Flow from the dashboard.The user’s verified data.int
hashCode()
list
(VerificationSessionListParams params) Returns a list of VerificationSessions.list
(VerificationSessionListParams params, RequestOptions options) Returns a list of VerificationSessions.Returns a list of VerificationSessions.list
(Map<String, Object> params, RequestOptions options) Returns a list of VerificationSessions.redact()
Redact a VerificationSession to remove all collected information from Stripe.redact
(RequestOptions options) Redact a VerificationSession to remove all collected information from Stripe.Redact a VerificationSession to remove all collected information from Stripe.redact
(VerificationSessionRedactParams params, RequestOptions options) Redact a VerificationSession to remove all collected information from Stripe.Redact a VerificationSession to remove all collected information from Stripe.redact
(Map<String, Object> params, RequestOptions options) Redact a VerificationSession to remove all collected information from Stripe.static VerificationSession
Retrieves the details of a VerificationSession that was previously created.static VerificationSession
retrieve
(String session, RequestOptions options) Retrieves the details of a VerificationSession that was previously created.static VerificationSession
retrieve
(String session, VerificationSessionRetrieveParams params, RequestOptions options) Retrieves the details of a VerificationSession that was previously created.static VerificationSession
Retrieves the details of a VerificationSession that was previously created.void
setClientReferenceId
(String clientReferenceId) A string to reference this user.void
setClientSecret
(String clientSecret) The short-lived client secret used by Stripe.js to show a verification modal inside your app.void
setCreated
(Long created) Time at which the object was created.void
Unique identifier for the object.void
setLastError
(VerificationSession.LastError lastError) If present, this property tells you the last error encountered when processing the verification.void
void
setLastVerificationReportObject
(VerificationReport expandableObject) void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setOptions
(VerificationSession.Options options) A set of options for the session’s verification checks.void
setProvidedDetails
(VerificationSession.ProvidedDetails providedDetails) Details provided about the user being verified.void
setRedaction
(VerificationSession.Redaction redaction) Redaction status of this VerificationSession.void
setRelatedCustomer
(String relatedCustomer) Token referencing a Customer resource.void
setResponseGetter
(StripeResponseGetter responseGetter) The four-digit year.void
Status of this VerificationSession.void
The type of verification check to be performed.void
The short-lived URL that you use to redirect a user to Stripe to submit their identity information.void
setVerificationFlow
(String verificationFlow) The configuration token of a Verification Flow from the dashboard.void
setVerifiedOutputs
(VerificationSession.VerifiedOutputs verifiedOutputs) The user’s verified data.Updates a VerificationSession object.update
(VerificationSessionUpdateParams params, RequestOptions options) Updates a VerificationSession object.Updates a VerificationSession object.update
(Map<String, Object> params, RequestOptions options) Updates a VerificationSession object.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
VerificationSession
public VerificationSession()
-
-
Method Details
-
getLastVerificationReport
Get ID of expandablelastVerificationReport
object. -
setLastVerificationReport
-
getLastVerificationReportObject
Get expandedlastVerificationReport
. -
setLastVerificationReportObject
-
cancel
A VerificationSession object can be canceled when it is inrequires_input
status.Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.
- Throws:
StripeException
-
cancel
A VerificationSession object can be canceled when it is inrequires_input
status.Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.
- Throws:
StripeException
-
cancel
A VerificationSession object can be canceled when it is inrequires_input
status.Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.
- Throws:
StripeException
-
cancel
public VerificationSession cancel(Map<String, Object> params, RequestOptions options) throws StripeExceptionA VerificationSession object can be canceled when it is inrequires_input
status.Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.
- Throws:
StripeException
-
cancel
A VerificationSession object can be canceled when it is inrequires_input
status.Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.
- Throws:
StripeException
-
cancel
public VerificationSession cancel(VerificationSessionCancelParams params, RequestOptions options) throws StripeException A VerificationSession object can be canceled when it is inrequires_input
status.Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.
- Throws:
StripeException
-
create
Creates a VerificationSession object.After the VerificationSession is created, display a verification modal using the session
client_secret
or send your users to the session’surl
.If your API key is in test mode, verification checks won’t actually process, though everything else will occur as if in live mode.
Related guide: Verify your users’ identity documents.
- Throws:
StripeException
-
create
public static VerificationSession create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a VerificationSession object.After the VerificationSession is created, display a verification modal using the session
client_secret
or send your users to the session’surl
.If your API key is in test mode, verification checks won’t actually process, though everything else will occur as if in live mode.
Related guide: Verify your users’ identity documents.
- Throws:
StripeException
-
create
public static VerificationSession create(VerificationSessionCreateParams params) throws StripeException Creates a VerificationSession object.After the VerificationSession is created, display a verification modal using the session
client_secret
or send your users to the session’surl
.If your API key is in test mode, verification checks won’t actually process, though everything else will occur as if in live mode.
Related guide: Verify your users’ identity documents.
- Throws:
StripeException
-
create
public static VerificationSession create(VerificationSessionCreateParams params, RequestOptions options) throws StripeException Creates a VerificationSession object.After the VerificationSession is created, display a verification modal using the session
client_secret
or send your users to the session’surl
.If your API key is in test mode, verification checks won’t actually process, though everything else will occur as if in live mode.
Related guide: Verify your users’ identity documents.
- Throws:
StripeException
-
list
Returns a list of VerificationSessions.- Throws:
StripeException
-
list
public static VerificationSessionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of VerificationSessions.- Throws:
StripeException
-
list
public static VerificationSessionCollection list(VerificationSessionListParams params) throws StripeException Returns a list of VerificationSessions.- Throws:
StripeException
-
list
public static VerificationSessionCollection list(VerificationSessionListParams params, RequestOptions options) throws StripeException Returns a list of VerificationSessions.- Throws:
StripeException
-
redact
Redact a VerificationSession to remove all collected information from Stripe. This will redact the VerificationSession and all objects related to it, including VerificationReports, Events, request logs, etc.A VerificationSession object can be redacted when it is in
requires_input
orverified
status. Redacting a VerificationSession inrequires_action
state will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.status
field will be set toprocessing
; when the process is finished, it will change toredacted
and anidentity.verification_session.redacted
event will be emitted.Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the fields that contain personal data will be replaced by the string
[redacted]
or a similar placeholder. Themetadata
field will also be erased. Redacted objects cannot be updated or used for any purpose.- Throws:
StripeException
-
redact
Redact a VerificationSession to remove all collected information from Stripe. This will redact the VerificationSession and all objects related to it, including VerificationReports, Events, request logs, etc.A VerificationSession object can be redacted when it is in
requires_input
orverified
status. Redacting a VerificationSession inrequires_action
state will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.status
field will be set toprocessing
; when the process is finished, it will change toredacted
and anidentity.verification_session.redacted
event will be emitted.Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the fields that contain personal data will be replaced by the string
[redacted]
or a similar placeholder. Themetadata
field will also be erased. Redacted objects cannot be updated or used for any purpose.- Throws:
StripeException
-
redact
Redact a VerificationSession to remove all collected information from Stripe. This will redact the VerificationSession and all objects related to it, including VerificationReports, Events, request logs, etc.A VerificationSession object can be redacted when it is in
requires_input
orverified
status. Redacting a VerificationSession inrequires_action
state will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.status
field will be set toprocessing
; when the process is finished, it will change toredacted
and anidentity.verification_session.redacted
event will be emitted.Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the fields that contain personal data will be replaced by the string
[redacted]
or a similar placeholder. Themetadata
field will also be erased. Redacted objects cannot be updated or used for any purpose.- Throws:
StripeException
-
redact
public VerificationSession redact(Map<String, Object> params, RequestOptions options) throws StripeExceptionRedact a VerificationSession to remove all collected information from Stripe. This will redact the VerificationSession and all objects related to it, including VerificationReports, Events, request logs, etc.A VerificationSession object can be redacted when it is in
requires_input
orverified
status. Redacting a VerificationSession inrequires_action
state will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.status
field will be set toprocessing
; when the process is finished, it will change toredacted
and anidentity.verification_session.redacted
event will be emitted.Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the fields that contain personal data will be replaced by the string
[redacted]
or a similar placeholder. Themetadata
field will also be erased. Redacted objects cannot be updated or used for any purpose.- Throws:
StripeException
-
redact
Redact a VerificationSession to remove all collected information from Stripe. This will redact the VerificationSession and all objects related to it, including VerificationReports, Events, request logs, etc.A VerificationSession object can be redacted when it is in
requires_input
orverified
status. Redacting a VerificationSession inrequires_action
state will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.status
field will be set toprocessing
; when the process is finished, it will change toredacted
and anidentity.verification_session.redacted
event will be emitted.Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the fields that contain personal data will be replaced by the string
[redacted]
or a similar placeholder. Themetadata
field will also be erased. Redacted objects cannot be updated or used for any purpose.- Throws:
StripeException
-
redact
public VerificationSession redact(VerificationSessionRedactParams params, RequestOptions options) throws StripeException Redact a VerificationSession to remove all collected information from Stripe. This will redact the VerificationSession and all objects related to it, including VerificationReports, Events, request logs, etc.A VerificationSession object can be redacted when it is in
requires_input
orverified
status. Redacting a VerificationSession inrequires_action
state will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.status
field will be set toprocessing
; when the process is finished, it will change toredacted
and anidentity.verification_session.redacted
event will be emitted.Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the fields that contain personal data will be replaced by the string
[redacted]
or a similar placeholder. Themetadata
field will also be erased. Redacted objects cannot be updated or used for any purpose.- Throws:
StripeException
-
retrieve
Retrieves the details of a VerificationSession that was previously created.When the session status is
requires_input
, you can use this method to retrieve a validclient_secret
orurl
to allow re-submission.- Throws:
StripeException
-
retrieve
public static VerificationSession retrieve(String session, RequestOptions options) throws StripeException Retrieves the details of a VerificationSession that was previously created.When the session status is
requires_input
, you can use this method to retrieve a validclient_secret
orurl
to allow re-submission.- Throws:
StripeException
-
retrieve
public static VerificationSession retrieve(String session, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a VerificationSession that was previously created.When the session status is
requires_input
, you can use this method to retrieve a validclient_secret
orurl
to allow re-submission.- Throws:
StripeException
-
retrieve
public static VerificationSession retrieve(String session, VerificationSessionRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a VerificationSession that was previously created.When the session status is
requires_input
, you can use this method to retrieve a validclient_secret
orurl
to allow re-submission.- Throws:
StripeException
-
update
Updates a VerificationSession object.When the session status is
requires_input
, you can use this method to update the verification check and options.- Specified by:
update
in interfaceMetadataStore<VerificationSession>
- Throws:
StripeException
-
update
public VerificationSession update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates a VerificationSession object.When the session status is
requires_input
, you can use this method to update the verification check and options.- Specified by:
update
in interfaceMetadataStore<VerificationSession>
- Throws:
StripeException
-
update
Updates a VerificationSession object.When the session status is
requires_input
, you can use this method to update the verification check and options.- Throws:
StripeException
-
update
public VerificationSession update(VerificationSessionUpdateParams params, RequestOptions options) throws StripeException Updates a VerificationSession object.When the session status is
requires_input
, you can use this method to update the verification check and options.- Throws:
StripeException
-
setResponseGetter
The four-digit year.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getClientReferenceId
A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems. -
getClientSecret
The short-lived client secret used by Stripe.js to show a verification modal inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on passing the client secret to the frontend to learn more. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getLastError
If present, this property tells you the last error encountered when processing the verification. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
identity.verification_session
. -
getOptions
A set of options for the session’s verification checks. -
getProvidedDetails
Details provided about the user being verified. These details may be shown to the user. -
getRedaction
Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null. -
getRelatedCustomer
Token referencing a Customer resource. -
getStatus
Status of this VerificationSession. Learn more about the lifecycle of sessions.One of
canceled
,processing
,requires_input
, orverified
. -
getType
The type of verification check to be performed.One of
document
,id_number
, orverification_flow
. -
getUrl
The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe. -
getVerificationFlow
The configuration token of a Verification Flow from the dashboard. -
getVerifiedOutputs
The user’s verified data. -
setClientReferenceId
A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems. -
setClientSecret
The short-lived client secret used by Stripe.js to show a verification modal inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on passing the client secret to the frontend to learn more. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setId
Unique identifier for the object. -
setLastError
If present, this property tells you the last error encountered when processing the verification. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
identity.verification_session
. -
setOptions
A set of options for the session’s verification checks. -
setProvidedDetails
Details provided about the user being verified. These details may be shown to the user. -
setRedaction
Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null. -
setRelatedCustomer
Token referencing a Customer resource. -
setStatus
Status of this VerificationSession. Learn more about the lifecycle of sessions.One of
canceled
,processing
,requires_input
, orverified
. -
setType
The type of verification check to be performed.One of
document
,id_number
, orverification_flow
. -
setUrl
The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe. -
setVerificationFlow
The configuration token of a Verification Flow from the dashboard. -
setVerifiedOutputs
The user’s verified data. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<VerificationSession>
-