Why did I get API error code 10566?
PayPal returned API error code 10566 - Credit card type unsupported.
This error relates to Canadian merchants who don't accept Visa Debit payments.
Upon login to your PayPal account, you should be prompted to opt in for Visa Debit processing. Once you've opted in, you can process Visa Debit transactions immediately.
Note: See the Developer Portal for a complete list of NVP/SOAP API error codes.