LP#1321411: restore ability to handle credit payments using a processor other than... user/gmcharlt/lp1321411_fix_non_stripe_cc_payments
authorGalen Charlton <gmc@esilibrary.com>
Tue, 20 May 2014 18:42:32 +0000 (11:42 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 20 May 2014 18:45:30 +0000 (11:45 -0700)
This patch ensures that the processor name is passed
to OpenILS::Application::Circ::CreditCard::process_payment, avoiding
an exception thrown by Business::OnlinePayment.

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

index be2c88b..0c1493a 100644 (file)
@@ -126,6 +126,7 @@ sub process_stripe_or_bop_payment {
             unless $cc_args->{number};
 
         return OpenILS::Application::Circ::CreditCard::process_payment({
+            "processor" => $cc_args->{processor},
             "desc" => $cc_args->{note},
             "amount" => $total_paid,
             "patron_id" => $user_id,