#gershadahlnor_api

1 messages ¡ Page 1 of 1 (latest)

old snowBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1266103531878744170

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

gaunt nexus
#

Hey there, i suspect that you're not making the subscription creation request for the connected account too (instead trying it on the platform). Can you share a failing request ID?

#

Actually it looks like you might be doing this via checkout, but same idea

#

message: "No such price: 'price_1PflNsFKD3CUjg2Uq2ctxD6K'",

#

You need to provide the Stripe-Account header the same way when creating the Checkout sessions

distant gorge
#

Yeah i just tried creating a checkout session with this request id req_tcZOjDE9wKA5yi

#

okay so the price exists, i just need to give this Stripe-Account header when creating the checkout session for it to see it?

gaunt nexus
#

Yes

distant gorge
#

Okay I added the header but now it seems to be having an issue with the customer not being found even though i can see the customer in the stripe UI, could you take another loook? request id is req_nGf2rSqwqRZLBZ

gaunt nexus
#

Yep, same problem, the customer exists on the platform

#

You need to create the customer on the connected account too

#

When doing direct charges like this, all objects need to reside on the same account

#

You can't provide IDs from another account (like the platform)

distant gorge
#

ah okay. am i doing this subscription flow correctly? if a customer wants to subscribe to a connected account product, i would need to create them as a customer of that connected account, then i can create the checkout session, they enter in their payment details, and then they are subscribed? and that flow would need to be the same for every connected account they want to subscribe to?

gaunt nexus
#

Yes, if your prices exist on the connected accounts

#

Otherwise if you mean to manage these on your platform and transfer funds to conencted accounts, you can have a single customer on the platform level

distant gorge
#

if the prices are only on the connected accounts, do i need to have a platform customer? or would just a connected account customer work?

gaunt nexus
#

You don't need one if you only transact at the conencted account level