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

Why did I get API error code 10527?

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

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.

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

Resolution Center
Fix transaction and account related issues
Community Forum
Join the discussion with PayPal customers
Tax center
Get your 1099-K and other tax info here
Business Help
Get help with using any of our PayPal products
Technical Help
Find out how PayPal works for your business
Contact Us
Contact customer service
Message Center
Send, receive, and view your PayPal messages
How are we doing?
Take our survey