#PiffleAndWhimsy-search

1 messages · Page 1 of 1 (latest)

worthy storm
#

Hi! If I understand correctly you are trying to find a specific PaymentIntent based on their description property?

tardy sluice
#

Yes, that's right. Our descriptions all include a unique order number which we have in our database. I need to match each entry in our database up with it's payment amount using Stripe somehow.

worthy storm
#

The Search API beta might be able to help on this (not sure), so I would recommend to request an invitation on this page: https://stripe.com/docs/search-api
In the meantime, it's not directly possible to find a PaymentIntent based on its description. But you could list all paymentIntents, and then filter them on your end based on the description using https://stripe.com/docs/api/payment_intents/list (you could pass the optional customer parameter to limit the number of PaymentIntent returned)

tardy sluice
#

Ah ok. I have already requested an invitation for the beta, so I will need to have a look into the 2nd option using payment intents. Thank you.

tardy sluice
#

Hi again, sorry I've managed to set up the code for fetching payment intents as you mentioned, but I don't have customer_id in our database to look up. I only have email addresses. Is there a way to look up the paymentIntenet using that data?

worthy storm
#

But note that you could have multiple customer with the same email...