From 74ed73e28b567d0d365e346c1122d2a5eea8255e Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Fri, 22 Apr 2022 16:47:12 -0400 Subject: [PATCH] PINES Stripe Change - User ID Adds the patron's database id to the info being passed to Stripe so that payments that Stripe collected that didn't get registered in Evergreen can be more easily tracked down. Signed-off-by: Terran McCanna --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a41601318a..f261bdf988 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -2330,7 +2330,8 @@ sub load_myopac_payment_form { my $stripe = Business::Stripe->new(-api_key => $skey); my $intent = $stripe->api('post', 'payment_intents', amount => $self->ctx->{fines}->{balance_owed} * 100, - currency => $currency || 'usd' + currency => $currency || 'usd', + description => 'PINES User Database ID: ' . $self->ctx->{user}->card ); if ($stripe->success) { $self->ctx->{stripe_client_secret} = $stripe->success()->{client_secret}; -- 2.11.0