#nobodylovesm3-metered

1 messages · Page 1 of 1 (latest)

pallid escarp
#

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?

lost siren
#

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

pallid escarp
#

that's not true

#

if the invoice is for $0 it's just paid automatically

lost siren
#

oh, i see

pallid escarp
#

this is all specific to Invoice though, simple PaymentIntent/Charges don't have those concepts

lost siren
#

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

pallid escarp
#

you'd have to change your logic to account for this then