Accept PayPal and credit card payments online or on mobile.
To utilize unirest for node.js install the the npm module:
$ npm install unirest
After installing the npm package you can now start simplifying requests like so:
var unirest = require('unirest');
unirest.post("https://PayPaldimasV1.p.rapidapi.com/authorizeOrder") .header("X-RapidAPI-Key", "undefined") .header("Content-Type", "application/x-www-form-urlencoded") .send("sandbox=undefined") .end(function (result) { console.log(result.status, result.headers, result.body); });