Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5014

PayPal Checkout: Company Name length or content may cause failed transactions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.8.2
    • Fix Version/s: 5.9.0-b1
    • Component/s: Gateways
    • Labels:
      None

      Description

      PayPal Checkout sends the Company Name (Settings > System > Companies: Edit) in a field called "soft_descriptor". Per https://developer.paypal.com/api/nvp-soap/do-capture-nvp/?mark=SOFTDESCRIPTOR&_ga=2.73319763.1320352304.1701879498-1139392170.1691197493#docapture-request-message

      Character length and limitations: The soft descriptor can contain only alphanumeric characters, dashes, asterisks, periods, and spaces.

      If you pass any other characters, such as comma (,), PayPal returns an error code.

      The soft descriptor can also include a phone number, which can be toggled between the merchant's customer service number and PayPal's Customer Service number.

      The maximum length of the soft descriptor is 22 characters. Of this, the PayPal prefix uses either four or eight characters of the data format. The maximum length of the soft descriptor information that you can pass in this field is:

      22 - len('PP * | PAYPAL *') - len('var'Descriptor in Payment Receiving Preferences'/var' + 1)

      For example, assume the following conditions:

      The PayPal prefix toggle is set to PAYPAL * in PayPal's administration tools.

      The merchant descriptor set in the Payment Receiving Preferences is EBAY.

      The soft descriptor is passed in as JanesFlowerGifts LLC.

      The resulting descriptor string on the credit card is: PAYPAL *EBAY JanesFlow

      We should remove non-alphanumeric characters and truncate to 22 characters maximum when setting this field for PayPal.

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.10.0 Sprint 2 [ 189 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Assignee Abdy Franco [ abdy ] Jonathan Reissmueller [ jonathan ]
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 1 hour, 6 minutes [ 3960 ]
        Worklog Id 16728 [ 16728 ]
        abdy Abdy Franco made changes -
        Time Spent 1 hour, 6 minutes [ 3960 ] 1 hour, 21 minutes [ 4860 ]
        Worklog Id 16732 [ 16732 ]
        abdy Abdy Franco made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Dec/23

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 21 minutes
              1h 21m

                Agile