#impactfx

1 messages ยท Page 1 of 1 (latest)

dire boneBOT
glossy sleet
#

Hello there

gleaming salmon
#

hey there

glossy sleet
#

I believe you should just use 000000 for the code

gleaming salmon
#

tried that

#

thats what failed above

glossy sleet
#

Hrmmm

#

Okay so you are creating a new Express account and using an Account Link with type: onboarding?

gleaming salmon
#

any idea how to unblock us?

glossy sleet
#

Can you tell me about the above for exactly what you are doing?

gleaming salmon
#

we are simply just testing creating express connected accounts for our customers.

#
                account = stripe.Account.create(
                    type="express",
                    country=owner.countrycode.code,
                    email=owner.email,
                    business_profile={"product_description": "OTO Sales Referrals"},
                    capabilities = {
                        "card_payments": {"requested": True},
                        "transfers": {"requested": True},
                    }
                )
                org_owner.stripe_connect = account.id
                org_owner.save()

            link = stripe.AccountLink.create(
                account=account.id,
                refresh_url =f"{org.api}/organizations/{org.guid}/connect_stripe_account/", #url that will trigger account links again with same parameters,
                return_url=f"{org.api}/admin/?stripeconnect=true", #url to exit to after leaving stripe,
                type= 'account_onboarding'
            )```
glossy sleet
#

Thanks that was just what I wanted to clarify. One sec

gleaming salmon
#

this is the page we see when we test the connect redirect.. but we can't actually connect an account cause we dont know the auth code..

glossy sleet
#

Okay on the first page of onboarding did you click the "use test phone number" button?

gleaming salmon
#

no there was no option for that, ill send you a screen shot of the first page

glossy sleet
#

This part at the bottom:

gleaming salmon
#

we dont have that part you are showing..

glossy sleet
#

Oh weird...

#

Can you send me the account ID for one of the test accounts that you created?

gleaming salmon
#

acct_1NaSRnQ83FQifX1L

glossy sleet
#

Thanks looking

#

Okay so I think the issue is that you are setting an email when you create the test account

#

And I assume that email may be paired to another account email already

#

So you can either change that email to something unique

#

Or you can omit that for testing

gleaming salmon
#

but if we want that email because our flow would always send an email.. should the test mode not send a verification code that is tied to that customers number in stripe?

glossy sleet
#

The issue is that we don't send the verification code in test mode so as not to spam

gleaming salmon
#

ah

#

ok so i guess best route then is in local test mode, just never send an email, and hten the code is 00000 or i enter a phone number per your previous screen shot?

glossy sleet
#

Yep that's what I'd do.

gleaming salmon
#

ok ill give that a quick go

glossy sleet
#

๐Ÿ‘

gleaming salmon
#

perfect

glossy sleet
#

๐ŸŽ‰

gleaming salmon
#

works

#

thanks appreciate the help