#Pravin-connect

1 messages · Page 1 of 1 (latest)

plain acorn
#

hello @sour solstice ! sorry but i don't quite understand your question. Can you perhaps rephrase?

sour solstice
#

sure

#

i am trying to create standard connect account as below

#

AccountCreateParams accountType = AccountCreateParams.builder()
.setType(AccountCreateParams.Type.STANDARD)
.setEmail("abcd@test.com")
.build();

#

account = Account.create(accountType);

#

and by using accound id from this account i am generating accountLink to do KYC

#

by using that account link i am getting redirected to stripe page as below

#

Its automatically taking email Address which i have passed while creating new account

#

as you see in my above code

plain acorn
#

alright, what were you expecting instead?

sour solstice
#

after clicking on continue its redirecting me to below page

#

and ask for password

#

could you please guide what should be the password heare.

#

i have not password anywhere

plain acorn
#

ah, so probably the email address that you're using already has a corresponding Stripe account

#

use a different email address each time you're attempting to test a new account sign up fflow

sour solstice
#

no

#

its new fresh user

#

onboarding to stripe first time

plain acorn
#

someone else, not you, might have used this email before

#

it's an email address which someone else may have thought of

sour solstice
#

i tried with different mail combinations

#

it still blocked at password

plain acorn
#

hmm that's odd, can you share an account link for me to take a look?

sour solstice
#

yes give me a minute

#

its valid for only 5 min

plain acorn
#

argh

#

sorry, looks like i passed the expiry time

sour solstice
#

let me generate new

plain acorn
#

hmmm

#

i thought it should direct me to the Stripe hosted onboarding page

sour solstice
#

correct

#

let me check once from my end

plain acorn
#

maybe cause you opened it once before

#

i tried creating a Standard account, with a random email, and opened the link in incognito

sour solstice
#

correct

#

please click on continue

#

it will ask you for password

plain acorn
#

this button says "continue"

#

so it's expected - it's asking you to select a password

#

if it's an existing account, like in your previous screenshot, it'll show "Log in"

sour solstice
#

same page is coming to me for new user as well

#

i am not sure what password should i provide

plain acorn
#

try keying in a random password and see what happens

sour solstice
#

its invalid password

#

for testing i am using only single password for all the accounts

#

please try with this link

plain acorn
#

if you try jenny.rosen+235454389796@example.com as the email

sour solstice
#

could you please generate freash account link by adding dummy mail id

#

and please share it to me

#

ill try using that

#

i think its worked for me

plain acorn
#

oh, so you tried and it works now?

sour solstice
#

yes i tried with most unique mail id

#

and it worked

#

it accepted new password

#

is there any way to send password and mobile number while creating new account

plain acorn
#

nope. These are user security related, so it's not something you would be able to specify when creating the account via the API

sour solstice
#

perfect

#

i have one more last question

#

if i changed stripe secrete key. How will i migrate all the accounts from old stripe key to new stripe key

plain acorn
#

you would only need to update your secret key in your code, there is no need to migrate

sour solstice
#

i am getting below error

#

com.stripe.exception.InvalidRequestException: The account acct_1K4ji8PKmuMkbD3j was a test account created with a testmode key, and therefore can only be used with testmode keys.

#

we just modified stripe key in test mode

#

nothing else

plain acorn
#

do you mean you switched from test mode to live mode key?

sour solstice
#

same used in code as well

#

no old and new both are in test mode only

plain acorn
#

to clarify, you rolled your key?

sour solstice
#

i think yes

plain acorn
#

can you share your platform account id?

sour solstice
#

yes

#

acct_1K4ji8PKmuMkbD3j

plain acorn
#

hmmm, i can't find that particular request

#

do you have the request id for it too?

#

for the request that threw com.stripe.exception.InvalidRequestException: The account acct_1K4ji8PKmuMkbD3j was a test account created with a testmode key, and therefore can only be used with testmode keys.

sour solstice
#

request id is not mentioned in exception

plain acorn
sour solstice
#

we can close this thread now

#

ill do more analysis on issue

#

and come back to you

plain acorn
#

alright, feel free to reach out again anytime!

sour solstice
#

thank you