- A subscription connects a customer to a plan. The plan defines what they can use and what they pay; Commet manages checkout, invoices, and renewals.
- A one-time payment charges a customer for a single purchase, without a plan or subscription. Follow Accept One-Time Payments if that is all you need.
Plans, features, and consumption
A feature is something your product provides, such as API calls, seats, or access to a capability. A plan groups features and sets their limits and prices. Each plan uses one consumption model to define how its measured usage consumes the included allowance and is charged:
A fixed monthly price can include features without extra usage charges. You do not need to charge for overage to use a plan.
For this walkthrough, use a Metered plan with a monthly price and an included API-call allowance. See Consumption Models when you need to configure a different model.
Your first subscription payment
1
Create your account
Create a Commet account and select your sandbox organization. Keep every resource in this walkthrough in that organization. Complete its payment provider setup so it can accept sandbox payments.
2
Create an API key
Create a sandbox API key and store it on your server. That guide covers the dashboard, CLI, MCP, and SDK initialization.
3
Create a feature
In Features, create API Calls with code
api_calls and type Usage. The code identifies the feature when your application records consumption. You will set its included quantity on the plan.See Configure Features.4
Create a plan
In Plans, create a plan named Pro, with code
pro, and choose Metered. Add a USD 20 monthly price, include 1,000 API calls, and leave overage disabled for this first example. Use a paid price without a trial so the next steps lead directly to payment.See Manage Plans.5
Create a customer
Create a test customer with a billing email and a stable identifier from your application, such as
demo_customer. The customer represents the person or business you are going to bill.See Manage Customers for the dashboard and SDK flow.6
Create the subscription
Connect that customer to the Pro plan using its monthly price. Creating the subscription for this paid plan returns a
checkoutUrl. Open it or redirect the customer there to enter their billing details and pay.See Manage Subscriptions for the request in your SDK.7
Complete the payment
Use the sandbox checkout’s Test Data panel to fill in test payment details and complete checkout. Confirm that the invoice is paid and the subscription is active in the dashboard.Your first subscription payment is complete. Commet manages subsequent renewals for the monthly plan. See Testing for the available test tools.