#bartech_unexpected
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/1334128870286299218
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Full error message: clientSecret should be a client secret of the form ${id}secret${secret}. You specified: accs_secret__Rfv6bNEQvRBzGtT1mLkc8qMhtGHu6EYGKrLYSSbwg3z6nks.
Can you share the req_xx ID of the request where you create the session?
Sure: req_qAMxmKBIEZlP4i
Can you try create another session? Seems like they're an extra _ in the secret: accs_secret__R*
req_CIPaTbjL8o90Al. Yes, it returns it with double underscore (secret__XYZ)
Can you share with me the exact error that the frontend code throws when you try and initialise with the secret
Hmm, or the exact code you're using to initialise?
Yeah I think you're using the wrong code to initialise the client. That looks like an Elements instance?
Should be a different library entirely: https://docs.stripe.com/connect/get-started-connect-embedded-components?platform=web&lang=ruby#load-and-initialize-connect.js
loadConnectAndInitialize({
publishableKey: 'pk_xxx'
fetchClientSecret: fetchClientSecret,
})```
Where fetchClientSecret is your API call to retrieve and return an Account Session secret
Ahh alright, let me start from scratch with this. Thank you for pointing this out