#Pravin-connect
1 messages · Page 1 of 1 (latest)
hello @sour solstice ! sorry but i don't quite understand your question. Can you perhaps rephrase?
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
alright, what were you expecting instead?
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
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
someone else, not you, might have used this email before
it's an email address which someone else may have thought of
hmm that's odd, can you share an account link for me to take a look?
hmmm
it directs me to https://cloud.gosite.build/login
i thought it should direct me to the Stripe hosted onboarding page
maybe cause you opened it once before
i tried creating a Standard account, with a random email, and opened the link in incognito
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"
same page is coming to me for new user as well
i am not sure what password should i provide
try keying in a random password and see what happens
its invalid password
for testing i am using only single password for all the accounts
please try with this link
it still goes to https://cloud.gosite.build/login
if you try jenny.rosen+235454389796@example.com as the email
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
oh, so you tried and it works now?
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
nope. These are user security related, so it's not something you would be able to specify when creating the account via the API
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
you would only need to update your secret key in your code, there is no need to migrate
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
do you mean you switched from test mode to live mode key?
to clarify, you rolled your key?
i think yes
can you share your platform account id?
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.
request id is not mentioned in exception
it's actually found in the response header : https://stripe.com/docs/api/request_ids
alright, feel free to reach out again anytime!
thank you