#cc_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/1496802739122864229
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
The likelihood is that you'll need to set some metadata on the PL that persists on Payment Intents it generates, and you can use that to tie it back from the Balance Trasnaction
e.g. set payment_intent_data[metadata] on your Payment Link(s), and then that is set on the resulting Payment Intent. Then you can get to that from the Balance Transaction by expanding source.payment_intent
Thankyou sir, how can i set payment_intent_data[metadata], can you please send me a screenshoot
Are you using the API, or the Dashboard to create Payment Links?
Dashboard
I don't think that is supported there today ๐
Not sure what you're showing me here
metadata is set in payment link dashboard, But not display in balance transactions
Can you share the pi_xxx ID of a payment you're looking at?
PaymentLink: https://buy.stripe.com/test_3cI6oJ7No01MfSr6Lh0Fi00
Transaction: pi_3TPJlpPt6eIFbWc22Hv2jMjp
Thanks, checking
OK, so it looks like you actually set metadata on the Payment Link, and that is then persisted on the underlying Checkout Session that is generated (here). We talk about this concept here: https://docs.stripe.com/metadata#exceptions
But there's no way to get to that object/metadata from the Balance Transaction sadly
Okay, Is there another way to identify the transactions(from payment link, from API)
Yeah I think you can do this:
- Expand
source.payment_intenton the Balance Transaction - List the Checkout Sessions, passing the
pi_xxxID: https://docs.stripe.com/api/checkout/sessions/list - Look at the
payment_linkproperty
A few more steps, but should work