#xinjin-custom-acct
1 messages · Page 1 of 1 (latest)
hello, no webhook as there was nothing created/updated in your Stripe account. Plus your code creates Custom accounts so you would catch it there
How can I captcha that?
not captcha that
catch it
like you know your code tries to create a Custom account
so your code gets a response, either a Custom Account, or an error
that is what I meant
const card = event.data.object
console.log('card', card)
if (
card.charges_enabled &&
card.requirements.eventually_due.length === 0 &&
card.requirements.pending_verification.length === 0 &&
card.external_accounts.total_count > 0
) {
return await this.handleExternalAccountCreated(card)
}```
To confirm all validation worked,
I am using. this hook.
So in the case of invalid data,
it should be failed when submitting user's detail?
So I am creating custom stripe connect account.
await stripe.accounts.update(accountId, data)
I updated with full of detail.
In the case of valid data,
I can check the account is validated by the stripe by this method.
So, I want to know the case that validation is failed.
So, I want to know the case that validation is failed.
yes when validation of any Account or Person information fails, that is reported back on theaccount.updatedevent, the Account object is updated with different fields like therequirementshash that tells you what additional verification details are needed
Can you send me example of account.update object when validation is failed?
It there any fields which is related with validation is failed?