#some1ataplace_api

1 messages Ā· Page 1 of 1 (latest)

lean brambleBOT
#

šŸ‘‹ 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/1311551396318941207

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

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.

azure tide
#

I am also open to putting this metadata in a different location if it makes more sense for categorizing where payments are going

analog thunder
#

Hi there, looks like you set the metadata on the inline product that you created on the checkout session

#

Just to clarify, do you want to retrieve the metadata from the product object, or the subscription object?

azure tide
#

correct. i just need to make sure when i am doing my accounting financial statements i am able to properly track if something is a tip for my website versus a tip for an author connect id on my site.

#

I am fine with either object product or subscription. Maybe tell me both ways so I can try it and see what it looks like.

analog thunder
azure tide
#

But I may not have a subscription all of the time, I also have one time payments too.

#

in that case for one time payments it would go in payment_intent metadata?

analog thunder
#

Yes there's a equivalent param in payment_intent_data as well

azure tide
#

okay cool, i will try it out and see what happens

lean brambleBOT
azure tide
#

that was for the one time payment

#

Okay, i see the metadata for the subscription now

#

i think the one time payment one is not working, i must have done something wrong

strong gazelle
azure tide
#

i thought i was on line 59?

strong gazelle
#

You'll want to add logs to your code to step through line by line and understand why the metadata is not being included in the request. It's pretty clear from the request that no metadata is being included

azure tide
#

oh shoot, i think i know why. it was reading another portion of the code where i was logged out, not logged in šŸ¤¦ā€ā™‚ļø

#

yup that was the problem

#

can you help me understand how i would calculate for accounting/reporting purposes the fees part to the connect ids versus my platform? It appears in the code I sent you it is working correctly, but now I just need to make sure that this concept of fees I am okay with for reporting and how I would report that.

strong gazelle
#

I think I'm going to need an example of how you want to calculate / report fees before I can answer this question

azure tide
#

in the checkout session for this use case I am applying a 50% fee. So half goes to the connect id and half goes to the platform. So If I wanted to figure out for this month here is the total fees collected from this connect id, here is the total collected for the platform. Or if I wanted to say here is the total fees collected for all connect ids for this month.

#

or here is the total transferred to this connect id for this month

strong gazelle
azure tide
#

whoa, had no clue that second link was a thing. Do I need to be in live mode to see that? I cannot find it in the dashboard.

#

oh maybe under connect analytics šŸ¤¦ā€ā™‚ļø

strong gazelle
#

you might need to reach out to Stripe Support about how to find it in the Dashboard. We're more familiar here with the API

azure tide
#

Okay, no problem. Thank you again for all the help. Have a happy thanksgiving