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

Ignore less than 50.00 DKK in AutoPayment #311

Merged
merged 5 commits into from
May 27, 2022

Conversation

joandrsn
Copy link
Contributor

This PR stops AutoPayment from automatically accepting less than 50.00 DKK MobilePayments.
This is to encourage members to deposit more than 49.99 DKK to minimize the amount of transactionsfees in MobilePay.

Additionally this PR also removes the "Approved" logentry for a MobilePayment.
This is to lessen the spam in the logentries. The entry is already logged when there is created a new payment entry.
In the image below, the top element would be removed.
image

@codecov-commenter
Copy link

codecov-commenter commented May 18, 2022

Codecov Report

Merging #311 (cfabc55) into next (efd0d55) will increase coverage by 0.19%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             next     #311      +/-   ##
==========================================
+ Coverage   82.87%   83.07%   +0.19%     
==========================================
  Files          31       31              
  Lines        2628     2659      +31     
  Branches      188      188              
==========================================
+ Hits         2178     2209      +31     
  Misses        418      418              
  Partials       32       32              
Impacted Files Coverage Δ
stregsystem/models.py 88.15% <ø> (-0.04%) ⬇️
stregsystem/utils.py 75.53% <ø> (ø)
stregsystem/tests.py 99.79% <100.00%> (+<0.01%) ⬆️

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 efd0d55...cfabc55. Read the comment docs.

Copy link
Member

@falkecarlsen falkecarlsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fine stopgap but we need a better solution for handling mobilepayments that does not meet our requirements (<50 DKK) and may need refunds (requiring mobilepay API refunding, which is further hampered by their new rules regarding covering any refunds off of incomes within the same business day).

@falkecarlsen falkecarlsen merged commit d4485a3 into f-klubben:next May 27, 2022
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.

None yet

3 participants