#karsh

1 messages ยท Page 1 of 1 (latest)

shut crowBOT
glacial badge
#

Hello ๐Ÿ‘‹
When you say you're looking for an "order" what object are you referring to exactly?

willow harness
#

The beta order object

glacial badge
#

Ah okay, gotcha! Let me take a look.

willow harness
#

Thank you!

glacial badge
#

Just to flag, Orders API was deprecated recently (in case you are not aware ๐Ÿ™‚ )

willow harness
glacial badge
#

I think this page was using the deprecated API as well

willow harness
#

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

glacial badge
#

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

willow harness
#

๐Ÿ˜ฆ 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

glacial badge
#

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

willow harness
#

Thanks

glacial badge
#

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

willow harness
#

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?

glacial badge
willow harness
#

Oh thanks! I'll explore that

glacial badge
#

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?

willow harness
#

I'm on firefox, haven't tested others

glacial badge
#

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?

willow harness
#

Okay thanks for letting me nkow, then I'll try that