From 2ddbe995de360c62265007ac0ede43df52aa013e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 19 Jul 2016 10:03:28 -0400 Subject: [PATCH] JBAS-1494 PayFlow hosted page comment1=barcode 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index 9716e4d42d..d9eb379822 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -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, -- 2.11.0