Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.16
    • Fix Version/s: 4.7.23
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Minor (add functionality in backwards-compatible manner)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      When the user enters a credit card payment on the contribution form or an admin user does from the backoffice credit card payment form, we want to process the payment so that the credit card type and the last 4 digits of the card are stored in the civicrm_financial_trxn record for the payment. This issue includes changes to the form and to the BAO and to the API to allow this to happen.

      So far as I know, we cannot be sure that the payment processor won't be js browser based and do the payment from within the browser before submitting the completed transaction back to the server. So ideally we would piggy back on the js code already present in the browser that identifies the credit card type for display purposes, and capture that in a hidden field to be sent back to server. For the last four digits, those too can be calculated in the browser from the entered number and stored in a hidden field that will be sent back to browser. This prevents there being any dependence on the credit card number being sent to the server.

      Please make this js be as reusable as possible; ideally it will be the same code included in the js sent to the browser for contribution, membership, event registration and record payment forms.

      Related IIDA ticket : https://jmaltd.atlassian.net/browse/IIDA-114

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: