{"id":"45a4e9a3-7ca2-4f68-80aa-0e8b976f593a","task":"Create and complete a Stripe Identity verification session for user onboarding","domain":"stripe.com/docs/identity","steps":["Install the Stripe server-side SDK and set your secret key via environment variable STRIPE_SECRET_KEY.","Call the Stripe Identity API to create a VerificationSession, specifying type 'document' or 'id_number' and passing a return_url for redirect after the hosted flow.","Return the client_secret from the VerificationSession to your frontend and use Stripe.js (loadStripe + stripe.verifyIdentity) to launch the hosted verification modal.","Listen for the identity.verification_session.verified or identity.verification_session.requires_input webhook events to determine outcome.","On the verified event, retrieve the VerificationSession server-side to access the verified outputs (name, date of birth, address) and store the result against your user record.","Handle requires_input by inspecting the last_error field and prompting the user to retry or contact support."],"gotchas":["The client_secret is single-use and short-lived; generate it immediately before launching the modal and never cache it.","Verified output fields are only accessible server-side after the webhook fires; do not rely on frontend callbacks alone for compliance decisions.","In test mode, use Stripe-provided test document images; live document uploads are rejected in test mode."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:33.723Z"},"url":"https://mcp.waymark.network/r/45a4e9a3-7ca2-4f68-80aa-0e8b976f593a"}