Web Client: Recording credit card payment fails without approval code

Bug #1743262 reported by Terran McCanna
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned

Bug Description

Likely related to:
https://bugs.launchpad.net/evergreen/+bug/1622696

In 3.0.2:

When choosing the option to "Record externally processed payment", approval code does not indicate it is required.

Entering an approval code processes normal in both Firefox and Chrome.

Submitting without an approval code in Firefox shows BAD_PARAM alert and returns user to bills screen. (The alert is confusing for users, but at least the users knows something was wrong.) No receipt is printed.

Submitting without an approval code in Chrome shows BAD_PARAM alert but then prints a receipt showing that the patron paid the bill even though the system has not recorded a bill payment.

Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Bill Erickson (berick)
Changed in evergreen:
status: New → Confirmed
Revision history for this message
Bill Erickson (berick) wrote :

I have pushed some fixes here:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1743262-ecom-appr-code-required

The branch does 2 basic things:

1. Make approval code a required field in the cc payment form.
2. Prevents the payment code from continuing any further when the payment API fails.

#2 should help in other cases where printing occurs regardless of a payment failure (bug #1746830), though it's not clear it will resolve all cases, since they are not yet reproducible.

Changed in evergreen:
milestone: none → 3.0.4
tags: added: pullrequest
Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
Revision history for this message
Terran McCanna (tmccanna) wrote :

Thanks so much, Bill!

I have tested this code and consent to signing off on it with my name, Terran McCanna and my email address, <email address hidden>.

tags: added: signedoff
Galen Charlton (gmc)
Changed in evergreen:
importance: Undecided → Medium
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master and rel_3_0, along with a follow-up patch to disable the submit button if the approval code is not supplied. Thanks, Bill and Terran!

Changed in evergreen:
status: Confirmed → 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.