#braydensterrett
1 messages · Page 1 of 1 (latest)
HI 👋
What is the Q?
Looking for a way to specify a default value for the URL required by the person onboarding..
Is that supported?
Nope
Ah shoot, and this is always going to be required? There's no way we can not require it?
Oh wait you mean the business URL?
yeah, sorry
We'll basically have people selling things in a marketplace and we'd like to fill that box with a link from our own app. Like their seller profile. We think it will be relatively confusing for people if we don't provide them something default.
As well, can we fill the email box with the email we have on file for them already?
You can. The fields will still be editable in the onboarding form but you can fill out as much detail as you have when creating the account and that will pre-fill the fields. This information is in the business_profile property of the Account object: https://stripe.com/docs/api/accounts/create#create_account-business_profile
Okay, so something like,
Stripe::Account.create({
type: "custom",
email: <seller email>,
business_type: "individual",
individual: {
email: <seller email>
},
business_profile: {
url: <seller profile url>
},
...
})
Should do it?
To fill in both the email and business url with a default value?
I'm already filling the email like this, but it's not showing the value that I want in the onboarding form.. it's still just blank. Am I doing that part wrong?
I think that field is the top level email property found here: https://stripe.com/docs/api/accounts/create#create_account-email
Okay, I'm passing that one too
Still not filling it in. Should have included it in my example. I've updated it.
Hmmm when I create a new account in Test mode it just grey's out the email
Okay I was able to go through the Account link onboarding without providing a business URL or email (but in Test mode). Here is the payload I used
data = {
"type": "custom",
"country": "US",
"business_type": "individual",
"email": "jbat@bufo.io",
"requested_capabilities": ["card_payments", "transfers"],
"business_profile": {
"mcc": "5734",
"url": "https://bufo.io",
},
"individual": {
"first_name": "J",
"last_name": "Bat",
"dob": {
"day": 1,
"month": 1,
"year": 1971
},
"address": {
"city": "San Francisco",
"line1": "510 Townsend St",
"postal_code": "94103",
"state": "CA",
"country": "US"
},
"id_number": "000000000",
"ssn_last_4": "0000",
},
}