Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Better PayPal penny testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rummik authored and chadwhitacre committed Apr 18, 2014
1 parent 27b9547 commit de92176
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/masspay.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def assess_fee(self):
fee = min(fee, self.fee_cap) # capped at $20, or $1 for U.S.
self.fee += fee
self.net -= fee
if self.net % 1 == D('0.25'):
if self.net % 1 in (D('0.25'), D('0.75')):

# Prevent an escrow leak. It's complicated, but it goes something
# like this:
Expand Down Expand Up @@ -94,6 +94,8 @@ def assess_fee(self):
#
# See also: https://github.com/gittip/www.gittip.com/issues/1673
# https://github.com/gittip/www.gittip.com/issues/2029
# https://github.com/gittip/www.gittip.com/issues/2198
# https://github.com/gittip/www.gittip.com/pull/2209

self.gross -= D('0.01')
self.net -= D('0.01')
Expand Down

0 comments on commit de92176

Please sign in to comment.