PINES Stripe Change - User ID
authorTerran McCanna <tmccanna@georgialibraries.org>
Fri, 22 Apr 2022 20:47:12 +0000 (16:47 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 15 Aug 2022 18:27:18 +0000 (14:27 -0400)
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 <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm

index 047c1a0..1da555b 100644 (file)
@@ -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};