Allow subscription of predetermined length

@Alex_王 @Jonathan5 @nathank

if you want you can try out the updated code you can check out the branch from this PR:

you will have to run the stripe cli locally to relay the webhook messages. This is the command to use:

stripe listen --forward-to http://localhost:4200/subscriptions/hooks --api-key yourapikey

you also need to add the stripe webhook secret to the discourse instance (as the plugin setting “webhook secret”). You can find it in the code sample on the right in the webhook creation form on stripe.

I made a short video to give an overview of the data structures and how they connect to the Discourse data structures:

pretty much agree with this, but it should be fixed now. You can configure anything you want in stripe with this (payment methods / taxes / pricing table etc) and it should all work.

The plugin just manages the connection between Discourse users and stripe customers and the creation of products, plans, etc is completely done in the stripe dashboard.

There can still be bugs though. If you see anything please report. :grinning: :+1:

3 Likes