#gershadahlnor_api

1 messages ยท Page 1 of 1 (latest)

worn scaffoldBOT
#

๐Ÿ‘‹ 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.

cyan drift
#

hello! The destination account should be connected account id

solar trench
#

which connected account? the one who has the products and is getting paid?

cyan drift
#

yep, that's correct

solar trench
#

okay thats what i have it set as

#

in this case it's acct_1PnYDKFSCnOQZh7V

cyan drift
#

to clarify, are you trying to create direct charges or destination charges?

solar trench
#

destination charges

cyan drift
#

then you shouldn't be using a StripeAccount header. You should remove that

solar trench
#

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?

cyan drift
#

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

solar trench
#

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

cyan drift
#

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

solar trench
#

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?

cyan drift
#

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

solar trench
#

got it, so we should've decided on charges first instead of customers ๐Ÿ˜