bugfix: postinstall -> prepare

This commit is contained in:
AJ ONeal 2021-10-09 17:17:38 -06:00
parent 69ed827e3c
commit fc6eb5371a
3 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,9 @@ PPC.init({
client_secret: "****",
});
PPC.Subscriptions.create({
})
PPC.Subscriptions.createRequest({
// See https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions
});
```
![](https://i.imgur.com/brFTseM.png "PayPal Checkout API Flow")

1
package-lock.json generated
View File

@ -7,7 +7,6 @@
"": {
"name": "@root/paypal-checkout",
"version": "0.1.0",
"hasInstallScript": true,
"license": "MPL-2.0",
"dependencies": {
"@root/request": "^1.7.0"

View File

@ -5,7 +5,7 @@
"main": "paypal-checkout.js",
"files": ["lib"],
"scripts": {
"postinstall": "node utils/make-categories.js",
"prepare": "node utils/make-categories.js",
"test": "node test.js"
},
"repository": {