#linqisnice_best-practices

1 messages ยท Page 1 of 1 (latest)

clear saffronBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

inner steppeBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

waxen lark
#

Hello! What's your question?

bold rapids
#

Not sure how this is supposed to work. Since the event originates from us, the platform's account, how do I link that to a user in my system for whom the charge was on behalf of?

waxen lark
#

Can you provide more context? Which Event? Can you provide an example Event ID I can take a look at?

bold rapids
#

Before I changed to using on_behalf_of, I simply used requestoptions to set the connected users stripe account, and then I created a webhook of type Connected Account, and any checkout session events completed would hit the webhook and there I could just link the session.AccountId to the account id of a connected partner in my db, that way I could create a payment record and mark an order as paid

#

but now, with on_behalf_of, the account associated with the event is ours, the platform

#

do I need to use metadata here or is there some other way?'

waxen lark
#

Ah, okay, so you switched from direct charges to destination charges and now you're wondering how to link checkout.session.completed Events to the destination connected account?

bold rapids
#

yeah!

waxen lark
#

What mode are you using for the Checkout Sessions?

bold rapids
#

I realized the question might actually be a bit stupid since I could jsut use the charge id

waxen lark
#

Yeah, using the Charge will work.

bold rapids
#

since there's no longer need for the connected account id at all

#

it propagated when i did use it, but now i can just remove it everywhere

#

thanks I'll take a minute longer to think about my issue before asking for help haha

#

sorry for wasting your time

waxen lark
#

No worries!

#

We're here to help! ๐Ÿ™‚

bold rapids
#

although

#

or nvm haha

#

give me a minute before closing the thread just to make sure i get it right

#

you an close it, i think it'll be fine, thanks!