discourse-subscriptions/README.md

1.8 KiB

Discourse Patrons

Build Status

Accept payments from visitors to your Discourse application. Integrates with Stripe.

This is a newer version of https://github.com/rimian/discourse-donations.

Installation

What are Subscriptions?

There are two core components to make subscriptions work for your Discourse application. These are Products and Plans.

A Product describes what the user gets when they subscribe. It has a name and description and is associated with a Discourse user group.

A Plan is how you charge your users for the Product. Plans have rates, billing intervals and trial periods. A Product may have multiple Plans. For example: a yearly and a monthly Plan. You can't change plans much once they are created but you can archive them and create new ones.

Testing

Test with these credit card numbers:

  • 4111 1111 1111 1111

Warranty

This software comes without warranties or conditions of any kind.

Credits

Many thanks to Chris Beach and Angus McLeod who helped on the previous version of this plugin.

Known issues

  • CSS is mucked up in Safari and probably Firefox too.
  • The phone number isn't sent to Stripe

TODOs

  • Confirm dialog CSS isn't the best.
  • Check against other themes (works ok with light and dark)
  • Validate the model properly. Not in the stripe component
  • Show the transaction on the thank you page.
  • Work out where to put the helper tests. Name collision!