#Dawid Kolbusz
1 messages ยท Page 1 of 1 (latest)
Is there any way to get this?
via API, you'd have to go through all charges and look into each charge's source to check if it has this source ID or not
That is, there is not something similar to this(https://api.stripe.com/v1/charges?payment_intent=pi_) only for sourceId?
source is the predecessor of payment method
and today we don't have a way of searching for charges/payment intents by payment method/sources
Thank you
let me know if you need any more help
So maybe one more question. Is it possible to know when the payment was charge when I only have sourceId ?
well if the Source object is attached to a Customer(it has the customer field set with a value) you can do https://stripe.com/docs/api/charges/list#list_charges-customer potentially.
yes that's a very good idea @frosty skiff I should have thought of that one earlier. sorry @thick vector I must have missed your message from earlier
I checked this and when I use the GetAsync method from SourceService the Customer is empty. I am trying to do this for multibank payments. So this method will not work for me.
yep, it won't work if you're using a one-time use payment method
I'm not sure how you have a situation where the only information you have is a src_xxx , you should be saving more context at whatever point in your system you handle the successful payment. Without that, not sure what I can suggest here beyond you list all charges on your account and do some reconciliation one-off
With 1000+ payments a day, it would be a bit suboptimal ๐
yep but again I'm not sure how you have a situation where the only information you have is a src_xxx and I have zero context overall
I have a chargeId but due to a bug I can't trust it and so I'm looking for an alternative option to get the payment date for source payments.
there isn't really a better option than "you'd have to go through all charges and look into each charge's source to check if it has this source ID or not" then