Home > Enterprise >  Django Membership Site
Django Membership Site

Time:12-16

Please, what's the easiest way to implement membership functionality in Django and integrate it with Stripe/Paypal?

I tried looking into using Groups but still can't figure out how this work either. Any info and/or suggestion(s) would be greatly appreciated.

CodePudding user response:

Group has nothing to do with Stripe or Paypa.

If you are looking to implement a pay subscription Stripe has by far the easiest library, the Stripe documentation is heaven for programmer.

However implementing Stripe require you to understand API, Webhook and a bit of Django/Python*

CodePudding user response:

Did you try googling "Django PayPal" or "Django Stripe"?

I can categorically confirm that there is an integration for this that exists.

They are also highly customisable and usually "plug and play" as far as installing django module extensions goes.

I just googled "Django payment processing" and scrolled past the ads to find this page, which is a comparison of different django payment handlers for you to choose from:

https://djangopackages.org/packages/p/django-payments/

FYI: there are lots of package comparisons because there's so many packages, so its always best to check if something generic exists already before going ahead and creating an integration.

9 times out of 10 there will be a solution that exists that works in most cases. Otherwise, creating these types of integration become time consuming unless they're quite specific to the implementation.

As for membership, you need to go ahead and think about that structure, potentially adopting another companies structure by researching what other tech companies do for this type of service.

Once you figure out the structure, its really simple to integrate a custom model, which allows you to FK to a user, and which contains their "subscription" level or membership package.

If you want them to have different content, you can then use if statements in your templates to display more menu items, front page content, or potentially even whole other sections of content not visible to people with lower subscriptions.

  • Related