#karsh
1 messages ยท Page 1 of 1 (latest)
Hello ๐
When you say you're looking for an "order" what object are you referring to exactly?
Ah okay, gotcha! Let me take a look.
Thank you!
Just to flag, Orders API was deprecated recently (in case you are not aware ๐ )
Yes thanks, am aware and waiting for the replacement. Speaking of - is it already there? I noticed this page https://stripe.com/docs/orders/adding-orders-to-payment-intents and not sure if this is new or not. As I believe the replacement will work with payment intents
I think this page was using the deprecated API as well
Looks like the PaymentIntent was associated with this request
https://dashboard.stripe.com/test/logs/req_mJSP0t4zUcDy7x
And how do I find an order ID from the charge using the api?
I can't see any related info in the 'event data' from the charge.refunded webhook
So on a charge, you will find the associated PaymentIntent
Oh I just realized that the orders API doesn't let you list an order using the PaymentIntent ID
๐ฆ did you find it manually on the dashboard? There must be a way to programmatically get to the order ID right?
I could potentially add the order id as metadata to the payment intent, but that will only work for future transatcions
Yeah I had to use our tools to locate the Order ID
yeah adding to metadata could help.
Let me see if there's an easier way
Thanks
Given this API was still in beta, I don't think we built support for retrieving orders using the PaymentIntent unfortunately. You might be able to see the order ID on the dashboard if you search for the PaymentIntent but unfortunately there doesn't seem to be a way to do this programatically
Thank you for the help. I'll think of what I can do for now while waiting for the replacement
One more thing, the dashboard is prompting me with 2FA multiple times per hour. It's very distracting and it didn't used to be like this. Any idea on how to fix?
An alternative I can think of is to list orders by customers and filter using the PaymentIntent
https://stripe.com/docs/api/orders_v2/list
Oh thanks! I'll explore that
One more thing, the dashboard is prompting me with 2FA multiple times per hour. It's very distracting and it didn't used to be like this. Any idea on how to fix?
huh does this happen on every browser or a specific one?
I'm on firefox, haven't tested others
Gotcha. Would recommend clearing the cache and re-logging in.
We haven't heard of any widespread issues regarding this so might be something with the browser?
Okay thanks for letting me nkow, then I'll try that