--- title: Identity verification (modal) route: /samples/identity/modal --- # Identity verification (modal) # Identity verification The modal integration allows you to collect documents for identity verification in your existing flow. You can customize the interface to match your branding and support users on a variety of platforms and in multiple programming languages, while limiting the amount of private information you handle on your site. For an integration solution that requires minimal coding, see the [redirect integration](https://docs.stripe.com/samples/identity/redirect.md). ```html
.env
Make a copy of .env.example
, place it in the same directory as composer.json, and name it .env
, then populate the variables.
It should look something like the following, but contain your API keys:
STRIPE_PUBLISHABLE_KEY=pk_test... STRIPE_SECRET_KEY=sk_test... STRIPE_WEBHOOK_SECRET=whsec_... DOMAIN=http://localhost:4242
You can use this command to get started:
cp .env.example .envload(); // Make sure the configuration file is good. if (!$_ENV['STRIPE_SECRET_KEY']) { ?>
.env
Make a copy of .env.example
and name it .env
, then populate the variables.
It should look something like the following, but contain your API keys:
STRIPE_PUBLISHABLE_KEY=pk_test... STRIPE_SECRET_KEY=sk_test... STRIPE_WEBHOOK_SECRET=whsec_... DOMAIN=http://localhost:4242
You can use this command to get started:
cp .env.example .env$_ENV['STRIPE_SECRET_KEY'], 'stripe_version' => '2020-08-27', ]); ``` ```html