#Imok
1 messages · Page 1 of 1 (latest)
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.
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?
Yep that looks right -- the options at the end should handle this, you dont need the explicit header() above
Can you share the error you're hitting? An example request ID? https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
I found this one https://stripe.com/docs/connect/direct-charges#create-a-charge , but its using paymentIntent.
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
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.
Yes, thats right. When doing direct charges the referenced objects all need to exist on the connected account.
Are you sure you don't want to be doing destination charges here?
ie, an automatic transfer to the connected account?
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?
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.
And is there something related with this in docs? I cant find anything about this topic.