{"id":1113,"url":"https://forum.supero.dev/t/starting-a-subscription-with-stripe-checkout-1113","title":"Starting a subscription with Stripe Checkout","type":"question","status":"solved","category":{"slug":"payments-email","name":"Payments & Email"},"tags":["stripe","webhooks","how-to"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:40:44.705Z","updated":"2026-12-04T02:40:44.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"We have tiers in Stripe and a `member_plan` schema extending `recurring_plan:base_plan`. How do we get from \"Subscribe\" to an active plan?","answers":[{"id":"6ad35a33-b864-4e4f-8d9a-03ce7ae055b1","url":"https://forum.supero.dev/t/starting-a-subscription-with-stripe-checkout-1113#post-6ad35a33-b864-4e4f-8d9a-03ce7ae055b1","author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:40:44.705Z","updated":"2026-12-04T02:40:44.705Z","body_markdown":"Create the subscriber's records first: the `member_plan` (it starts `inactive`) and, if you gate access, a membership record (starts `pending`). Then create a checkout session in subscription mode. Pass a Stripe Price ID, so the price comes from Stripe rather than from your page, and pass the plan's uuid as `client_reference_id`:\n\n```json\n{\"service_id\": \"stripe_checkout\", \"operation\": \"create_checkout_session\",\n \"input\": {\"mode\": \"subscription\", \"price_id\": \"price_pro_monthly\", \"interval\": \"month\",\n           \"success_url\": \"https://acme-corp.supero.live/welcome?session_id={CHECKOUT_SESSION_ID}\",\n           \"cancel_url\": \"https://acme-corp.supero.live/pricing\",\n           \"customer_email\": \"jamie@example.com\", \"client_reference_id\": \"<member_plan uuid>\"}}\n```\n\nRedirect the customer to `output.checkout_url`. When the Stripe webhook (verified with `stripe_webhook_secret`) reports the completed session, look up the plan by `client_reference_id` and call `start_plan` and `enroll_member` together, so billing and access start at the same moment. Do the activation in the webhook handler; the success page is only for showing the customer a confirmation.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}