From: Terran McCanna Date: Fri, 22 Apr 2022 20:47:12 +0000 (-0400) Subject: PINES Stripe Change - User ID X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7e846b7df08231fe8dcf602446b76962b0cadc56;p=evergreen%2Fpines.git 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 --- 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 047c1a0b52..1da555b265 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};