]> git.evergreen-ils.org Git - Evergreen.git/commit
LP 1708728 - Fix Stripe penny errors introduced by perl int() function
authorMichele Morgan <mmorgan@noblenet.org>
Wed, 9 Aug 2017 15:36:20 +0000 (11:36 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 23 Aug 2017 20:18:19 +0000 (16:18 -0400)
commitb0f7187487ee5dc2996eaa60cd0575c12557eb43
treeab2de7e3964f670c297307d9cca79536e5e6adc1
parent0e58c1db48f0860322364334d62d5c46c2ef9495
LP 1708728 - Fix Stripe penny errors introduced by perl int() function

Fixes the issue where payment amounts sent to Stripe can be one cent less
than the actual Evergreen payment due to use of the perl int() function.

To test
-------
A Stripe account is required to view transactions on the Stripe side.
To enable test payments, Stripe testing API keys need to be entered
in the Evergreen ou settings:

credit.processor.stripe.pubkey
credit.processor.stripe.secretkey

- Add a bill to a patron record with the following amounts: $8.20
- Login to the opac as the patron and pay the bill.
- View the transaction on the Stripe side and see that it is one cent
  less than the paid bill in Evergreen.
- Apply the patch.
- Repeat the steps above.

- On the Stripe side, see that the Stripe amount and Evergreen amount
  now match.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Dan Pearl <dpearl@cwmars.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm