🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 27, 2026

How to Verify Identity on Gravity Forms With Stripe

GravityExtra
How to Verify Identity on Gravity Forms With Stripe

Some forms need more than an email address. A membership that unlocks a members-only rate, a rental application, an age-restricted sign-up, a payout request, a volunteer form that puts someone in a room with children: for all of these you want to know that the person on the other end is real and is who they claim to be. This tutorial shows how to verify a Gravity Forms submitter’s identity through your own Stripe account, with a government photo ID and a matching selfie, and how to record the verified result on the entry so the rest of your workflow can act on it. The full feature list, the price and the setup guide live on the Gravity Forms Stripe Identity Premium Add-on page.

Why verify identity on a form

An email confirmation proves that someone can read an inbox. It does not prove a name, an age or a face. When a wrong decision is expensive, slow or hard to reverse, a stronger check pays for itself. Stripe Identity asks the visitor to photograph a passport, driving licence or identity card and, when you want it, to take a selfie that Stripe compares against the photo on the document. Stripe does the hard part: reading the document, spotting a forgery, matching the face. Your form only needs to start the check and record the answer.

Doing this through your own Stripe account matters. You keep your own prices, your own Stripe dashboard with every verification, and your own relationship with Stripe. The identity documents go straight to Stripe and never touch your WordPress database or any third-party service. GravityExtra sells the add-on that connects the two; it never sees a document or a key.

What you need

  • WordPress, Gravity Forms 2.5 or newer, and the Stripe Identity add-on.
  • A Stripe account with the Identity product turned on, and a secret key from the Stripe dashboard.
  • A few minutes to add one webhook endpoint in Stripe, so results can come back to your site.

Step 1: connect Stripe once

Install and activate the add-on, then open Forms, Settings, Stripe Identity and activate your licence key. Paste your Stripe secret key and save. The key is encrypted with your site’s own security salts before it is stored, and it is never shown again. Press Check the connection and the add-on asks Stripe for the account to confirm the key works; it creates nothing and charges nothing.

The Stripe Identity settings screen in Gravity Forms: the licence box, the encrypted Stripe secret key, the webhook signing secret, the webhook endpoint URL, the default return URL, the selfie default and the Check the connection button
Connect your own Stripe account: the secret key and the webhook signing secret, both stored encrypted.

Stripe reports each result by calling a webhook on your site. The settings page shows the exact endpoint URL to use. In the Stripe dashboard open Developers, Webhooks, add an endpoint with that URL, and subscribe it to the events for a verified session and a session that needs more input. Stripe then gives you a signing secret that starts with whsec. Paste it into the add-on and save. From then on, every webhook is checked against that secret, and anything with a missing or wrong signature is rejected, so nobody can fake a verified result by calling your site.

Step 2: add a feed to your form

Open the form you want to protect, go to Settings, Stripe Identity and add a feed. Give it a name, then choose how strict the check should be. Document and matching selfie is the strongest option. Document only skips the selfie. You can also require a live capture, so the visitor must photograph the document on the spot instead of uploading an old image, limit which documents you accept, and collect an ID number when you need it.

A Stripe Identity feed: the document-and-selfie check, the ID number option, live capture, the allowed documents, the field that stores the status, the hold-notifications option, the return URL and the condition
A feed decides the check, the documents you accept, where the status is stored and whether the notifications wait.

Two feed options turn a verification into a real workflow. Store the status in a form field, and the add-on writes pending, verified or failed onto the entry, which you can then use in views, exports and conditional logic. Turn on hold the form notifications, and the form’s own emails wait until Stripe reports the visitor verified, then go out. That way a welcome email or an account approval never leaves before the identity is confirmed. A condition, exactly like a Gravity Forms notification condition, lets you verify only some entries, for example only the paid tier or only applicants from one country.

Step 3: send the visitor to Stripe

When the form is submitted, the add-on creates a Stripe Identity verification session through your account and stores its id and the Stripe-hosted URL on the entry. You decide how the visitor reaches Stripe. The simplest way is to redirect the confirmation to the identity url merge tag, which sends them straight to Stripe’s hosted flow; after they finish, Stripe returns them to the page you set. If you prefer to keep them on your site, use the client secret merge tag with Stripe’s own script to open the flow in a modal. Either way the visitor does the check on Stripe, not on your server.

Step 4: record the result

Stripe processes the document and the selfie and calls your webhook with the outcome. The add-on verifies the signature, writes the verified or failed status onto the entry, updates the status field, and fires a notification event so you can email your team or the visitor. It also releases any held notifications. Every change is recorded in an entry note with the session id, and a failure carries Stripe’s own reason, so you always know why a check did not pass.

The Stripe Identity box on a Gravity Forms entry: the feed, the verified status, the session id and Stripe's status
Every verification is on the entry: the feed, the status, the session id and the reason for a failure.

When something goes wrong

A good integration has to survive a bad network. If Stripe cannot be reached the moment the form is saved, the visitor still sees the normal confirmation and the add-on tries again in the background. Each attempt carries an idempotency key, so a retry reuses the same session instead of creating a second one, which means a flaky connection never doubles your Stripe bill. If an applicant fails a check, you can start a fresh session for that entry from the entry list with one bulk action, and send them back to try again.

For the full field-by-field reference, including the merge tags and the notification events, see the Stripe Identity setup guide in the documentation.

A complete example

Picture a club that offers a members-only rate. The sign-up form has a membership field, a name, an email and a hidden verification status field. The feed verifies only the paid tier, asks for a document and a matching selfie, writes the status to the hidden field, and holds the welcome email until the member is verified. A visitor picks the paid tier, submits, and is sent to Stripe to photograph their driving licence and take a selfie. A minute later Stripe confirms them; the hidden field flips to verified, the welcome email with the member rate goes out, and your admin notification lands with the session id attached. An applicant who cannot pass simply never receives the member email, and the entry shows exactly why.

Good practice

  • Only verify the entries that need it. Use the condition so you do not pay for checks you do not want.
  • Tell visitors up front that an identity check is part of the form, and why, so the Stripe step is not a surprise.
  • Test the whole flow with a Stripe test key before you go live, so you see the redirect, the webhook and the held notifications end to end.
  • Keep the webhook endpoint and its signing secret in sync between Stripe and the add-on, or results will be rejected.

Questions

Do I need a developer?

No. Connecting Stripe, adding the webhook and building a feed are all done in the Gravity Forms admin. Sending the visitor to Stripe is a single merge tag in the confirmation.

Are my keys and documents safe?

Your secret key and webhook secret are encrypted at rest and only ever sent to Stripe. The identity documents and the selfie go directly to Stripe, not to your site, and Stripe returns only the status and a session id.

Who pays for the verifications?

You do, through your own Stripe account, at Stripe’s own price. The add-on never adds a fee and never routes anything through GravityExtra.

Which Gravity Forms versions are supported?

Gravity Forms 2.5 and newer. The add-on is built and tested against Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4, so it runs on both current and older stacks. It is a standard feed add-on, so feeds, conditional logic, merge tags and notification events all behave the way you already expect them to in Gravity Forms.

What happens if a visitor does not finish the check?

Nothing is lost. The entry is saved with a pending status, and the form’s held notifications simply wait. You can see at a glance which entries are still pending, remind the visitor, or start a fresh verification session for them from the entry list whenever you are ready.

Get started

The Gravity Forms Stripe Identity Premium Add-on verifies a submitter’s identity through your own Stripe account for every matching submission, with a photo ID and a matching selfie, the verified status recorded on the entry, merge tags, notification events and held notifications. See the features, the price and the setup guide on the add-on page.

See the Stripe Identity add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr