JBAS-1494 PayFlow hosted page comment1=barcode
authorBill Erickson <berickxx@gmail.com>
Tue, 19 Jul 2016 14:03:28 +0000 (10:03 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Send the patron's barcode as the transaction comment1 so it will appear
within the PayPal Manager for the business office.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm

index 9716e4d..d9eb379 100644 (file)
@@ -1897,6 +1897,9 @@ sub generate_payflow_secure_token {
     # amount comes from prepare_fines()
     $payflow_params{AMT} = sprintf("%.2f", $ctx->{fines}->{balance_owed});
 
+    $payflow_params{COMMENT1} = 
+        $ctx->{user}->card->barcode if $ctx->{user}->card;
+
     # Generate the PayPal secure token.
     my $tokens = OpenILS::WWW::EGCatLoader::PayflowHosted::create_xact_token(
         billing_org => $org,