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

Recurring payments support #106

Merged
merged 3 commits into from
May 17, 2020

Conversation

PetrDlouhy
Copy link
Collaborator

This is implements recurring payments according to #64.
The code should be complete, but might require some polishing. I would appreciate any feedback with this.
I am currently implementing recurring payments with PayU through django-payments and django-plans-payments. The recurrence is induced by server (contrary to PayPal recurring payments), which means, that there is need to store recurring payment data as well as the card token.

@codecov-io
Copy link

codecov-io commented Mar 16, 2020

Codecov Report

Merging #106 into master will increase coverage by 0.08%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
+ Coverage   78.41%   78.50%   +0.08%     
==========================================
  Files          36       37       +1     
  Lines        1978     2014      +36     
==========================================
+ Hits         1551     1581      +30     
- Misses        427      433       +6     
Impacted Files Coverage Δ
plans/models.py 87.84% <77.77%> (-0.40%) ⬇️
plans/admin.py 75.21% <85.71%> (+0.68%) ⬆️
plans/migrations/0005_recurring_payments.py 100.00% <100.00%> (ø)
plans/signals.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 341bcb6...f1a30b7. Read the comment docs.

@PetrDlouhy PetrDlouhy changed the title (WIP) Recurring payments support Recurring payments support Apr 13, 2020
@PetrDlouhy
Copy link
Collaborator Author

I consider this code ready for review.

plans/models.py Outdated Show resolved Hide resolved
plans/models.py Outdated Show resolved Hide resolved
plans/models.py Show resolved Hide resolved
plans/tasks.py Outdated Show resolved Hide resolved
plans/models.py Outdated Show resolved Hide resolved
plans/models.py Outdated Show resolved Hide resolved
plans/models.py Outdated Show resolved Hide resolved
plans/models.py Outdated Show resolved Hide resolved
@PetrDlouhy PetrDlouhy force-pushed the feature/recurring branch 3 times, most recently from 055e999 to ed2b693 Compare April 15, 2020 09:18
@PetrDlouhy
Copy link
Collaborator Author

@Alir3z4 I fixed most of your requests and commented the rest of them. I have also written some info about recurring payments to the docs.

I also realised, that we should not send reminders for recurring accounts. Although somebody might request other kind of reminders before recurring payment.

@Alir3z4 Alir3z4 merged commit 76de058 into django-getpaid:master May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants