paypal-node-api
Advanced tools
Comparing version
{ | ||
"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; |
12166
-0.02%