• Threads
  • Categories
  • Users
  • GitHub
  • Documentation
  • Discord
  • forum
  • group
  • search
  • chevron_right Threads
  • label Dev Development

Adding Stripe integration

yaroslawbagriy
June 17, 2020
chat_bubble_outline 10
  • link
    yaroslawbagriy
    Members 36 posts
    June 17, 2020, 4:55 a.m. June 17, 2020, 4:55 a.m.
    link

    Greetings Misago community,

    Has anyone been able to integrate Stripe into their Misago forum? I would love to make my forum have a paywall/paid subscription to be able to view and post. It looks like there's already a way to show/hide threads and enable/disable posting for certain types of members. I don't think it'd be too hard to implement stripe for paid signups.

    If no one has done it yet, how would I go about implementing that? I would be able to do it, and could even submit a pull request so everyone could benefit.

  • link
    rafalp
    Project Lead 1623 posts
    June 19, 2020, 12:40 a.m. June 19, 2020, 12:40 a.m.
    link

    No plugin like this exists.

    Looking at the task, I would grant user a role "Has Paid Subscription" when they pay for subscription, and use management command fired via cron task every 12-24h to remove this role from users with expired subscriptions.

    From Django side of things I would implement new view that would let user to buy this subscription. There's no way for plugins to inject custom sections to user profile, so I would make it separate section of the site.

  • link
    yaroslawbagriy
    Members 36 posts
    June 21, 2020, 3:48 a.m. June 21, 2020, 3:48 a.m.
    link

    Would this require a full rebuild and relaunch of the forum? It might not take too long. I potentially do it with some 3rd party solutions + manually adding/removing users. I'll look into this at some point. If anyone's working on it, please let me know.

  • link
    rafalp
    Project Lead 1623 posts
    June 21, 2020, 4:01 a.m. June 21, 2020, 4:01 a.m.
    link

    I don't think it would require re-launch of forum. From my understanding it would be two extra django views:
    - stripe payment form
    - view that stripe will call to confirm that payment was processed that would update user to give them extra access.

    yaroslawbagriy likes this.

    favorite 1

  • link
    yaroslawbagriy
    Members 36 posts
    June 21, 2020, 5:03 a.m. June 21, 2020, 5:03 a.m.
    link

    But we would need to rebuild the forum with the extra added code correct?

  • link
    yaroslawbagriy
    Members 36 posts
    June 21, 2020, 5:03 a.m. June 21, 2020, 5:03 a.m.
    link
    @rafalp has written:

    I don't think it would require re-launch of forum. From my understanding it would be two extra django views:
    - stripe payment form
    - view that stripe will call to confirm that payment was processed that would update user to give them extra access.

    This doesn't look too bad!

    rukundo likes this.

    favorite 1

  • link
    rafalp
    Project Lead 1623 posts
    June 21, 2020, 3:04 p.m. June 21, 2020, 3:04 p.m.
    link
    @yaroslawbagriy has written:

    But we would need to rebuild the forum with the extra added code correct?

    If you mean ./appctl rebuild then yes, but this action only rebuilds docker containers to run with latest code. It doesn't delete any data.

    yaroslawbagriy likes this.

    favorite 1

  • link
    yaroslawbagriy
    Members 36 posts
    June 21, 2020, 3:52 p.m. June 21, 2020, 3:52 p.m.
    link

    That's great to hear! Thank you for the info :)

  • link
    yaroslawbagriy
    Members 36 posts
    July 5, 2020, 4:59 p.m. July 5, 2020, 4:59 p.m.
    link

    @rafalp would it be possible to add Stripe integration into the next release? I've been trying to do it on my own here but am having a hard time getting it to work properly. I believe a Stripe integration would be overall beneficial to the project. I've been noticing a huge uptick in paid communities that are built on platforms such as Discourse. Having the ability for a paid option would get virality within the indie maker community.

  • link
    rafalp
    Project Lead 1623 posts
    July 5, 2020, 5:08 p.m. July 5, 2020, 5:08 p.m.
    link

    @yaroslawbagriy sorry, not gonna happen. Every new feature I add is extra work and obligation for me in the future.

    If you have problems, put the code on Github, describe what you've tried to do and where, then link to it there so I can offer feedback and directions ;)

    yaroslawbagriy likes this.

    favorite 1

  • link
    yaroslawbagriy
    Members 36 posts
    July 6, 2020, 4:12 a.m. July 6, 2020, 4:12 a.m.
    link

    @rafalp yeah that totally makes sense. I'll come back to it in a few months since there's a lot of other things I need to do first. Once I get it, would I be able to submit a PR to get it merged into master?

There are no more posts in this thread.

  • This site uses cookies to gather statistical data for use in traffic analysis. Header photo by Joanna Malinowska.
  • GitHub
  • Documentation
  • Discord
  • Terms of service
  • Privacy policy
powered by misago