#umar_api

1 messages ยท Page 1 of 1 (latest)

fallen nymphBOT
#

๐Ÿ‘‹ 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/1271531818608361492

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

torpid pollen
#

const account = await stripe.accounts.create({
type: 'custom',
country: 'US', // or the relevant country
business_type: 'individual', // or 'company' depending on your case
individual: {
first_name: 'John',
last_name: 'Doe',
dob: {
day: 15,
month: 6,
year: 1980,
},
address: {
line1: '1234 Main Street',
city: 'Anytown',
state: 'CA',
postal_code: '12345',
country: 'US',
},
// id_number: '321-32-4576', //Social Security Number
// ssn: '123-45-4576',
ssn_last_4: '4576', // Last four digits of Social Security Number
phone: '+14155552671', // Phone number
email: 'john.doe@example.com', // Email address
},
capabilities: {
card_payments: {
requested: true,
},
transfers: {
requested: true,
},
},
tos_acceptance: {
date: Math.floor(Date.now() / 1000), // Current timestamp in seconds
ip: '192.168.10.10', // IP address of the user accepting the TOS
},
business_profile: {
name: 'John Doe LLC 2',
support_email: 'support@example.com',
url: 'https://www.johndoe.com', // Business website
// mcc: '5734', // Optional, Merchant Category Code
// industry: 'Retail', // Industry
},
metadata: {
industry: 'Retail', // Add industry information in metadata
},
// Additional fields based on business type and country
});

Currently I am using this code to create account

elder turtle
#

HI ๐Ÿ‘‹

What is your goal?

#

Are you trying to provide enough information in the initial account creation that the account doesn't have an requirements after it is created?

torpid pollen
#

My goal is to create the account in one go or atleast i should know that which object fields do I have to send which are required.
As stripe is asking fo SSN but I can't find that where I can send ssn so that it'll not ask me for SSN

elder turtle
torpid pollen
elder turtle
#

000-00-0000 for SSN

torpid pollen
torpid pollen
elder turtle
#

That's up to you to decide

torpid pollen
#

I don't know, how to set this. That's why I'm here

#

๐Ÿ‘€

fallen nymphBOT
torpid pollen
#

It's asking for the industry. But I don't know in which field I can specify this using api

elder turtle
torpid pollen
#

Ok thanks for your help. I think I have figured it out.

#

Thanks man

#

Can you also help me with one more thing?
I am builing a platform where anyone can visit my website without creating an account and pay to my app users who already have connected account on my platform.

#

I want to keep all the logic on the backend using api's

mighty gate
#

Taking over for Snufkin as they have to step out ๐Ÿ‘‹

#

I can answer further questions

torpid pollen
#

the paid amount will directly gos into the connected account after deducting the application and stripe fee.

mighty gate
#

What's your question?

torpid pollen
#

I am builing a platform where anyone can visit my website without creating an account and pay to my app users who already have connected account on my platform. the paid amount will directly gos into the connected account after deducting the application and stripe fee.
I want to keep all the logic on the backend using api
How can I achieve using stripe connect

mighty gate
#

What type of connect accounts are you using

torpid pollen
#

I am creating a custom type account

#

using this
const account = await stripe.accounts.create({
type: 'custom',
country: 'US', // or the relevant country
business_type: 'individual', // or 'company' depending on your case
individual: {
first_name: 'John',
last_name: 'Doe',
dob: {
day: 15,
month: 6,
year: 1980,
},
address: {
line1: '1234 Main Street',
city: 'Anytown',
state: 'CA',
postal_code: '12345',
country: 'US',
},
id_number: '000-00-0000', //Social Security Number
// ssn: '123-45-4576',
ssn_last_4: '0000', // Last four digits of Social Security Number
phone: '+14155552671', // Phone number
email: 'john.doe@example.com', // Email address
},
capabilities: {
card_payments: {
requested: true,
},
transfers: {
requested: true,
},
},
tos_acceptance: {
date: Math.floor(Date.now() / 1000), // Current timestamp in seconds
ip: '192.168.10.10', // IP address of the user accepting the TOS
},
business_profile: {
name: 'John Doe LLC 3',
support_email: 'support@example.com',
url: 'https://www.johndoe.com', // Business website
mcc: '5960', // Optional, Merchant Category Code
// industry: 'Retail', // Industry
},
metadata: {
industry: 'Retail', // Add industry information in metadata
},
// Additional fields based on business type and country
});

mighty gate