]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1429268 credit card payment address fall-thru
authorBill Erickson <berickxx@gmail.com>
Fri, 6 Mar 2015 22:18:21 +0000 (17:18 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 12 Feb 2016 22:35:24 +0000 (17:35 -0500)
commitc3fe2f44128f83720777052745015b2b7265887a
tree63750f1d0245ad7afac5818eb87732d620185b1e
parent0b2282b6fd569366d30db914dad2e3e0a881dec5
LP#1429268 credit card payment address fall-thru

When a patron has no mailing address linked, attempt to read address
data from the patron's billing address.  Similarly, if all address
fields are properly set by the API caller, except the country, and the
patron has no addresses, attempt to determine the country from org unit
settings.

If insufficient address data is provided or divined, return an invalid
params Event (similar to other CC failures).

To test:

[1] Create a patron record that has no mailing address but does
    have a billing address.  Perform or simulate a credit card
    payment; it shoudl fail with an internal error.
[2] Apply the patch and repeat step 1; this time, the payment
    attempt should succeed and use the billing address.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CreditCard.pm