JBAS-1588 CC payment balances match active data
authorBill Erickson <berickxx@gmail.com>
Fri, 16 Sep 2016 15:26:29 +0000 (11:26 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
commite9071ecedc0c43378cdd6eb836984fef0a3cdaf4
tree22521b914421fe69f26192ecc1e5573efe2456a5
parentb1c26178cd4caef68f91a33d9a9c5f18ef67a239
JBAS-1588 CC payment balances match active data

Ensure that the total amount to be tracked as payments in EG after a
successfull PayPal payment match the PP payment amount.  Exit early and
return a non-success to PP when the totals don't match.

This imbalance can occur when a transaction is paid by some other client
(secondary PP instance, staff client) after the PP transaction has been
initiated with the original transaction balance owed amount.

IOW, don't accept payments for transactions that were paid off through
some other mechanism while the PP transaction was in process.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm