#baller

1 messages · Page 1 of 1 (latest)

hoary folioBOT
west sedge
#

hello! does that email already have an existing account linked to your platform?

pulsar plume
#

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")```
west sedge
#

what if you try opening the link in incognito mode?

hoary folioBOT
pulsar plume
#

Hmm that's no good

rose plaza
#

Hi @pulsar plume I'm taking over, let me know if you have any follow-up questions

pulsar plume
#

thanks

#

do you know any thing else I can try

pulsar plume
rose plaza
#

Can you tell me what are you trying to achieve?

pulsar plume
#

just to link my account

#

account onboarding process

rose plaza
#

OK, so you create an account through /v1/accounts API, and then create an account link to start the onboarding process?

rose plaza
#

Hi @pulsar plume how can I help?

pulsar plume
#

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