spirobel 13d23dc3fa FEATURE: Add new stripe based pricing table
This commit adds the new stripe based pricing table.
If the user is logged in, the email field will be prepopulated with the users email.

The pricing table can be configured in the stripe dashboard.

Once the discourse_subscriptions_pricing_table setting is filled with the pricing table embed code from the stripe dashboard,
the pricing table will be displayed on /subscriptions

For more details see https://stripe.com/docs/payments/checkout/pricing-table
2024-04-23 15:18:31 -06:00

81 lines
1.8 KiB
YAML

discourse_subscriptions:
discourse_subscriptions_enabled:
default: false
discourse_subscriptions_extra_nav_subscribe:
default: false
client: true
discourse_subscriptions_pricing_table:
default: ''
client: true
refresh: true
discourse_subscriptions_public_key:
default: ''
client: true
discourse_subscriptions_secret_key:
default: ''
client: false
discourse_subscriptions_webhook_secret:
default: ''
client: false
discourse_subscriptions_currency:
client: true
default: "USD"
type: enum
choices:
- AUD
- BRL
- CAD
- EUR
- GBP
- INR
- NZD
- USD
- DKK
- SGD
- ZAR
discourse_subscriptions_campaign_enabled:
client: true
default: false
discourse_subscriptions_campaign_goal:
client: true
default: 100
discourse_subscriptions_campaign_type:
client: true
type: enum
default: "Amount"
choices:
- Amount
- Subscribers
discourse_subscriptions_campaign_banner_location:
client: true
type: enum
default: "Top"
choices:
- Top
- Sidebar
discourse_subscriptions_campaign_banner_bg_image:
client: true
type: upload
default: ""
discourse_subscriptions_campaign_banner_shadow_color:
client: true
type: color
default: "2F70AC"
discourse_subscriptions_campaign_show_contributors:
client: true
default: true
discourse_subscriptions_campaign_product:
client: true
default: ""
discourse_subscriptions_campaign_amount_raised:
client: true
default: 0.00
hidden: true
discourse_subscriptions_campaign_subscribers:
client: true
default: 0
hidden: true
discourse_subscriptions_campaign_group:
default: ""
hidden: true