#nobodylovesm3-metered
1 messages · Page 1 of 1 (latest)
yep, a $0 invoice is created when a metered subscription is created(since metered charges in arrears so the end of the month etc).
was there something specific about it I can clarify?
yes, im not sure how is it a success when the customer doesn't have a payment method, i thought all payments are something like a single transaction -> attempt with X amount -> FAIL/SUCCESS, etc
that's not true
if the invoice is for $0 it's just paid automatically
if it's between 0 and 50c (https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts) then the invoice is paid automatically and the amount is added to the customers' balance to accumulate and be paid on future invoice
oh, i see
invoices can also be paid out of band (https://stripe.com/docs/api/invoices/pay#pay_invoice-paid_out_of_band) where they are paid but there's no payment on Stripe's side
this is all specific to Invoice though, simple PaymentIntent/Charges don't have those concepts
im asking because currently we are using paymentintent/invoices/customer.updated events to see if the customer has added/has a payment method
and because of this case it also gets paymentProvided to true with the 0$ invoice
you'd have to change your logic to account for this then