-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using django-plans with recurring payments #64
Comments
@amitjindal Let me maybe describe what was the architectural idea behind django-plans and then you will be able to answer yourself if this fits your needs. In django-plans each user has object UserPlan that describes which type of plan did he purchased and what is the expiration date of this plan. System is automatically checking when this expiration date happens and sends some mailing before. User is asked to manualy create new order for next period, this will generate Order Confirmation document, and then once paid user gets updated UserPlan with additional expiration time. There is one extra thing, django-plans have also support different periods for plans, so you can define anything you want like 30 days or 365 days plan extend. At this moment there is no support for automatic subscriptions, however I can easily see how this could be implemented as some feature. Here are my tips:
And then I would add an extra logic that when it sees that account is just going to be expired it first checks what kind of account it is (automatic renewal off or on) and then decide if its off - send email reminding customer to pay manualy, if its on it will search for PlanPricing matching user's current Plan that have attribute That should do the trick and still be as flexible as possible. |
@cypreess Awesome. Thank you so much. I will try to figure this out and ask if I need help. I am also making changes to handle multi-tenant support since you use User objects in models and in multitenant the user is not in shared database. Really appreciate your quick reply and help. Regards |
@amitjindal were you able to get anywhere with this ? |
@Alir3z4 Nope. I didn't end up completing this and its still on back burner. It seemed much more complex to handle multi-tenancy with this. However I do home to get back to this sometime soon. |
Oh, I see. I leave this issue open for future discussion and possible implementation of this future. |
#100 This pull has added |
Hi, I started with experimental implementation of recurring payments with the django-paypal. Currently it doesn't need any support from the Of course I would need to give the user information about state of his/hers subscribtion, so I will have to add some fields like those suggested by @cypreess and @anuj9196. I will try to make PR from this, when my implementation progress. |
Please review recurring code in PR #106 |
Hi, thanks for a great module. I installed and played with the demo and this works beautifully with what I am trying to do. However I need this for a subscription model where someone who is in a plan is on monthly or yearly payments. So I need to generate invoices for that on the same frequency.
Is there a built-in way to handle such payments?
Thanks
Amit
The text was updated successfully, but these errors were encountered: