#ottoman-general_webhooks

1 messages · Page 1 of 1 (latest)

static hearthBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1348545994102542457

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

gloomy ocean
#

Um which identity document you submited?

odd dagger
#

Ahh okay I’ll give that a go thank you!! I’ll keep you posted.

#

I had tried license but maybe my test data didn’t match the link you sent

static hearthBOT
worn badge
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

odd dagger
#

thanks mate, gonna give it a go soon

#

hey mate,

so I tried, I get this successful verification:

Event details
identity.verification_session.verified
Event ID
Origin date
Mar 10, 2025, 7:46:25 PM
Source
Automatic
API version
2024-12-18.acacia
Description
The VerificationSession with ID vs_1R11yLCRJmRjKgK8VSkMByhH transitioned to verified

But my connected customer still says:

Provide a document for Osman Remzi
Past due
Osman Remzi must verify their identity with a valid document to avoid disruptions to capabilities.

Information needed
Identity document
The person's keyed-in identity information could not be verified. Correct

#

I just simulated the success response, there was an option to 'simulate success'

#

what im trying to do is integrate this with my website, gotasker.com.au - pretty much similar to Airtasker, so a user posts a task, another user puts an offer in, at this point when the job is assigned the task owner 'holds' (payment intent) the money. But once the task is done, before the person who done the job gets paid, I want them to do an ID check to verify themselves via Stripe

#

should I verify and take a photo of my drivers license (which matches the address I put in?), but I used DOB: Jan 1, 1901 as per the instructions, so that won't match either? hmmm I'm confused

static hearthBOT
worn badge
#

When checking the Account requirements field, what is saying actually ?

odd dagger
sage vector
#

Why are you using Identity to verify the user?

odd dagger
#

just to confirm the user is a legit person

#

before releasing the payment to them

sage vector
#

I don't know if it works that way? I'm not sure you can associate the Identity session to your Connected account. Is there a doc or something you're following?

#

Generally you'd create an Account Link for them and redirect them to that and we'd collect the required info from them there

odd dagger
#

ah okay ah okay I was trying to do it without the stripe express onboarding

#

I gather some details within my website (DOB, Mobile, Billing Address, BSB / Account No) and silently send to stripe which creates the custom account

#

and then I tell the user they need to verify themselves:

sage vector
#

Well you can do it via the API, but you just need to send the file/documents directly via the API too

odd dagger
sage vector
#

So there'll be file_xxx objects returned in the successful Identity session and you can then send them to the Accounts API to verify

odd dagger
sage vector
#

I don't believe so no

#

You can use Identity to collect the ID/documents, but you need to manually forward the generated files to the Accounts API

odd dagger
#

ahhh okay I might try that

sage vector
#

So you can pass the file_xxx ID generated by Identity to those params

odd dagger
#

thank you, I will give that a go, appreciate it!

#

been going in circles with this 😄

#

sorry one more Question, can I simulate the successful document by just clicking this?

sage vector
#

Not sure what that screenshot is from?

odd dagger
#

its the Stripe Identity verification, ill give it a go, thanks!

sage vector
#

Not super familiar with Identity, so I'd guess so yeah!

odd dagger
#

no stress mate, appreciate your help though, I think you've helped me progress, I'm one step closer!

#

now im getting, "User provided data is automatically marked unverified in testmode. To test different outcomes use the options on the testing page to force a particular verification result." which is a good sign

sage vector
#

Yeah if you use 'random' data it'll trigger an actual verification flow as opposed to test credentials that will bypass that and end up in the state they describe

odd dagger
#

yeah makes sense, thank you!

odd dagger
#

worked!

#

FYI, this function done the job:

#

export const forwardIdentityDocuments = async (req, res) => {
try {
const { sessionId, userId } = req.body;

const user = await UserModel.findById(userId);
if (!user || !user.stripeConnectAccountId) {
  return res.status(404).json({ message: "User or Stripe account not found" });
}

const verificationSession = await stripe.identity.verificationSessions.retrieve(sessionId);

if (verificationSession.status !== 'verified') {
  return res.status(400).json({ message: "Verification not completed" });
}

const frontFileId = verificationSession.last_verification_report.document.front;
const backFileId = verificationSession.last_verification_report.document.back;

await stripe.accounts.update(user.stripeConnectAccountId, {
  individual: {
    verification: {
      document: {
        front: frontFileId,
        back: backFileId
      }
    }
  }
});

user.stripeConnectStatus = "verified";
await user.save();

res.json({ success: true, message: "Identity documents forwarded to Stripe Connect" });

} catch (error) {
console.error("Error forwarding identity documents:", error);
res.status(500).json({ error: error.message });
}
};

sage vector
#

Awesome! 🎉

odd dagger
#

yep definitely celebrating lol frustrating week or two

#

lucky I came across this discord page, I tried the stripe chat a few times but they don't seem very technical, they're more sales people

#

as in the stripe website live chat