#snackdex
1 messages · Page 1 of 1 (latest)
Hi there!
if the payment sheet is closed that it generates an "Incomplete" payment in the stripe dashboard.
Yes that's normal, you can simply ignore incomplete PaymentIntents
Is there a way to cancel that incomplete invoice?
Yes you can void an invoice if needed: https://stripe.com/docs/api/invoices/void?lang=node
ah ok, i think it's better that i just ignore them. unless there is a webhook that tells you when the payment sheet is closed but not paid?
unless there is a webhook that tells you when the payment sheet is closed but not paid?
No webhook for this no
i'll just ignore them then 🙂
ah ok, i think it's better that i just ignore them
Yes porobabbly
i was originally ignoring them, but now I want to see what subscriptions did not get charged. how would i distinguish those since those also come up as Incomplete?
You can check the Status of the Subscription. If the invoice was paid, then the status is active
ah ok, so you wouldn't see it from the payments dashboard?
What do you mean?
my ultimate goal is to specifically know when a subscription that is charged automatically doesn't get paid. Like, maybe the card expired or insufficient funds on the card. I was planning on looking at the payments dashboard to see how i can distinguish the incomplete payments that occurred because of that.
i believe, that it may be better to get that information from a webhook though. You said that if the subscription wasn't paid it would not be active. Does that mean I can listen to this event: customer.subscription.updated
To know when a Subscription payment fails, we recommend listining to invoice.payment_failed https://stripe.com/docs/billing/subscriptions/webhooks#payment-failures
does this fire only on subscription payment failures, or also in the payment sheet if the card they enter doesn't have enough funds?
I recommend doing some tests in test mode to see how this work. But iI think invoice.payment_failed won't be fired for the first payment of the subscription.