#stefan95_41
1 messages · Page 1 of 1 (latest)
Hi there!
Hi)
An invoice contains a PaymentIntent, and a PaymentIntent contains a Charge.
So when an invoice is paid, you also get a PaymentIntent succeeded and a Charge succeeded event.
but looks like charge succeeded event occurred faster than paymentIntent
We don't garentee the order of events, as mentioned here: https://stripe.com/docs/webhooks/best-practices#event-ordering
yes, right
and I a little bit confused about stripe says Stripe doesn’t retry payments if the:
Payment method is unavailable.
All subscriptions settings are here: https://dashboard.stripe.com/settings/billing/automatic
Why does it still try to retry payment if I deleted credit card?
It depends on your dashboard settings. Note that the settings will only apply to new subscription you create or existing subscription after they changed their billing period.
I mean why does stripe try to retry failed invoice if there is no credit card?
as docs said Stripe doesn’t retry payments if the Payment method is unavailable, and in my case i deleted credic card 1 day before renewal
Can you share a subscription ID (sub_xxx) where you saw this?
sec
sub_1NYDoDGK2CM835a5qVe6UTkK
customer cus_OKtbDRBRjxcGWp
in_1NYx1TGK2CM835a5NyrmzwxD
Sorry for the delay, Discord was busy. Are you still here?
yes)
Hey! Taking over for my colleague. Let me catch up.
How are you seeing that Stripe did a retyr without a credit card ? can you share the event ?
Ah ok I see what you mean, that retry will occurs in case there'll be a new payment method set I think.
To avoid that, you should attach/collect a payment method when creating a Subscription.
atach to a subscription?
yes after collecting the payment method or confirm the subscription with that payment method.
specific subscription*
You should be following the recommended way for building a subscription integration:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
thanks u so much