#stan-trees_api

1 messages ¡ Page 1 of 1 (latest)

daring prismBOT
dreamy ospreyBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

daring prismBOT
#

👋 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/1240486353095888916

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

narrow yarrow
#

specifically onboarding for connect accounts

#

would i use external account? or .updated

#

i tried doing this ```js
(async () => {
const accountLink = await stripe.accountLinks.create({
account: accId,
refresh_url: 'https://example.com/reauth',
return_url: 'https://example.com/return',
type: 'account_update',
});

    console.log(accountLink.url)
})()``` but it says i cant use `acount_update`
earnest mortar
#

You should listen to account.updated

narrow yarrow
#

but i couldnt make an update link

#

that way i can trigger the account update event

narrow yarrow
earnest mortar
narrow yarrow
narrow yarrow
#

is there any other way i can test my webhook?

earnest mortar
narrow yarrow
#

right but how do i trigger the account_update event

earnest mortar
#

What's not working? did you use stripe trigger account.updated

narrow yarrow
#

oh i can do that?

#

is there something i can do similar to metadata in creating a session? that way i can pass some data that i need

#

like metadata but for creating account link and then receiving it on webhook

earnest mortar
#

no, account link dosn't provide metadata.

narrow yarrow
#

how can i correlate a user to their connected account id?

#

user on my platform

#

right now i have it set up as they go through the create account link like this

    (async () => {
        const accountLink = await stripe.accountLinks.create({
            account: accId,
            refresh_url: 'https://example.com/reauth',
            return_url: 'https://example.com/return',
            type: 'account_update',
        });

        console.log(accountLink.url)
    })()``` but i need it so i can pass a string in through the account link too
#

that way i know who created the account

earnest mortar
narrow yarrow
#

is the only way to have a domain?

earnest mortar
#

You don't have one?

narrow yarrow
#

my platform isnt like a website, im trying to correlate a discord id to the account created

#

is the email necessary for creating a connected account?

#

or can i pass any string

#

like this

#
const account = await stripe.accounts.create({
            type: 'express',
            country: 'US',
            email: 'test'
        })```
earnest mortar
#

No, email is not mandatory

narrow yarrow
#

but its not required for the email to be an email format right?

#

like i can just put an id in there and it'd be fine

#

just easier for me to identify

earnest mortar
#

I don't think it'd work but you can test it out

narrow yarrow
#

does it check for email?