#vilesa

1 messages · Page 1 of 1 (latest)

quiet estuaryBOT
digital tide
#

Hi there

#

You want to list PaymentIntents and look at their status

#

If they are in requires_capture then they are uncaptured

junior thicket
#

that's one way to do it, but a bit inefficient if you have many payments

digital tide
#

Yeah that's the only way really. Otherwise you want to listen to Webhooks and store the data on your end

#

Which overall is going to be the recommended route if you are going to want to know this all the time and not do this as a one-off

#

You should be updating your database with the status of each PI as webhooks come in

junior thicket
#

sounds good, thanks!