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
Nested ClassesModifier and TypeClassDescriptionstatic classShows last VerificationSession error.static classFor more details about Options, please refer to the API Reference.static classFor more details about ProvidedDetails, please refer to the API Reference.static classFor more details about Redaction, please refer to the API Reference.static classFor more details about RelatedPerson, please refer to the API Reference.static classFor more details about VerifiedOutputs, 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 TypeMethodDescriptioncancel()A VerificationSession object can be canceled when it is inrequires_inputstatus.cancel(RequestOptions options) A VerificationSession object can be canceled when it is inrequires_inputstatus.A VerificationSession object can be canceled when it is inrequires_inputstatus.cancel(VerificationSessionCancelParams params, RequestOptions options) A VerificationSession object can be canceled when it is inrequires_inputstatus.A VerificationSession object can be canceled when it is inrequires_inputstatus.cancel(Map<String, Object> params, RequestOptions options) A VerificationSession object can be canceled when it is inrequires_inputstatus.protected booleanstatic VerificationSessionCreates a VerificationSession object.static VerificationSessioncreate(VerificationSessionCreateParams params, RequestOptions options) Creates a VerificationSession object.static VerificationSessionCreates a VerificationSession object.static VerificationSessioncreate(Map<String, Object> params, RequestOptions options) Creates a VerificationSession object.booleanA 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 expandablelastVerificationReportobject.Get expandedlastVerificationReport.Has the valuetrueif the object exists in live mode or the valuefalseif 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.Customer ID.Token referencing a Customer Account 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.inthashCode()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 VerificationSessionRetrieves the details of a VerificationSession that was previously created.static VerificationSessionretrieve(String session, RequestOptions options) Retrieves the details of a VerificationSession that was previously created.static VerificationSessionretrieve(String session, VerificationSessionRetrieveParams params, RequestOptions options) Retrieves the details of a VerificationSession that was previously created.static VerificationSessionRetrieves the details of a VerificationSession that was previously created.voidsetClientReferenceId(String clientReferenceId) A string to reference this user.voidsetClientSecret(String clientSecret) The short-lived client secret used by Stripe.js to show a verification modal inside your app.voidsetCreated(Long created) Time at which the object was created.voidUnique identifier for the object.voidsetLastError(VerificationSession.LastError lastError) If present, this property tells you the last error encountered when processing the verification.voidvoidsetLastVerificationReportObject(VerificationReport expandableObject) voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetOptions(VerificationSession.Options options) A set of options for the session’s verification checks.voidsetProvidedDetails(VerificationSession.ProvidedDetails providedDetails) Details provided about the user being verified.voidsetRedaction(VerificationSession.Redaction redaction) Redaction status of this VerificationSession.voidsetRelatedCustomer(String relatedCustomer) Customer ID.voidsetRelatedCustomerAccount(String relatedCustomerAccount) Token referencing a Customer Account resource.voidsetRelatedPerson(VerificationSession.RelatedPerson relatedPerson) voidsetResponseGetter(StripeResponseGetter responseGetter) The four-digit year.voidStatus of this VerificationSession.voidThe type of verification check to be performed.voidThe short-lived URL that you use to redirect a user to Stripe to submit their identity information.voidsetVerificationFlow(String verificationFlow) The configuration token of a verification flow from the dashboard.voidsetVerifiedOutputs(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, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
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
-
VerificationSession
public VerificationSession()
-
-
Method Details
-
getLastVerificationReport
Get ID of expandablelastVerificationReportobject. -
setLastVerificationReport
-
getLastVerificationReportObject
Get expandedlastVerificationReport. -
setLastVerificationReportObject
-
cancel
A VerificationSession object can be canceled when it is inrequires_inputstatus.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_inputstatus.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_inputstatus.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_inputstatus.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_inputstatus.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_inputstatus.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_secretor 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_secretor 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_secretor 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_secretor 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_inputorverifiedstatus. Redacting a VerificationSession inrequires_actionstate will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.statusfield will be set toprocessing; when the process is finished, it will change toredactedand anidentity.verification_session.redactedevent 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. Themetadatafield 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_inputorverifiedstatus. Redacting a VerificationSession inrequires_actionstate will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.statusfield will be set toprocessing; when the process is finished, it will change toredactedand anidentity.verification_session.redactedevent 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. Themetadatafield 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_inputorverifiedstatus. Redacting a VerificationSession inrequires_actionstate will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.statusfield will be set toprocessing; when the process is finished, it will change toredactedand anidentity.verification_session.redactedevent 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. Themetadatafield 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_inputorverifiedstatus. Redacting a VerificationSession inrequires_actionstate will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.statusfield will be set toprocessing; when the process is finished, it will change toredactedand anidentity.verification_session.redactedevent 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. Themetadatafield 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_inputorverifiedstatus. Redacting a VerificationSession inrequires_actionstate will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.statusfield will be set toprocessing; when the process is finished, it will change toredactedand anidentity.verification_session.redactedevent 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. Themetadatafield 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_inputorverifiedstatus. Redacting a VerificationSession inrequires_actionstate will automatically cancel it.The redaction process may take up to four days. When the redaction process is in progress, the VerificationSession’s
redaction.statusfield will be set toprocessing; when the process is finished, it will change toredactedand anidentity.verification_session.redactedevent 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. Themetadatafield 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_secretorurlto 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_secretorurlto 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_secretorurlto 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_secretorurlto 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:
updatein 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:
updatein 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:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 valuetrueif the object exists in live mode or the valuefalseif 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
Customer ID. -
getRelatedCustomerAccount
Token referencing a Customer Account resource. -
getRelatedPerson
-
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 valuetrueif the object exists in live mode or the valuefalseif 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
Customer ID. -
setRelatedCustomerAccount
Token referencing a Customer Account resource. -
setRelatedPerson
-
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:
getMetadatain interfaceMetadataStore<VerificationSession>
-