subscription sample
https://stripe.com/docs/billing/subscriptions/fixed-price#create-business-model
cli/stripe products create \
--name="稽古" \
--description="稽古のサービス"
{
"id": "prod_H94k5odtwJXMtQ",
- priceの登録
- application.properties に設定して、subscribe 時に使用する
stripe prices create \
-d product=prod_H94k5odtwJXMtQ \
-d unit_amount=1500 \
-d currency=jpy \
-d "recurring[interval]"=month
dashboard から取得する
key | value |
---|---|
STRIPE_API_SECRET_KEY | xxx |
STRIPE_WEBHOOK_SECRET | xxx |