#immaculato - last4
1 messages · Page 1 of 1 (latest)
You just want the last4 of the card used on a PI?
@ember acorn let's keep chat in this thread
Are you using PaymentIntents?
Basically, when we have a failed xaction, I go to the developer logs. Aside from searching for failed with code 400 and searching each one, is there any quick way to find an entry using the last4 or transaction amount?
Easiest way would be if you had the request ID or payment intent ID (assuming you're using payment intents)
There's not a way to filter by amount or last4 though
is there a way to dump the logs to a file so I can do a text search?
I would use the API and save the response to a text file: https://stripe.com/docs/api/payment_intents/list
Or just filter by the info you need in a script
is it possible to call the API through postman?
eg, trying to call list all payment intents.
never mind, figured it out
last issue is if order that fails is their first order, there is no customer id created yet so you cannot use the API to search for the intent
what do you call "you cannot use the API to search for the intent" exactly?
I need the intent to do a direct search of the logs
works perfectly for an established customer
what does "a direct search of the logs" mean though?
I am trying to find the fastest way to find info on a failed transaction that does not appear in the normal stripe transactions. These DO appear in the developer logs and are often a card flagged at risk, etc.
Right now, you have to just go to the dev logs, filter on failed, then click one at a time until you find the correct one
the search box is limited to searching on payment intents
Do you have an example request id req_123 for me to look at?
for example this one: req_vaZFB9Pw9s3YIf
I would like to be able to find this myself. I dont see a way for me to search the developer logs based on a transaction amount nor card last 4.
That's a Source creation first of all which has been deprecated for many years now. And it happens client-side, so when it fails it's not tied to any transactions like a PAymentIntent that's why you can't really find it
I am unclear of your answer, this payment failed this morning
we are using Woo with the official Stripe plugin
WooCommerce is a third-party plugin so we can't really help with that. But it uses an old API (/v1/sources) and it shouldn't. Those calls can never really be traced any other way than looking at the logs but that won't tell you much. Unfortunately, I'd recommend talking to their support team for help directly
You're mixing things up. This is a List PaymentIntents, that's fine. The request that is failing is a Source creation via /v1/sources and those happen client-side and they are not tied to a specific transaction/payment, which is why you don't find the logs on the PaymentIntent view itself
what API should they be using?
It shows they are a stripe verified partner
shouldnt your team be reaching out to them?
No we wouldn't reach out to them. There are hundreds of verified partners, they all build their own integration their own way. Their way works fine, it's just a limitation for you who are trying to find failed payments. You will need to reach out to them and discuss how they can best help you but they are unlikely to make the change any time soon
ok, can you think of any other way I can search the developer logs for a failed transaction of a certain dollar amount?
no that's just impossible with that current set up
Is there a way to export the developer log data to a text file?