#impactfx
1 messages ยท Page 1 of 1 (latest)
Hello there
hey there
I believe you should just use 000000 for the code
Hrmmm
Okay so you are creating a new Express account and using an Account Link with type: onboarding?
Can you tell me about the above for exactly what you are doing?
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'
)```
Thanks that was just what I wanted to clarify. One sec
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..
Okay on the first page of onboarding did you click the "use test phone number" button?
no there was no option for that, ill send you a screen shot of the first page
This part at the bottom:
Oh weird...
Can you send me the account ID for one of the test accounts that you created?
acct_1NaSRnQ83FQifX1L
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
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?
The issue is that we don't send the verification code in test mode so as not to spam
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?
Yep that's what I'd do.
ok ill give that a quick go
๐
perfect
๐