#immaculato - last4

1 messages · Page 1 of 1 (latest)

frozen ember
#

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?

ember acorn
#

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?

frozen ember
#

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

ember acorn
#

is there a way to dump the logs to a file so I can do a text search?

frozen ember
#

Or just filter by the info you need in a script

ember acorn
#

is it possible to call the API through postman?

#

eg, trying to call list all payment intents.

#

never mind, figured it out

frozen ember
#

OK sorry for delay

#

Yeah postman works just fine

ember acorn
#

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

winter lantern
#

what do you call "you cannot use the API to search for the intent" exactly?

ember acorn
#

I need the intent to do a direct search of the logs

#

works perfectly for an established customer

winter lantern
#

what does "a direct search of the logs" mean though?

ember acorn
#

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

winter lantern
#

Do you have an example request id req_123 for me to look at?

ember acorn
#

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.

winter lantern
#

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

ember acorn
#

I am unclear of your answer, this payment failed this morning

#

we are using Woo with the official Stripe plugin

winter lantern
#

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

ember acorn
#

for my email to them, which API should they be using?

#

This is from your docs

winter lantern
#

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

ember acorn
#

what API should they be using?

#

It shows they are a stripe verified partner

#

shouldnt your team be reaching out to them?

winter lantern
#

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

ember acorn
#

ok, can you think of any other way I can search the developer logs for a failed transaction of a certain dollar amount?

winter lantern
#

no that's just impossible with that current set up

ember acorn
#

Is there a way to export the developer log data to a text file?