 <p>Error 10501 can occur if using DoDirectPayment API but you do not have PayPal Payments Pro on your account. </p> <p>If you have Payments Pro on your account but still getting this error, it could be an account setup issue; in that case contact customer support to further investigate.</p>