Skip to content

ops: seed stripe test catalog and write price ids to docs #79

Description

@daopunk

Parent: #68

Related: #54 (closed — SKU model + seed script shipped via all-access packs; Price IDs still pending in docs/commerce/stripe-catalog.md)

Problem

Checkout on the CVM (signal-commerce) maps plan_sku → Stripe Price IDs from env (STRIPE_PRICE_ALL_ACCESS_3 / _10). The idempotent seed script and catalog doc exist, but the generated Price ID table is still _pending seed_. Someone with a test secret key must run the seed and commit the public Price IDs.

Skipped earlier

Blocked in the CVM commerce sidecar workstream: no sk_test_… was available in the agent environment (script refuses live keys).

Deliverables

  • Run with a Stripe test secret key:
    STRIPE_SECRET_KEY=sk_test_... npm run stripe:seed-catalog -- --write-docs
  • Confirm docs/commerce/stripe-catalog.md generated block has real price_… IDs (not secrets)
  • Put the same IDs into local/CVM env (docker/.env / docker/.phala.env — not committed):
    • STRIPE_PRICE_ALL_ACCESS_3
    • STRIPE_PRICE_ALL_ACCESS_10
  • Optional: paste IDs into a comment here for ops handoff

How to get the key

Stripe Dashboard → Test mode on → Developers → API keys → Secret key (sk_test_…).

References

Unblocks

Checkout smoke / Plans CTAs once commerce is deployed with Price IDs in env (#55 / #61 spine).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    commerceStripe checkout, entitlements, and billing (#68)

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions