Files
twenty/packages/twenty-server
Ana Sofia Marin Alexandre cc53cb3b7b Add metered product to checkout session (#9788)
Solves https://github.com/twentyhq/private-issues/issues/238

**TLDR:**
Add metered product in the checkout session when purchasing a
subscription

**In order to test:**

1. Have the environment variable IS_BILLING_ENABLED set to true and add
the other required environment variables for Billing to work
2. Do a database reset (to ensure that the new feature flag is properly
added and that the billing tables are created)
3. Run the command: npx nx run twenty-server:command
billing:sync-plans-data (if you don't do that the products and prices
will not be present in the database)
4. Run the server , the frontend, the worker, and the stripe listen
command (stripe listen --forward-to
http://localhost:3000/billing/webhooks)
5. Buy a subscription for the Acme workspace , in the checkout session
you should see that there is two products
2025-01-23 14:28:13 +01:00
..
2024-09-18 17:35:08 +02:00
2025-01-23 12:08:08 +01:00
2024-12-12 15:46:48 +00:00
2024-09-20 11:02:52 +02:00
2024-10-05 00:23:23 +02:00
2025-01-20 23:10:39 +01:00