Working branch is at:
http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mmorgan/lp1708728_fix_stripe_cc_payments_off_by_one_cent
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
To reproduce/test:
- Add a bill to a patron record in one of the following amounts:
$8.20 $8.19 $9.95 $8.54
All these amounts fail this test:
perl -e 'print "no match\n" unless ((8.20 * 100) == int(8.20 * 100))';
- 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.
Working branch is at:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ mmorgan/ lp1708728_ fix_stripe_ cc_payments_ off_by_ one_cent
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 processor. stripe. secretkey
credit.
To reproduce/test:
- Add a bill to a patron record in one of the following amounts:
$8.20
$8.19
$9.95
$8.54
All these amounts fail this test:
perl -e 'print "no match\n" unless ((8.20 * 100) == int(8.20 * 100))';
- 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.