# In-Lens purchases

> Source: https://developers.specs.com/docs/payments/in-lens-purchases

Commerce Kit is the Lens Studio module that shows products, runs checkout, and tells your Lens what a person owns. Your Lens declares it by requiring `LensStudio:CommerceKitModule`.

> **Note:** For Commerce Kit's scripting API, see the [Lens Development docs](https://docs.lensstudio.com/develop/frameworks/commerce-kit/apis?target=specs). This page covers the purchase lifecycle your Lens must follow.

## Purchase lifecycle

1. **Load products.** At launch, ask Commerce Kit for your products. Show only products it returns.
2. **Restore purchases.** Also at launch, sync the person's purchases, including any that finished while the Lens was closed. Deliver anything not yet delivered.
3. **Buy.** Start checkout for a product. SPECS shows the price, including tax, and confirms payment with the person's saved card. Some cards need an extra security check.
4. **Deliver.** When the purchase completes, unlock the content or add the item.
5. **Acknowledge.** Tell Commerce Kit you delivered each consumable or non-consumable purchase, and each new subscription activation, including free trials. Automatic renewals don't need a new acknowledgement.

**New subscription activations must be acknowledged within 72 hours.** Unacknowledged purchases may be refunded automatically. Refunds reduce your net earnings.

## Check ownership

- **Non-consumables:** ask Commerce Kit whether the person owns the product.
- **Subscriptions:** acknowledge new subscriptions, then check whether the person is entitled before unlocking subscriber content.
- **Consumables:** keep balances, such as coin counts, in your Lens or your own backend. SPECS records each purchase but not how much is left.

## Publishing rules

- Builds that use Commerce Kit need [payments set up](https://developers.specs.com/docs/payments/set-up-payments) before review.
- The Lens's rating shows **In-Lens Purchases**.
- A release whose build uses Commerce Kit can't be unpublished from Public or Beta, even if it has no sales. Internal releases can still be unpublished.
- To delete a Lens with products, [pause its **Active** products](https://developers.specs.com/docs/payments/products#product-states) first. It can't be deleted while any of its subscriptions is still running. If it has consumables, you'll confirm that people have used them up, because SPECS doesn't track how many each person has left.
