I do not wish to send my customers to Paypal but I also do not wish to transmit the credit card information to my server.
I am looking for the correct/specific API that uses JavaScript to send the credit card information with PayPal and receive a token that I can send to my server to process a payment.
The server-side is very comfortable because I have access to the REST API docs.
But, I simply cannot find any documentation for the JavaScript part that sends credit card info directly to PayPal servers from the customer's browser without involving my servers.
Assuming there was such a way, you would expose yourself to all sorts of problems because you would have to pass your API keys to the client, who could then run anything against your account that they wanted (i.e. I could place an order and then issue myself a refund). In short, you would lose control over a process you literally cannot afford to lose control over.
The only way to process credit cards without processing the card information itself is to use a service that hosts their own checkout process. PayPal Payments Standard is one such service but there are others. You will basically sacrifice control for not having to be PCI complaint, which is a business decision only you can make.