#luca-baldassarri_error
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1338910985443872860
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- luca-baldassarri_docs, 6 hours ago, 7 messages
Hello, good question, looking in to this. Can you send me the code that you are currently calling when creating an account here?
RequestOptions requestOptions = BuildAuthStripeObject(request.ApiKey);
AccountCreateOptions accountOptions =
_mapper.Map<AccountCreateOptions>(request);
Account account = service.Create(accountOptions, requestOptions);
This is the map of accountCreateOptions
CreateMap<AccountOnboardingSessionRequest, AccountCreateOptions>()
.ForMember(y => y.DefaultCurrency, opt => opt.MapFrom(src => src.AccountDetails.Currency))
.ForMember(y => y.Country, opt => opt.MapFrom(src => src.AccountDetails.Country))
.ForMember(y => y.Email, opt => opt.MapFrom(src => src.AccountDetails.Email))
.AfterMap((src, dest, context) =>
{
dest.Company = context.Mapper.Map<AccountCompanyOptions>(src);
dest.Capabilities = new AccountCapabilitiesOptions
{
CardPayments = new AccountCapabilitiesCardPaymentsOptions
{
Requested = true,
},
Transfers = new AccountCapabilitiesTransfersOptions
{
Requested = true,
},
};
dest.Controller = new AccountControllerOptions
{
StripeDashboard = new AccountControllerStripeDashboardOptions
{
Type = "none"
},
Fees = new AccountControllerFeesOptions
{
Payer = "application"
},
Losses = new AccountControllerLossesOptions
{
Payments = "application"
},
RequirementCollection = "application",
};
});
Apologies just getting back to this. What are you trying to pass in through AccountCompanyOptions?
I value the Name field of AccountCompanyOptions object only
Ah and I was confusing myself a bit. All that that error is saying is that if you pass the company info you should also pass business_type: 'company' and if you are passing individual info you should pass business_type: 'individual'
https://docs.stripe.com/api/accounts/create#create_account-business_type
We could technically infer that from you passing that info alone, but we want your code to also pass that to make sure your intentions clearer
Hi hi! I’m going to be jumping in here; give me a moment to read back.