#Baris - Hourly Rates

1 messages · Page 1 of 1 (latest)

sullen goblet
#

Hello! Metered billing with Subscriptions is the recommended way, yep. What specifically is blocking you from proceeding?

vast cloak
#

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?

sullen goblet
#

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.