#Charmon-connect

1 messages ยท Page 1 of 1 (latest)

dry junco
#

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)

ripe badge
#

direct charges

dry junco
#

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?

ripe badge
#

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

dry junco
#

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

ripe badge
# dry junco Gotcha, we primarily work with the API, so I know that side of things better tha...

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,
});
dry junco
#

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.

ripe badge
dry junco
#

Correct

ripe badge
dry junco
#

Any time!