#baris-subscriptions
1 messages · Page 1 of 1 (latest)
@faint ruin if you use metered billing then the first payment is always $0 (since it's billed in arrears, the customer pays for the usage as part of the next invoice next month)
so the PaymentIntent of the first Invoice of a metered Subscription would be null yes, as I think is what you mean
Oh I see, thanks. I'm using Apple Pay on React Native where I would need the client secret to confirm the payment. Would this even be possible with metered billings?
well there's no payment in this case
is there a pending_setup_intent on the Subscription? you can pass that to the frontend to use in collecting a payment method https://stripe.com/docs/billing/subscriptions/overview#using-setupintents
More precisely I'm trying to build hourly charged subscription. As the subscription starts the first hour should be immediately billed. Is this something that could return the payment_intent?
I will take a look.
in that case I would pre-calculate the first hour amount
and then you add it as an invoice item to the customer before creating the subscription (https://stripe.com/docs/billing/invoices/subscription#first-invoice-extra) that way when the subscription is created, it charges for that immediately
if you don't do that then it's metered billing, so it's charged in arrears so there's no initial payment required, as you've seen
Would it be possible to combine them? So the first initial invoice and the metered additional upcomming invoices.
yep, the approach I describe above(adding an invoice item to the customer before creating the subscription) will do that
it charges the item you added when the subscription is created, then any usage reported gets added up and charged in the next invoice at the end of the cycle in arrears, as normal