mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-10 13:34:59 +00:00
587661fafb
Building off the foundation of using the Prices API, this PR adds the ability to create a one-time purchase plan for any product, which then can add a user to the specified plan group. Some things to be aware of: One-time purchases cannot have trials. One-time purchases use the Invoice API instead of Subscriptions. Invoices are created then charged immediately. Users should receive emails for these invoices directly from Stripe just like subscriptions.
29 lines
561 B
YAML
29 lines
561 B
YAML
plugins:
|
|
discourse_subscriptions_enabled:
|
|
default: false
|
|
discourse_subscriptions_extra_nav_subscribe:
|
|
default: false
|
|
client: 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
|