Why did I get API error code 10500?
The PayPal Payments Pro billing agreement hasn't been accepted. You must apply for PayPal Payments Pro before you can make successful DirectPayment API calls. Approval for PayPal Payments Pro isn't your acceptance of the billing agreement.
See the Developer Portal for a complete list of NVP/SOAP API error codes.