#deepakchandrawanshi1063
1 messages · Page 1 of 1 (latest)
Please remove the secret key in this chat and roll your key asap. Discord is a public place so everyone can see it
ok
You should check the account's requirements hash (https://stripe.com/docs/api/accounts/object#account_object-requirements) it tells you what are the information needed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The easiest way is to create an account link and use Connect Onboarding page to collect these info https://stripe.com/docs/connect/express-accounts#create-link
when i am passing business_type:"individual", this gives me response that '"message": "Received unknown parameter: business_type",',
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
requestId: 'req_uIKabC5HYzUG4E',
You are using a very old API version 2018-11-08. There's a possibility that business_type is not available in an older API version.
so which one I have to use. can you share it's document.
I'll recommend using the latest one 2022-11-15, https://stripe.com/docs/upgrades#api-versions. You should be careful about API version upgrade. Make sure you are following these steps https://stripe.com/docs/upgrades#how-can-i-upgrade-my-api
const account = await stripe.accounts.create({
country: "AU",
type: "express",
capabilities: {
transfers: { requested: true },
},
email: "abcd123@gmail.com",
business_type: "individual",
individual: {
first_name: "gh",
last_name: "ghgh",
dob: { day: 10, month: 12, year: 1996 },
email: "abcd123@gmail.com",
gender: "male",
phone: "......",
address: {
line1: "............",
postal_code: ....,
city: "....",
state: "....",
},
},
business_profile: {
url: "https://www.linkedin.com/in/....................../",
},
}); is it written correct?
It looks good to me
and there is no any updated api for bussiness_type.
but it's not working. it says invalid argument business_type.
Request ID?
requestId: 'req_M3yopHK9BHoqDS'
This request was made with the same old APi version
https://stripe.com/docs/api/versioning?lang=node#versioning you can specify a version when creating a request, set the API version to a new version and try again.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.