Details
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.