#tristanoneil_api

1 messages Ā· Page 1 of 1 (latest)

shrewd daggerBOT
#

šŸ‘‹ Welcome to your new thread!

ā²ļø We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

ā±ļø We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

šŸ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288231786064642100

šŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

thorn pollen
next mist
#

So immediately after calling invoice.pay I should be able to query the invoice again to obtain this value?

thorn pollen
#

Sorry I think I'm confused.. If you're calling invoice.pay immediately, are you expecting that to fail?

next_payment_attempt shows when Stripe will try to attempt to charge the payment method.

#

If you're calling invoice.pay, that means charge is processing

next mist
#

So we're calling invoice.pay but then it seems like the charge.pending event isn't triggered for another 3 - 4 days.

thorn pollen
#

Can you share an example invoice ID where you saw that?

next mist
#

This one: in_1PrKxSFMuyZwj3nIMhaglpjH

#

maybe something to do with it being a new Bacs payment method šŸ¤·ā€ā™‚ļø

thorn pollen
#

Ah yeah, its possible the delay is introduced by the new mandate

next mist
#

So maybe I can determine the date I'm looking for based on the charge.pending event? I think I'll have to have some internal app logic to only listen for this event for this particular case, I just wasn't sure if there was some other way to get this date.

thorn pollen
#

It looks like mandate became active on 2024-09-18 00:05:55

next mist
#

Yea and then the charge also started then.

#

So that's the date I'm looking for.

#

Just wasn't sure if there was a way to get this somehow via the invoice or payment intent.

thorn pollen
#

Yeah I don't think that info would live on the invoice unfortunately.

next mist
#

Hmm yea, ok. We're trying to record a somewhat precise timestamp of when the new charge initaited for our GL.

thorn pollen
#

as far as I know, as long as payments/mandates are submitted before 20:00 UTC, T+3 days timeline for the mandate to become active should be concrete..

Unfrotunately, there's no other way to track it super precisely

next mist
#

Ok, thanks!