Single-word Fullname causes rejected payment

Created on 6 November 2012, almost 13 years ago
Updated 18 August 2025, about 2 months ago

During checkout, if you enter a single name in Fullname (e.g. Sting) during checkout, only the FIRSTNAME parameter is populated in the request to Paypal and the transaction is rejected with an error from Paypal (L_ERRORCODE => 10513, L_SHORTMESSAGE0 => Invalid Data, L_LONGMESSAGE => This transaction cannot be processed. Please enter a last name.). This appears in Drupal Commerce as a form error on the checkout review page with text "We encountered an error processing your payment. Please verify your credit card details or try a different card."

1. Paypal WPP module needs to more gracefully handle a single name being provided.
2. A the actual error from Paypal should be made visible to the customer so that useful action can be taken.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

PayPal WPP

Created by

πŸ‡³πŸ‡ΏNew Zealand jonathan_hunt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024