#Imok

1 messages · Page 1 of 1 (latest)

bright hornetBOT
acoustic aurora
#

Yes, you can use the "direct charge" flow with a Checkout Session -- you do the same thing: create the session using Stripe-Account header / SDK request option.

gilded dagger
#

Well, I tried a way, but it throws me an error, can you tell me whats wrong in the code than?

#

Is that the way using the header with Stripe-Account param?

acoustic aurora
#

Yep that looks right -- the options at the end should handle this, you dont need the explicit header() above

gilded dagger
#

yeah , thats the thing..after i put the option at the end, it wont show up anymore in my stripe dashboard.

#

Its and internal server error, but its only happening when i place the ['stripe_account' => ...] option.

#

Is there a documentation for Checkout session with connected account?

acoustic aurora
#

Right, when you make that request it would appear in the logs for the connected account, not your platform

#

But you also can look at the response to that call and inspect the response headers

gilded dagger
#

Hmm, i found te error log.

#

req_lXkB9N384Zegl3

#

So maybe the price id has to be setup on the connected account? Because now all products are on the main stripe account.

acoustic aurora
#

Are you sure you don't want to be doing destination charges here?

#

ie, an automatic transfer to the connected account?

gilded dagger
#

I was using that, but the client wants the other way..

#

I mean we want the connected account to handle the paperworks, kind of.

#

And the primary thing is that we want to show the people who opens the Checkout page, to show the connected account Profile, not the main account's

#

Hmm..maybe I should've started with this, when i started this thread. We want to show to our customers the connecte account branding.

#

Is it possible to create a product on the connected account?

acoustic aurora
#

You can do the product/price creation on the connected account yes, and that's required if you do end up doing the direct charge flow.

gilded dagger
#

And is there something related with this in docs? I cant find anything about this topic.