9be1d2de4f
no-issue 1. We do not want to store payment events for payments of 0 value 2. Stripe webhooks can arrive and be processed "out of order", which can result in us attempting to add a payment event for a member which does not yet exist. The change here will 404 in such (edge) cases, so that Stripe will retry the webhook at a later point, when the Member has been created, allowing us to store the payment event.
46 lines
1.0 KiB
JSON
46 lines
1.0 KiB
JSON
{
|
|
"name": "@tryghost/members-api",
|
|
"version": "1.0.0-rc.5",
|
|
"repository": "https://github.com/TryGhost/Members/tree/master/packages/members-api",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
|
|
"lint": "eslint '**/*.js'",
|
|
"posttest": "yarn lint"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib",
|
|
"gateway"
|
|
],
|
|
"devDependencies": {
|
|
"@types/stripe": "7.13.24",
|
|
"jsdom": "15.2.1",
|
|
"mocha": "6.2.3",
|
|
"nock": "12.0.3",
|
|
"should": "13.2.3",
|
|
"sinon": "7.5.0"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/errors": "^0.2.9",
|
|
"@tryghost/magic-link": "^0.6.7",
|
|
"bluebird": "^3.5.4",
|
|
"body-parser": "^1.19.0",
|
|
"cookies": "^0.8.0",
|
|
"express": "^4.16.4",
|
|
"ghost-ignition": "4.5.4",
|
|
"got": "^9.6.0",
|
|
"jsonwebtoken": "^8.5.1",
|
|
"leaky-bucket": "2.2.0",
|
|
"lodash": "^4.17.11",
|
|
"node-jose": "^1.1.3",
|
|
"stripe": "^7.4.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|