#some1ataplace_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/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.
- some1ataplace_api, 21 hours ago, 14 messages
- some1ataplace_api, 22 hours ago, 71 messages
- some1ataplace_best-practices, 1 day ago, 30 messages
- some1ataplace_best-practices, 1 day ago, 50 messages
I am also open to putting this metadata in a different location if it makes more sense for categorizing where payments are going
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?
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.
Sure, I'd recommend setting on the subscription object instead, which you can achieve by using https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay sounds good, so then I should be able to see the metadata here for example? https://dashboard.stripe.com/test/subscriptions/sub_1QPgRCIeTJrsS1re6A5V29Z2
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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?
Yes there's a equivalent param in payment_intent_data as well
okay cool, i will try it out and see what happens
i think i did something wrong https://dpaste.org/MhUaO#L27,28,29,59,60,61,62
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
that was for the one time payment
Here is the subscription one: https://dashboard.stripe.com/test/payments/pi_3QQ0FpIeTJrsS1re1nNfFfdi
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
https://dashboard.stripe.com/test/logs/req_MkrlheFJFoRqM3 - i don't see you passing in the metadata in payment_intent_data.metadata
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
i thought i was on line 59?
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
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.
I think I'm going to need an example of how you want to calculate / report fees before I can answer this question
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
https://docs.stripe.com/reports - you can probably refer to a itemized balance report
You can get connected account reports too - https://docs.stripe.com/reports/report-types/connect
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 š¤¦āāļø
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
Okay, no problem. Thank you again for all the help. Have a happy thanksgiving