#johan_docs
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/1371458651889598495
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- johan_docs, 3 days ago, 85 messages
before:
const links = await stripe.accountLinks.create({
account: user.stripe.id,
failure_url: ${protocol}://${host}/dashboard/settings/payment,
success_url: ${protocol}://${host}/dashboard/settings/payment,
type: 'custom_account_verification',
collection_options: {
fields: 'eventually_due',
future_requirements: 'include',
},
});
this was working fine on my previous version of stripe, I have updated to v10 and I have this so far:
const links = await stripe.accountLinks.create({
account: user.stripe.id,
refresh_url: `${protocol}://${host}/dashboard/settings/payment`,
return_url: `${protocol}://${host}/dashboard/settings/payment`,
type: 'custom_account_verification',
collect: 'eventually_due',
});
but I need the future_requirements: 'include', how do I set it ?
What do you mean by 'don't exist'?
it dissapeared after upgrading stripe from v8 to v10
this is my version of stripe: "stripe": "^10.17.0",
You can still use those parameters, they're jsut not typed in that version of the SDK
You can:
ts-ignorethe error- `Extend the types to include the,
ah okay. perfect thank you
what about refresh_url and return_url. those are OK to be added right?
Well they're required and should be typed yes