]> 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:37:41 +0000 (17:37 -0500)
commit338ff97d2667921d68831779fa2925ee52574ce9
treebd2693c4ae3c9e364c252e810e8f29bf2fb269e6
parent8adbe84b5ba98cd1970d73c14a650d031f7b1a2d
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