lonnieezell / Bonfire

Jumpstart your CodeIgniter web applications with a modular, HMVC-ready, backend.
http://cibonfire.com
1.39k stars 526 forks source link

Does user subscription means altering bonfire users controller class? #1295

Open jkkenzie opened 6 years ago

jkkenzie commented 6 years ago

If you want to subscribe a user to a service/plan, whats the best approach when using bonfire?

silverark commented 6 years ago

Is it a paid Service/plan and are you using a payment gateway? If so building with Omnipay useful as it enables you to switch payment gateways without having to rewrite any of your code: https://omnipay.thephpleague.com/

I also have a stripe module that I sometimes drop in to projects as it has the includes for the JS, and routes for the webhooks and others bits needed. You just need to stick "stripe/stripe-php" in your composer file.

What sort of thing are you specifically looking for help with?

jkkenzie commented 6 years ago

When a user register, I would like to give the user subscription plans like Free, Silver, Premium e,t,c. I could use Omnipay for payments bit but what about customizing the registration process to allow that step where the user pick a plan, then record to DB. My options was:

Hook the complete register and get user id, then ask user to choose the plan, once they choose a plan, the account is activated.

Is there codeigniter subscription system open source? I cant find, but other frameworks have a lot!