#morteza_api

1 messages ยท Page 1 of 1 (latest)

lone fulcrumBOT
#

๐Ÿ‘‹ 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/1375412669686874143

๐Ÿ“ 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.

wet minnow
#

I have installed "stripe": "18.1.0-beta.2" version

ruby escarp
#

๐Ÿ‘‹ happy to help

#

would you mind sharing the request ID?

wet minnow
#

I don't think I can , I don't have access to the panel

ruby escarp
#

what's the account ID?

wet minnow
#

is it safe if i send here ?

ruby escarp
#

yes

wet minnow
#

acct_1NBFV8PxqJiGKRXD

ruby escarp
#

that's the custom account you're creating the account session for, right?

wet minnow
#

I guess

ruby escarp
#

I don't see any requests going to this endpoint on the platform level /v1/account_sessions

#

are you sure you're using the right secret key?

wet minnow
#

yes

#

const accountSession = await stripe.accountSessions.create({
account: "acct_1NBFV8PxqJiGKRXD",
components: {
capital_financing: {
enabled: true,
},
capital_financing_promotion: {
enabled: true,
},
capital_financing_application: {
enabled: true,
},
},
});

#

this is my codes

#

I have a question, I guess this account is a connected account under our main account, is it ok ?

#

I mean under platform account

wet minnow
#

so it should still work right ?

ruby escarp
#

sorry I just found the request

#

give me a second to take a look

#

can you remove the explicit api version

  'sk_live_xxx',
  { apiVersion: '2020-08-27; embedded_connect_beta=v2;' }
);
#

and try again?

wet minnow
#

An error occurred: Received unknown parameter: components[capital_financing] (Hint: In order to access this beta feature, you must explicitly specify which version of the beta you want, by passing an HTTP header "Stripe-Version: 2025-03-31.preview;embedded_connect_beta=v2".)

ruby escarp
#

could you do that please?

wet minnow
#

I removed explicit version and got the error just shared

ruby escarp
#

replacing '2020-08-27; embedded_connect_beta=v2;' with '2025-03-31.preview;embedded_connect_beta=v2'

wet minnow
#

the same error. :An error occurred: Received unknown parameter: components[capital_financing]

#

{ apiVersion: '2025-03-31.preview;embedded_connect_beta=v2' }

#

oh wait

ruby escarp
#

there's no capita_financing all alone

#
    capital_financing: {
      enabled: "true",
    },
    capital_financing_application: {
      enabled: "true",
    },
    capital_financing_promotion: {
      enabled: "true",
    },
  },```
should be 
```components: {
    capital_financing_application: {
      enabled: "true",
    },
    capital_financing_promotion: {
      enabled: "true",
    },
  },```
#

actually there is

#

nevermind me

wet minnow
#

Received unknown parameter: components[capital_financing_application]

ruby escarp
#

I just realized that you might not be gated properly

#

how did you get access to this feature?

#

did you contact your AE?

wet minnow
#

{ apiVersion: '2025-03-31.preview;embedded_connect_beta=v2' }

is this the correct way to set version ?

ruby escarp
#

yes

#

that's not the issue

wet minnow
#

"Stripe-Version: 2025-03-31.preview;embedded_connect_beta=v2".

in the error message the field seems to be Stripe-Version, that's why

ruby escarp
#

yes that's the header

wet minnow
ruby escarp
#

yes but I think it's not configured correctly

#

would you mind replying to the thread that you had with support yesterday telling them that you're not able to access the feature and ask them to look whether they correctly configured your account?

wet minnow
#

ok

ruby escarp
wet minnow
#

ok , thank you

#

I have installed "stripe": "18.1.0-beta.2"

#

is it ok ? or i should install latest version ?

ruby escarp
#

this is fine

wet minnow
#

this is the email stripe has sent, I use live secret keys , what about this

ruby escarp
#

ok so as mentioned in this email, this was only enabled in test mode

#

but you're using your live secret key

#

so you don't have access to that feature in live mode

wet minnow
#

is it possible to make it available for live mode

#

we wanna use this feature in our production app

ruby escarp
#

you need to reply to that email

#

would you mind just removing the image from that message?

#

thanks ๐Ÿ™‚

wet minnow
#

thank you

#

I have test secret keys

#

let me test it

#

An error occurred: Invalid Stripe API version: 2020-08-27; embedded_connect_beta=v2;. You do not have permission to pass this beta header: embedded_connect_beta. If you have any questions, we can help at https://support.stripe.com/.

#

this is for test keys

ruby escarp
#

did you use the correct test key?

wet minnow
#

I hve one , don't know if they are still valid

#

lemme check

ruby escarp
#

I don't see any recent requests on your platform's test environment

#

is it a sandbox? or test mode?

wet minnow
#

test key is fine

ruby escarp
#

is it for acct_1Frr2CLmjdnG8GX0

#

please double check

wet minnow
#

yes

ruby escarp
#

I don't see any recent requests

#

is it a sandbox?

wet minnow
#

An error occurred: Received unknown parameter: components[capital_financing]

#

aain got this for sk_test

ruby escarp
#

when I say sandbox I mean on your dashboard you can choose between test mode and creating a sandbox

wet minnow
#

uh huh

#

not sure which one is selected

ruby escarp
#

do you have access to the dashboard?

wet minnow
#

I should ask the Admin, where in dashboard can I select that

lone fulcrumBOT
dusk galleon
#

hi! I'm taking over this thread.

wet minnow
#

hi soma

dusk galleon
#

in the full error message you get from Stripe, you should see a Request ID (req_xxx). can you share it?

wet minnow
#

req_PrHJz8s8evGSFP

#

here you are

#

@dusk galleon

dusk galleon
#

thanks, that's helpful! having a look

#

the components.capital_financing_application property is only available in "private preview", as mentioned in the doc link you shared. did you request access to that feature?

wet minnow
#

yes

dusk galleon
#

and did you get a reply from Stripe saying that you do have access?

wet minnow
#

yes , they said we have access in test mode now and i use test publishable key and test secret key

dusk galleon
#

I think there was a mistake somewhere, because I don't think your account was enabled, and that explain why you get that error.

#

can you reach out to Stripe support about this?

wet minnow
#

yes

#

thanks