This project is deprecated and is no longer being actively maintained. See our new stripe-samples/identity sample.
Identity is a prebuilt, hosted identity verification flow that can help you capture signals about individuals to make sure that they are who they claim to be. Identity can help you increase the trust and safety of your community, streamline risk operations to reduce losses, or launch verification as a new feature within your product.
Demo
See a hosted version of the sample app.
This sample includes a Node server implementation.
Follow the steps below to run locally.
1. Clone the repository:
git clone https://github.com/stripe-samples/identity-verification
2. Copy the env.example to a .env file:
Copy the env.example file into a file named .env in the project root folder. For example:
cp env.example .env
You will need a Stripe account in order to run the demo. Additionally, you will need to setup your account to use Identity, which you can do so here. Once you set up your account, go to the Stripe developer dashboard to find your API keys.
- Edit
.env
file with your text editor and update your.env
file with the keys.
STRIPE_SECRET_KEY=<replace-with-your-test-secret-key>
STRIPE_PUBLISHABLE_KEY=<replace-with-your-test-publishable-key>
STATIC_DIR
tells the server where to the client files are located and does not need to be modified unless you move the server files.
3. Install and run:
cd src/
npm install
npm start
Q: Why did you pick these frameworks?
A: We chose the most minimal framework to convey the key Stripe calls and concepts you need to understand. These demos are meant as an educational tool that helps you roadmap how to integrate Stripe within your own system independent of the framework.
If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.
If you have questions, comments, or need help with code, we're here to help:
- on IRC via freenode
- on Twitter at @StripeDev
- on Stack Overflow at the stripe-payments tag
- by email
Sign up to stay updated with developer news.