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 <tmccanna@georgialibraries.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.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 => 'User Database ID: ' . $self->ctx->{user}->id
);
if ($stripe->success) {
$self->ctx->{stripe_client_secret} = $stripe->success()->{client_secret};