#Baris - Hourly Rates
1 messages · Page 1 of 1 (latest)
Hello! Metered billing with Subscriptions is the recommended way, yep. What specifically is blocking you from proceeding?
Hello @sullen goblet
How can I return the client secret after creating the subscription? Im not pretty familiar with the Subscriptions API. So I assume creating a usage record would be the correct way to go or am I wrong?
When a Subscription is created it generates an Invoice, and the Invoice generates a Payment Intent with a client secret. You can go from the Subscription's latest_invoice to the Invoice, and from the payment_intent there to the Payment Intent to get the client_secret.
I recommend reading through this guide about how Subscriptions work to learn more: https://stripe.com/docs/billing/subscriptions/overview