#tim-s_private-preview-feature
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/1430682991843213437
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Can you share the documentation you are following for this?
Ah, your API version is too old. On the request you shared, the API version is explicitly set by your Ruby code to 2024-06-20.
Per the doc you shared, you need to set
Stripe.api_version = '2025-09-30.clover; embedded_connect_beta=v2;'
Interesting, my doc shows our current API version:
Can you share the exact Ruby code you are using?
# initializer
Stripe.api_key = STRIPE_API_KEY
Stripe.api_version = "2024-06-20; embedded_connect_beta=v2;"
# Creating account session:
acct_id = "acct_1SL6H6GTYTRRlOFx"
account_session = Stripe::AccountSession.create({
account: acct_id,
components: {capital_financing_promotion: {enabled: true}},
})
Hmmm... yeah, that's pretty straight-forward ๐ค
I just gave it a shot with the newer API version and got the same error:
[development]> Stripe.api_version = '2025-09-30.clover; embedded_connect_beta=v2;'
=> "2025-09-30.clover; embedded_connect_beta=v2;"
[development]> Stripe.api_version
=> "2025-09-30.clover; embedded_connect_beta=v2;"
[development]> acct_id = "acct_1SL6H6GTYTRRlOFx"
[development]? account_session = Stripe::AccountSession.create({
[development]? account: acct_id,
[development]? components: {capital_financing_promotion: {enabled: true}},
[development]> })
/Users/tim/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/irb-1.15.2/lib/irb.rb:406:in `full_message': Received unknown parameter: components[capital_financing_promotion] (Stripe::InvalidRequestError)
[development]>
Hmmm... I just tried to make the same API request but I got a permission denied error. It seems like this preview wasn't made Public properly. It shouldn't require any additional permissions, as long as I use the header
Are you authenticated with my Sandbox? This is against a Sandbox environment by the way.
The acct_id is a connected account within that sandbox.
I'm testing my own Sandbox. And what I mean is, it shouldn't require any additional permissions. That means the preview was not sufficient made "public"
So this is something that will need to be fixed within the Stripe API?
Yeah, I'm flagging this internally. It may be related to the errors you are seeing.
Okay so it turns out the docs are in error and this is still in private preview. Unfortunately, what that means is we can't help directly on this server. You'll need to write in to Support to be connected with individuals on the team managing this private preview.
I think we have a contact that can help. Thanks for looking into it.
Great, happy to shed what ๐ก I can ๐