-
Notifications
You must be signed in to change notification settings - Fork 127
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
Payments integration #76
Comments
Had you seen my other project? https://github.com/cypreess/django-getpaid It is exactly solving this problem and integrates automatically with django-plans. |
@cypress I mentioned that project in my description.
Also, I didn't find any info about the automatic integration in documentation. I expected similar amount of work for both |
Currently django-getpaid is undergoing major refactoring thanks to Sunscrapers company that will lead the future development of this tool. You might want to contact @dekoza that is leading this effort. No PayPal backend for getpaid is an obvious lack, however, there was no effort by anyone to write and commit such backend. We are always happy to see pull requests. Problems with modern django handling should be over now as @dekoza had updated the code base majorly. Some integration between plans->getpaid is here https://github.com/cypreess/django-plans/blob/master/plans/listeners.py#L68 . Yes, it is sadly not documented. The payment process is initiated anyway by your app in a custom way, so there is no further need for integration that I could see at that stage. |
Current |
@cypreess The plans->getpaid integration you are refering to seems to me to be far from being automatic, but maybe I didn't get it right. In |
I decided, that I will stick with I would also like to help with documenting both payment integration methods in |
@PetrDlouhy you can have a look at |
I successfully integrated https://github.com/mirumee/django-payments, it's quite easy to do so and I recommend doing that. |
@nemesisdesign I have started the django-plans-payments project, so the integration would be even easier. |
Hi all, I spent some time experimenting with the django-plans-payments and currently I also implemented the django-plans-paypal (connector to the django-paypal). My idea is, that we will to implement payment provider chooser inside the PLANS_PAYMENT_PROVIDERS = [
(
'identifier',
'Display name',
'path.to.the.ConnectorClass',
class_init_kwargs_dict,
),
(
'default',
'Dummy payment',
'plans_payments.dummy.DummyProvider',
)
(
'paypal-card-sandbox',
'PayPal sandbox payment',
'plans_payments.paypal.PaypalCardProvider',
{
'client_id': os.environ.get('PAYPAL_SANDBOX_CLIENT_ID'),
'secret': os.environ.get('PAYPAL_SANDBOX_SECRET'),
'endpoint': 'https://api.sandbox.paypal.com',
'capture': True,
}
),
...
} Then we can easily make payment type chooser in Different payment providers have different workflow, so we will probably need to implement some support for delayed payment confirmation. The user shouldn't get confusing messages if the payment was succesfull, but is not confirmed yet. -- @cypreess @Alir3z4 @nemesisdesign What do you think about this all? Do you have any further thoughts about this implementation? |
Personally I'd rather implement what you are describing on my own, ensuring that django-plans provide the right abstractions to do it fast and avoid having to rewrite common logic. I'm not using the HTML templates, I'm using the django-plans core code via some REST APIs. |
I'm very late to this discussion but I think what django-getpaid is doing should be on the correct path as long as the core responsibility is kept in the main library and then backend being implemented separately in different repo. Good job on that that didn't go to the path of having all the backend in 1 repo, Regarding supporting into django-plans, I think django-plans would be better to stay DRY and focused on handling plans and nothing about payment, but provided with utilities to get connected to Payments as well so a bridge between django-plans and django-getpaid becomes in matter of some small code changes or some functions being written. If we get to a point to have django-getpaid and django-plans work with not much of a headache, it would be really easy to plug it into any project and have fun with it. |
I am trying to integrate
django-plans
with some payment system (preferably PayPal for my project). I think, that this is not very well documented, and I think, that there could be much bigger part of the code shared between applications.That is why I started
django-plans-payments
, which is my attempt for connectingdjango-plans
withdjango-payments
application.At this moment it is far from being complete, or even usable in any sensible way.
Anyway, I would like to discuss here some details about future of this project and it's integration with payment backends. I am totally open to integrating my code (when complete) with
django-plans
. I think it would be nice, if it could support more payment backends (likedjango-getpaid
) in the simplest way possible (ideally only by configuration).What do you think? Do you payment-specific in your projects, that I could use in
django-plans-payments
?The text was updated successfully, but these errors were encountered: