Skip to content
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

Subscribing to existing plan #5

Closed
shaklev opened this issue May 9, 2018 · 1 comment
Closed

Subscribing to existing plan #5

shaklev opened this issue May 9, 2018 · 1 comment
Labels

Comments

@shaklev
Copy link

shaklev commented May 9, 2018

Besides the webhook & upload/download billing plans (command line) functionalities i can't reckon a functionality to connect/sub a user to a specific plan. I don't know if that's really considered in this library ( i assumed it since in the desc. its meant for subscriptions ) , but the djstripe plugin allows the loged-in user to subscribe to a specific plan using REST API.

@jleclanche
Copy link
Member

Yeah dj-paypal is essentially meant as a webhook receiver, to store a local copy of the Paypal subscription data and tie it all up to your Django users so you can quickly look up who is and isn't subscribed.

Subscribing a particular user on a plan is done through the paypal APIs itself. Here's how we do it:

https://github.com/HearthSim/HSReplay.net/blob/08e8d89e91b3360351b08029ee4de7da9b865f02/hsreplaynet/billing/views.py#L446-L531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants