Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add callback result type "Rejected" when Stripe Identity consent was rejected by the user #9051

Open
kit0kat opened this issue Aug 12, 2024 · 0 comments
Assignees

Comments

@kit0kat
Copy link

kit0kat commented Aug 12, 2024

When users start the Stripe Identity flow, they are prompted to agree to the privacy policy. If a user clicks "DECLINE" a message appears asking the user to agree, and then the user is redirected to the consent page again.

Unfortunately, as an app developer, we have no way to educate the user about the benefits of identity verification or the privacy policy at this point.

Hence the following feature request:

When the user clicks "DECLINE", the Stripe Identity activity should finish and the callback should include a Rejected type in addition to the Canceled, Completed, and Failed results. This would give app developers the ability to react here and display their own screen.

Example:

val identityVerificationSheet = rememberIdentityVerificationSheet(
    configuration = IdentityVerificationSheet.Configuration(brandLogo = logoUri),
    identityVerificationCallback = {
        when (it) {
            is IdentityVerificationSheet.VerificationFlowResult.Canceled -> {
            }

            is IdentityVerificationSheet.VerificationFlowResult.Completed -> {
            }

            is IdentityVerificationSheet.VerificationFlowResult.Failed -> {
            }

            is IdentityVerificationSheet.VerificationFlowResult.Rejected -> {
                // This is my Feature Request.
                // Show the user a screen explaining why consent is necessary.
            }
        }
    },
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants