LP#1321411: restore ability to handle credit payments using a processor other than...
authorGalen Charlton <gmc@esilibrary.com>
Tue, 20 May 2014 18:42:32 +0000 (11:42 -0700)
committerDan Wells <dbw2@calvin.edu>
Thu, 22 May 2014 13:14:06 +0000 (09:14 -0400)
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>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
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,