#Dawid Kolbusz

1 messages ยท Page 1 of 1 (latest)

spice wigeonBOT
errant tulip
#

๐Ÿ‘‹ happy to help

#

there's no direct way of doing this

thick vector
#

Is there any way to get this?

errant tulip
#

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

thick vector
errant tulip
#

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

thick vector
#

Thank you

errant tulip
#

let me know if you need any more help

thick vector
#

So maybe one more question. Is it possible to know when the payment was charge when I only have sourceId ?

frosty skiff
errant tulip
#

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

thick vector
#

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.

frosty skiff
#

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

thick vector
#

With 1000+ payments a day, it would be a bit suboptimal ๐Ÿ˜„

frosty skiff
#

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

thick vector
#

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.

frosty skiff
#

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