#tristanoneil_api
1 messages Ā· Page 1 of 1 (latest)
š 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.
The invoice would show the next attempt time under next_payment_attempt based on the collection method you're using - https://docs.stripe.com/api/invoices/object#invoice_object-next_payment_attempt
So immediately after calling invoice.pay I should be able to query the invoice again to obtain this value?
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
So we're calling invoice.pay but then it seems like the charge.pending event isn't triggered for another 3 - 4 days.
Can you share an example invoice ID where you saw that?
This one: in_1PrKxSFMuyZwj3nIMhaglpjH
maybe something to do with it being a new Bacs payment method š¤·āāļø
Ah yeah, its possible the delay is introduced by the new mandate
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.
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.
Yeah I don't think that info would live on the invoice unfortunately.
You could do an estimated timeline based on this: https://docs.stripe.com/payments/bacs-debit/accept-a-payment?payment-ui=elements#bacs-direct-debit-timelines
Hmm yea, ok. We're trying to record a somewhat precise timestamp of when the new charge initaited for our GL.
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
Ok, thanks!