Home
  • Payments and Transfers
  • Disputes and Limitations
  • My Account
  • My Wallet
  • Login & Security
  • Seller Tools

Why did I get API error code 10527?

Issue
PayPal returned API error code 10527 - Invalid Data - This transaction cannot be processed. Please enter a valid credit card number and type.

Cause
The Direct Payment API response includes this error message when the credit card information you're passing has problems. The problems can involve the card type (such as Visa, MasterCard, Amex, or Discover), the card number, or both.

Solution
To resolve this error, ensure that you're passing the correct card type and that the number format is correct for that credit card type. Make sure the Credit Card information is mapped to the Credit Card fields in your form. The following list has examples of card type or number format issues that would produce error code 10527:
  • Passing an Amex credit card number that begins with a number other than 3.
  • Passing a Visa credit card number that has more or fewer than 16 digits.
  • Passing white spaces in your card number in the API request. White space characters are treated as part of the card number.
See the Developer Portal for a complete list of NVP/SOAP API error codes.
Was this article helpful?

More ways we can help

How are we doing?
Take our survey

We use cookies to improve your experience on our site. May we use marketing cookies to show you personalized ads? Manage all cookies