#mahad852-invoices-pi
1 messages ยท Page 1 of 1 (latest)
hello, yes pls share the example Invoices, PaymentIntents and related requests and I can help look
example where the invoice WAS NOT voided:
PaymentIntent: pi_3KhMxvKHqIuz5QBf1A7Iv21d Invoice: in_1KhMxvKHqIuz5QBfzPssgmPq
example where the invoice WAS voided and PaymentIntent went through:
PaymentIntent: pi_3Kgid0KHqIuz5QBf0MCXSw1o Invoice: in_1KgiczKHqIuz5QBfx9MWdzEL
Note: I went through the same steps in both cases, as highlighted above
thanks, looking
hey, any update on this?
so I tried and could not repro on my account. Seeing if timing plays a part since your void and PaymentIntent confirmation were a few seconds apart
Yes but why the difference between the two cases? If timing was the issue, shouldn't the other invoice be voided too?
sorry to clarify
oh ok, I get it. No, timing is not the issue here. I can reproduce an example where PaymentIntent confirmation and voiding of the invoice are not seconds apart
I tried repro'ing it and the underlying PaymentIntent cannot be paid via the hosted invoice url if I void the Invoice
so I cannot repro
but I see in your Invoice and your PaymentIntent, the PaymentIntent was apparently paid seconds after the Invoice was voided. So I'm trying to see if close timing makes a diff - aka Stripe hasn't fully voided the Invoice internally (but sent the event, just a theory)
I can reproduce an example where PaymentIntent confirmation and voiding of the invoice are not seconds apart
ah ok that helps, cause I could not reproduce on my end with a simple example. But still digging
also I might be stepping away but providing context to a team member, they're catching up, one min
Sure, thanks
Example where there is a gap of about a minute between the voiding of the invoice and the time when the PaymentIntent went through:
Invoice: in_1KjWbcKHqIuz5QBfbHBHbey5 PaymentIntent: pi_3KjWbcKHqIuz5QBf0wvH1c2j
Hello! I believe this is due to the logic we had to put in place for RBI, but I'm working on confirming that now...
Yep, just confirmed this is a known issue we're working on now. No ETA for a change in behavior or anything like that, but we're aware of it.
Hmmm, so there is no ETA? Some of our users have been affected by this and we've had to refund them. They essentially end up paying us but the payment is essentially useless
In the meantime I think you can listen for invoice.voided events and manually cancel the associated Payment Intent: https://stripe.com/docs/api/payment_intents/cancel
I did try that, but stripe gave me an error stating that a PaymentIntent associated with an invoice can not be cancelled.
Can there be another quicker solution/workaround that I can perhaps use? We are really in a bind here considering we launched this feature and we already have a significant number of users subscribed on our INR prices
Ah, gotcha. Let me investigate...
One question: after the Invoice is voided how are your customers making the payment on the underlying Payment Intent? I'm looking for all of the methods they're using to make sure I'm considering all the relevant details.
so if they do not reload the hosted invoice url after failing authentication and then try to pay again, the payment goes through
however, if they do reload, they'd see that invoice is not valid anymore/voided
which is alright, since in that case they wont be able to pay. the problem arises when they don't reload, and pay via the hosted invoice UI
Thank you, I'll be waiting
Can you give me the ID of an Invoice in live mode where this happened?
sure
in_1KjJjqDuowMsFSZJD2Znrqa3
we refunded this customer
but as you can see the paymentIntent went through after the invoice had been voided
Perfect, thank you! Hang on...
Hey, did you find a viable workaround that I can use?
Alright, thanks
Not on Discord, at Stripe, just to be clear. ๐
Yeah yeah, I know ๐
Has this always been happening? Meaning once you started using the hosted Invoice payment page with IN transactions this was an issue, or was everything working fine for a while and then this started happening?
We were previously accepting all payments in USD. we very recently have launched price localization with INR and it's been happening since then
So yes, it's been happening since the time we have started accepting INR payments, which is pretty recent
Gotcha, thank you! I might have sporadic questions for you as we investigate if that's okay? ๐
Yup, it's alright
Update: we've got a number of people looking into this right now. I still can't give you an ETA or anything, but it's been escalated internally and is being actively worked on.
Thanks a lot.
Just: should I look for a workaround or should I wait for the fix to be out?
It might take a while to get a fix out unfortunately
Yeah that is pretty unfortunate
Agreed, sorry for the trouble and thank you for noticing and raising this here. We're working on a fix, it's just a pretty special edge-case that isn't easy to fix
Considering this issue could occur over on renewal payments as well (since hosted invoices are emailed to customers), our existing subscribers who change to a card not supported for off-session payment may also face issues. But yup, I understand.
Anything else that you guys need to ask me?
not for now I think we've narrowed down the root cause, just working on the right fix
Alright, thanks