#Charmon-connect
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ so it sounds like you're working on setting up a Connect scenario. Do you know what type of charges you're planning to use with Connect? (Direct charges vs Destination charges)
direct charges
Gotcha, so with Direct charges, all of the objects need to reside on the Connected Account itself. Within the Stripe Dashboard, if you go to the Connect tab and then click on the Connected Account that you're trying to create a Product for, do you see the option to View Dashboard as this account in the ... menu that appears near the top right of the screen?
Are you planning to pivot to using our API for your project, or will you be conducting all of your work through the Dashboard?
Sorry was just creating the test connected account
Yes, of course I'm planning to use the API
It's just that I want to know the absolute basics of the flow
Gotcha, we primarily work with the API, so I know that side of things better than the dashboard flows.
If you're using Direct charges then you want to create all of the associated objects on the Connected Accounts. When making the API requests you can use Stripe-Account parameter/header to make requests as though they were made by your Connected Account, so all objects that are created by those requests will be owned by the Connected Account.
https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Do products even need to be registered in stripe? Can I instead simply have products in my own database and create charges on the spot, something like this:
// get this info from my database
const info = {
stripeAccountId: "Jessica_acc_id",
description: "voice over service (50 words)",
price: 1000,
}
const paymentIntent = await stripe.paymentIntents.create({
amount: info.price,
currency: 'gbp',
application_fee_amount: 123,
}, {
stripeAccount: info.stripeAccountId,
});
If you're not planning on using any features that require Products/Prices (Subscriptions, Invoices, Checkout Sessions, etc) then yes you could calculate the amount on your end and pass the result while creating a Payment Intent.
ok, otherwise if I wanted to create a product, I still have to specify the account id that it's connected to right?
const product = await stripe.products.create({
name: 'Gold Special',
stripe_account_id: ...///
});
Correct
awesome thanks!
Any time!