this is a REST API example using Nodejs to process orders using Paypal REST API
these are the environment variables required
CLIENT= your client id
SECRET= your secret id
PAYPAL_API=https://api-m.sandbox.paypal.com
You can get your client and secret id from Paypal Developer