This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Here's yet another attempt to placate PayPal
It turns out there's another twist to the MassPay penny saga: in some situations (when amounts are small enough?), the fee is rounded to what we wanted it to be anyway. See #2296 for a description. This commit takes a whole 'nother approach to fee computation. Instead of computing / 1.02 of the target and then fudging it from there, we take a much simpler approach. We start at a penny under the target and work down from there a penny at a time until we find a value that works. Less efficient but safer.
- Loading branch information
1 parent
de92176
commit cd10912
Showing
1 changed file
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters