#gershadahlnor_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1281468438468100106
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! The destination account should be connected account id
which connected account? the one who has the products and is getting paid?
yep, that's correct
ah i see, sorry i missed out seeing that you included the StripeAccount header as well : https://docs.stripe.com/connect/authentication
to clarify, are you trying to create direct charges or destination charges?
destination charges
then you shouldn't be using a StripeAccount header. You should remove that
okay but when i remove it, then the customer that was created under the connected account isn't found anymore
would it be better to use direct charge instead?
When you use destination charges, all objects (such as Customers) should exist on the platform account, because the payment is made on the platform account
you choose the charge type based off what fits your business model best. It shouldn't be based on whether your API call is working.
going back to the original problem you're facing - the Customer should be created/exist on your platform
so whats the difference between having a customer on the platform vs have a customer within a connected account?
our main use case is that "premium" accounts can create products on our platform. and then customer can buy those products. based on that transaction i was assuming destination chargres would be our use case
yes, that sounds about right
I'm not too sure I understand the question about whats the difference between having a customer on the platform vs have a customer within a connected account - it's where the customer exists. If you make an API call on the platform, then you would only have access to your platform objects. It's like how you are going into a house, and then you can use a cup in that house to drink a cup of water
if you're in house A right now, you can't magically access a cup in house B
i meant why would i pick one over the other? if a customer exists on the platform instead, are they still able to buy a connected accounts products?
this is how direct vs destination charges work
direct charges are made on the connected account, and destination charges are made on the platform account
got it, so we should've decided on charges first instead of customers ๐