Stripe: Add patron info to message

Bug #1969994 reported by Terran McCanna
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.8
Fix Released
Medium
Unassigned
3.9
Fix Released
Medium
Unassigned

Bug Description

Evergreen 3.8 / Stripe Payment Intents

There are currently situations (see bug 1965579 for example, but there may be others) where a patron can make a payment through the OPAC, Stripe can successfully charge them, but then when Stripe sends the info back to Evergreen it hits an error and Evergreen does not credit the patron account.

These payments show up on Stripe's report, but there is nothing on that report that can be used to identify which patron made the payment, so no way for staff to correct the patron's account.

In PINES we are adding the patron's database ID to the info that we send to Stripe so that it will appear in Stripe's Description field as a way library staff can reconcile the payment with the correct account. Patch coming momentarily in case it is something that would be useful to other libraries.

Revision history for this message
Terran McCanna (tmccanna) wrote :
tags: added: pullrequest
tags: removed: pullrequest
Changed in evergreen:
assignee: nobody → Terran McCanna (tmccanna)
Revision history for this message
Terran McCanna (tmccanna) wrote :

No, that's not getting the right ID. Oops.

Revision history for this message
Terran McCanna (tmccanna) wrote :

Second commit pushed to same branch to use the patron id rather than the card id:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mccanna/lp1969994_stripe_patron_id

tags: added: pullrequest
Changed in evergreen:
assignee: Terran McCanna (tmccanna) → nobody
Revision history for this message
Terran McCanna (tmccanna) wrote :

Note that we've had this working in production in PINES for 3 months.

Revision history for this message
Garry Collum (gcollum) wrote :

Set up stripe in a vm with my test keys to test. This is nice. A signed-off branch is at https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/gcollum/lp1969994_strip_patron_id-signoff

Oops! Sorry about the typo in the in the signoff path.

tags: added: signedoff
Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Hello, I also tested this.

I've tested this on https://terran-master.gapines.org.

Marked two items for user 99999329662 lost. User DB ID: 18

Received a screenshot from Stripe dashboard that showed "User Database ID: 18". So it appears to be working as intended.

Josh

Changed in evergreen:
status: New → Confirmed
milestone: none → 3.next
importance: Undecided → Medium
Changed in evergreen:
milestone: 3.next → 3.10-beta
Changed in evergreen:
milestone: 3.10-beta → 3.10-rc
Changed in evergreen:
milestone: 3.10-rc → 3.10.0
Revision history for this message
Jason Boyer (jboyer) wrote :

Pushed a squashed commit and relnote to master/3_10, rel_3_9, and rel_3_8. Thanks Terran, Garry, and Josh!

Changed in evergreen:
status: Confirmed → Fix Committed
Galen Charlton (gmc)
Changed in evergreen:
status: Fix Committed → Fix Released
milestone: 3.10.0 → 3.10.1
status: Fix Released → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.