CRM-20234 Paypal transaction details truncated and not showing full event title

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.7.14
    • Fix Version/s: None
    • Component/s: CiviContribute
    • Labels:
      None
    • Versioning Impact:
      Minor (add functionality in backwards-compatible manner)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Paypal receipt for an event truncates event title information. Appears that addition of contact ID and Contribution ID as prefix for event title in paypal details comes at the expense of limiting the event title to only 15 characters (total of 24).

      Would be useful to increase the number passed to paypal to a larger number - 48? 64?

      Assuming that this could be covered if other paypal transaction work were being done.

        Attachments

          Activity

          [CRM-20234] Paypal transaction details truncated and not showing full event title
          Eileen McNaughton added a comment -

          I'm not sure how many characters it accepts - their docs would say. This can also be altered in an extension, so people wanting a different display could install the extension. There is an alterPaymentProcessor params hook which is pretty simple to use

          David Tarrant added a comment -

          My uninformed guess is that Civi is passing a fairly short string to Paypal. Its possible that Paypal truncates but the length seems unnecessarily short. Not a huge issue but a client cannot see the full event info to assign the payment to the correct event. There are workarounds. Does not rise to the level of warranting an extension just wanted to record it so that someone, sometime who might be in that code could see if a longer string was warranted.

          Eileen McNaughton added a comment -

          In the file

          CRM_Core_Payment_PayPalImpl

          there is a line

          'item_name' => $this->getPaymentDescription($params),

          you could try changing that to

          'item_name' => $this->getPaymentDescription($params, 126),

          Looks like a paypal std fix, not a paypal pro fix

          David Tarrant added a comment -

          Thanks, Eileen.

          I am not in a position to make any code changes, but this should help if it ends up on radar screen for a quick fix as part of other changes.

          David Tarrant added a comment -

          Looks like this is fixed in CRM-19863

          Eileen McNaughton added a comment -

          great

            People

            • Assignee:
              Unassigned
              Reporter:
              David Tarrant

              Dates

              • Created:
                Updated:
                Resolved: