]> 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:38:17 +0000 (17:38 -0500)
commitcdde9ec0df4efcb1e56f48f865d20462f13c8fb6
tree87672452010e1bece2369919efd4c4ec34a1a415
parent923dbde7ca649ff78bbb1fe14c0c506738b72d97
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