#ravinder_api

1 messages ¡ Page 1 of 1 (latest)

shut mulchBOT
teal thunderBOT
#

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.

shut mulchBOT
#

👋 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/1234930678475264060

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

magic wave
#

previous strip dev confirmed that i create generate account session on platform and use client secret on different webisite

#

on website i am using account client secret and test publish able key, am i missing something?

next dome
#

Hello again! As I mentioned earlier, you can't make that request on the connected account, it must be made on the platform account. You're using the wrong publishable key.

magic wave
#

is it possible to use this account session key on diffrent website?

#

can you debug this req_xAW59DY7lK7ImX

#

for testing and confirming your theroy i am using plateform live publishable key

#

it is strill not working

next dome
#

Sorry, I think we're talking past each other. You are initializing Stripe.js with the wrong API key. I don't know how else to explain it.

#

The publishable key you're using belongs to the connected account and will not work.

#

You need to use your platform's publishable key.

magic wave
#

I did . this is log req_xAW59DY7lK7ImX. can you check?

#

sorry for troubling you

next dome
#

Yeah, again, you're using the wrong publishable key.

#

You're using the publishable key for the connected account you got during the OAuth process.

#

That is not the correct key to use.

#

You need to use your platform's publishable key. Not one associated with a specific connected account.

magic wave
#

how can you say that i am not suing plateform publishable key?

#

i copied it directely from plateform account and it is still not working

#

cna you conform flow once again?
so i have to use live secret key to create account session, after that i can use account session client secrect key with live or test publishable key of plateform account to integrate stripe connected embedded components

next dome
#

Yes. You always use your platform's keys for this flow, never a key associated directly with a connected account.

#

The publishable key you're using for that request ends in z21a which is a key associated with a specific connected account.

#

It is not your platform's publishable key.

magic wave
#

now i am using 00ud1krX8C which is plateform test publishable key. can you check log req_TmnbJ2BsbuwITs

#

FYI, i am on localhost, does it make any difference?

next dome
#

Localhost doesn't matter.

#

Ah, okay, so this request does use the correct key, but the issue now is that you're mixing live mode and test mode. The client secret you used was for a live mode Session, but the key you used is for test mode.

#

Note the different error.

magic wave
#

how can i create account session with testmode?

#

i am missing any param in account session request?

#

or do i have to use test plateform test secret to generate account session

next dome
#

You need to use your test mode secret key to create the Account Session on your server.

#

You're currently using your live mode secret key.

magic wave
#

is it true that i have to connect account with plateform account with live and testmode?

#

currentely i can see connected acocunt in plateform live mode only?

#

on stripe test mode there are not any account connected display

next dome
#

Let's back up. Is your goal to create an Account Session in live mode or test mode?

magic wave
#

i am getting following error when using plateform test mode publishable key

Stripe\Exception\InvalidRequestException: No such account: 'acct_1HAi7MIqONfMPfff'; a similar object exists in live mode, but a test mode key was used to make this request. in file /Users/ravinderkumar/Local-Sites/stellar-commerce/app/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php on line 38
#

at this moment test mode

next dome
#

Can you give me the request ID showing that error?

teal thunderBOT
magic wave
#

req_cToenTzn2zMfRI

next dome
#

Okay, as you mentioned you only have a live mode connection to this account, so you'll need to do this in live mode. That means you need to use your platform's live secret key on your server and your platform's live publishable key with Stripe.js to make it all work.

magic wave
#

how can make it work in test mode?

next dome
#

You would need to establish a test mode connection to the connected account using OAuth.

magic wave
#

please help. can you send me document link which help me to implement this?

magic wave
#

thank you

#

we are good now