#umar_api
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/1271531818608361492
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
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?
We have a pretty useful page that allows you to check what types of information are required depending on a lot of different parameters. Take a look here: https://docs.stripe.com/connect/required-verification-information
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
Have you tried specifying the individual.id_number parameter? I recommend you build this in Test mode using our Test mode values
https://docs.stripe.com/api/accounts/create#create_account-individual-id_number
Btw, thansk for the link. I'm checking it
000-00-0000 for SSN
Yes it worked, But don't knwo why it was not working with this random ssn 123-45-4576
and what about this? which field is suitable for this
That's up to you to decide
It's asking for the industry. But I don't know in which field I can specify this using api
You need to review the API reference and familiarize yourself with the available options.
https://docs.stripe.com/api/accounts/create
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
Taking over for Snufkin as they have to step out ๐
I can answer further questions
the paid amount will directly gos into the connected account after deducting the application and stripe fee.
What's your question?
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
What type of connect accounts are you using
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
});
Ok destination charges are what you're looking for: https://docs.stripe.com/connect/destination-charges