#lesinar_unexpected

1 messages ยท Page 1 of 1 (latest)

copper sparrowBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

๐Ÿ”— 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/1212726103408644106

๐Ÿ“ Have more to share? You can add more detail below, including code, screenshots, videos, etc.

โฒ๏ธ 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. Thank you for your patience!

stone nebulaBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

solid hare
#

This is our test subscription sub_1OogBrE4ldziAC9E9jcEVPa5

#

on Live Mode

thorny turtle
#

Well we don't send any automated emails in test mode so the likelihood is that is the reason why

solid hare
#

We tested on Live mode

loud sparrow
#

Hii, need some help but not able to message in Stripe Developers server in Discord

thorny turtle
#

@loud sparrow You can start a conversation via #help

solid hare
#

I don't know how to trace this, and whether it's a bug or expected behavior.

royal bridge
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

solid hare
#

Hi Tarzan

royal bridge
#

I think the email will be sent after all retries fail

#

the customer already has an invoice_settings.default_payment_method so that would be used to pay the subscription even if you don't pass any specific PM

#

oh sorry wait, I'm looking at the wrong object. give me a second

solid hare
#

take ur time!

#

I managed to create a scheduled subscription in live mode again for a new customer who doesn't have a default payment method. ID: sub_sched_1Op8BvE4ldziAC9EK93ioInr. And when the subscription starts, the customer won't receive an email notifying them of the failure.

copper sparrowBOT
royal bridge
#

my understanding is that the dashboard configureable emails are for actual payment method failures

#

like attempting to charge the payment method and it gets a decline of some sort

#

but in this case since there wasn't any payment method to charge the failure happened on the invoice level rather than on the charge level

#

I think you need to listen to invoice.payment_failed event and inspect the reason why it's failing

solid hare
#

What exactly should I look for in there? evt_1Ooh9BE4ldziAC9EfDGtjw7T

royal bridge
#

in the case where there's no charge attempt (invoice.payment_intent.latest_charge is null) this means that no payment was attempted

#

I think the best solution here is to collect the Payment Method ahead of time

solid hare
#

So this is expected behavior?

royal bridge
#

AFAICT yes

#

the only other way that I would see this happening is if we retry the Invoice as configured by the retries configuration on your dashboard and still don't succeed then we might send an email

#

it's really an edge case and I'm not a 100% certain to be honest

#

if you want to have a clearer answer, it's best to send us an email to https://support.stripe.com/contact/email?topic=api_integration and mention that you have been in contact with tarzan on discord and giving them all of the different context that we've established

#

we can work with our internal product team to validate this for you asynchronously and get back to you with a 100% answer