#pyotr-vasiliev_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1289231196332626003
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ you would track this on your end. Once you create the Account object for your user, you would log what the ID of that Account is and continue to use it when your user returns to your flows.
you mean the stripeID?
I don't know what you're referring to by "stripeID", that's not a term in our ecosystem.
Do you have an example of one of those IDs that you can share?
in the url
that is auto generated and saved in the database linked to your (domits) userID
That is the id of an Account object:
https://docs.stripe.com/api/accounts/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What do you mean by auto generated? Are you using OAuth for your Connect onboarding, or are you making requests to create Account objects and then creating Account Links for them?
are you famillair with aws lambda? because i want to send a screen of it and maybe that become more clear
I have a rough understanding of what they are, but it's not what we specialize in working with so I don't know how much insight I'll be able to get from it.
its an api call with nodeJS
this is what we use as our backend and activate the api through front end (React)
const account = await stripe.accounts.create()
You're creating the Account objects
Then creating Account Links for them.
So you'd track that you already created a Stripe Account for your user. Then if they return to your flow you just create a new Account Link for them using the previously created Account's ID, rather than creating a new Account and Account Link.
wait i dont quite understand what you mean. I have made an issue overview of the problem which i couldnt share in the question form before entering this chat. And maybe this will make the situation more clear:
What is the "Set up zPayment" button? Is that a button that you built and put on your page? Is that the one that creates the Account object from the code that you shared earlier?
Do you have logic on that button to check your database for whether your user already had a Stripe account created?
yeah we do
I'd suggest double checking that then. It sounds to me like your code isn't detecting that your user already has a record in your database, then makes a request to us to create a new Account.
i made a sort of function for that but instead of letting me redirect to the same page it blocks it unless it makes a new accID
so lets say the user is in the middle of the stripe connect proces through Domits and it accidentally clsoes the page , then its accID is saved in the database and then again is able to go to the connect page with a new accID because for some reason it blocks the user to enter the connect page if you paste the same url again.
You don't send them the same URL. You create a new Account Link for them and direct them there.
https://docs.stripe.com/connect/express-accounts#handle-users-not-completed-onboarding
(Not a new Account, just a new Account Link that is created by providing the ID of the existing Account object you created for the user previously)
Account Link URLs are single-use, you have to generate a new one if the previous one was accessed.
now i get it
and one more question we have now multiple profiles in express but how do we delete them?
Something to be mindful of, is that your user will be directed to the refresh_url you provide when creating the Account Link if the link is expired. So you'll want to make sure the logic on that URL isn't also creating new Account objects.
https://docs.stripe.com/api/account_links/create#create_account_link-refresh_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can use this endpoint to delete testmode Connected Accounts:
https://docs.stripe.com/api/accounts/delete
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay thanks alot Toby this session helped us alot!