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>
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};