#nerder-subscription-sepa

1 messages · Page 1 of 1 (latest)

indigo charmBOT
light quail
#

Yes, eventually once the async payment actually succeeds

vestal plaza
#

but it might take something like 3days

light quail
vestal plaza
#

umm, that strange because the subs in Stipe will be actually active

#

even if the invoice is still pending

light quail
#

Yep, the that's just how it works unfortunately. Which is why we recommend awaiting invoice.paid events as opposed to checking the subscription status

#

Especially if you're handling async PMs

vestal plaza
#

in terms of UX for my use case, I rather prefer to check the subscription status first, and then eventually automatically delete if the invoice.payment_failed is triggered

light quail
#

I guess you'd need to account for the payment method type used on the initial subscription payment in that case then

#

i.e. expand the latest_invoice.payment_intent.payment_method field and check the type field

#

If sepa_debit (or another async method) then handle that case as you need

umbral shale
#

nerder-subscription-sepa

vestal plaza
#

for now i'll handle differently, using only customer.subscription.updated and customer.subscription.created, later on I'll migrate to the suggested approach using invoice.paid