Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5447

Realex payment process should strip all whitespace out of credit card number

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.1
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      Contribution pages allow users to enter whitespace when entering their credit card number. There is a note under the field that says to not enter dashes or spaces, and if you enter a dash the form validation rules kick into play. The same is not true for whitespace, and the user is allowed to proceed with the order.

      The problem is that Realex will deny the transaction if it has whitespace. So, rather than putting stricter validation rules on the form element, I think it would be best if the Realex payment processor (and possibly other payment processors) strips out any whitespace before sending on the the processor. This would meant that users can still enter whitespace if they like (and from experience, it seems that some people do like to do this even though the note on the form tells them not to) and their transaction would not be denied.

      Patch to follow.

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              mrfelton Tom Kirkpatrick
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: