🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

paypal-node-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypal-node-api - npm Package Compare versions

Comparing version

to
0.1.5

2

package.json
{
"name": "paypal-node-api",
"version": "0.1.4",
"version": "0.1.5",
"description": "Unofficial API to make working with paypal bearable",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,3 +5,3 @@ # Paypal Node API

Only supports subscriptions for now, others will be added per request.
Only supports subscriptions and orders for now, others will be added per request.

@@ -8,0 +8,0 @@ **THIS IS NOT AN OFFICIAL API**

@@ -31,3 +31,3 @@

const payload = {...extras};
return (await axios.post(`${baseUrl}/${orderId}/cancel/authorize`, payload)).data;
return (await axios.post(`${baseUrl}/${orderId}/authorize`, payload)).data;
}catch(err){

@@ -40,3 +40,3 @@ throw err;

const payload = {...extras};
return (await axios.post(`${baseUrl}/${orderId}/cancel/capture`, payload)).data;
return (await axios.post(`${baseUrl}/${orderId}/capture`, payload)).data;
}catch(err){

@@ -43,0 +43,0 @@ throw err;