From: Terran McCanna Date: Fri, 22 Apr 2022 21:12:47 +0000 (-0400) Subject: LP#1969994: Stripe: Add User Database ID X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=362c534a65481d55747eaf16cee34140d277e37f;p=evergreen%2Fpines.git LP#1969994: Stripe: Add User Database ID Adds the patron's database ID to the payment intent so that payments can be more easily reconciled with the Evergreen database. Signed-off-by: Terran McCanna Signed-off-by: Garry Collum Signed-off-by: Jason Boyer --- 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 dab791836f..78bba4acac 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -2331,7 +2331,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 => 'User Database ID: ' . $self->ctx->{user}->id ); if ($stripe->success) { $self->ctx->{stripe_client_secret} = $stripe->success()->{client_secret};