#prabhaw-soti-ebpearls_api

1 messages ¡ Page 1 of 1 (latest)

stark sigilBOT
#

👋 Welcome to your new thread!

⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

🔗 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/1212427379960447027

📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.

⏲️ 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. Thank you for your patience!

lunar nestBOT
#

Hello! We'll be with you shortly. 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.

tawdry lotus
#

Hello, taking a step back, is this all happening to build your own custom onboarding page rather than using Stripe's hosted onboarding page? Our page should be able to automatically collect these details for you, so it is definitely worth considering if you have not already

#

If you want to keep looking at this error specifically, can you send me the text of your code that is getting this error and the text of the full error message that you are getting back?

short sorrel
#

if(body.isCompany){

const res = await this.stripeService.stripe.accounts.create({
  type: 'custom',
  business_profile: {
    mcc: '8299',
    product_description: 'Sell and buy animal.',
    
  },
  country: 'au',
  company:{
    registration_number:body.acn,
  },
  capabilities: {
    card_payments: {
      requested: true,
    },
    transfers: {
      requested: true,
    },
  },
  account_token: body.connect_tok,
});
#

in am creating account for company and while i sne token from frontend and put connect_token i get this error ::: Parameter 'company' cannot be used in conjunction with an account token. To set this field create a token with the desired changes. Pass the token with 'account_token' in a request without setting 'company'

tawdry lotus
#

Have you tried making that call without setting company?

short sorrel
#

like individual account is ok it's creating account ( my quesion is i don't need account_type or not )

tawdry lotus
#

I think you can specify business_type: 'company' but the API error you are getting is saying you can't upload the document and also specify

        registration_number:body.acn,
      },  ```
short sorrel
#

so i should remove company:{
registration_number:body.acn,
},

#

registration_number is required while creating company account but ios sdk don't have option to set it while createing token

tawdry lotus
short sorrel
#

i don't know which version is user but you can tell me which version should be used so that i will consider with ios dev

tawdry lotus
#

Can you show me your iOS code for this? I am having trouble looking this up in our SDK reference