#baller
1 messages · Page 1 of 1 (latest)
hello! does that email already have an existing account linked to your platform?
hey thanksfor your reply
no it doesn't
for the express it prompts new account creation
but for standard it doesn't
not sure what I'm doin g wrong
my code
account = stripe.Account.create(
type="standard",
country="US",
email=request.user.email,
business_type="individual",
business_profile={"product_description": f"{request.user.username}'s account/"},
individual={"first_name": request.user.first_name, "last_name": request.user.last_name, "email": request.user.email},
)
print(f"account id: {account.id}")
request.user.wallet.account_id = account.id
request.user.wallet.save()
account_link = stripe.AccountLink.create(
account=f'{account.id}',
refresh_url=f"{BASE_URL}/accounts/user/stripe/reauth/",
return_url=f"{BASE_URL}/accounts/user/stripe/account/",
type="account_onboarding",
)
return JsonResponse(account_link, status=200)
return HttpResponse("Account is already connected to stripe")```
what if you try opening the link in incognito mode?
Hmm that's no good
Hi @pulsar plume I'm taking over, let me know if you have any follow-up questions
still having issues with account creation it didn't work in incognito, still getting account login and no button to setup/create a new account
Can you tell me what are you trying to achieve?
just to link my account
account onboarding process
following this process https://stripe.com/docs/connect/standard-accounts
OK, so you create an account through /v1/accounts API, and then create an account link to start the onboarding process?
Hi @pulsar plume how can I help?
hey
so I tried following the process
so I'm creating the account and creating account link
and when I redirect to that url
I see the above page
the first message
and there's no option to create account
it prompts me to login when I want to create a new account for that new user
btw its late for me so I will respond after some time