-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add webhook sample infrastructure (#1677)
- Loading branch information
1 parent
22cc651
commit 663f7db
Showing
21 changed files
with
351 additions
and
1,002 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Stripe keys | ||
STRIPE_SECRET_KEY= | ||
STRIPE_WEBHOOK_SECRET= | ||
STRIPE_WEBHOOK_SECRET=whsec_0000000000000000000000000000000000000000000000000000000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
*/tsconfig.json | ||
**/.eslintrc.js | ||
**/package-lock.json | ||
.env | ||
express-ts.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "webhook-signing-example-express", | ||
"version": "1.0.0", | ||
"description": "Express webhook parsing sample", | ||
"repository": {}, | ||
"main": "./main.ts", | ||
"scripts": { | ||
"run": "ts-node-transpile-only ./main.ts", | ||
"prepare": "../prepare.sh" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"dotenv": "^8.2.0", | ||
"express": "^4.17.1", | ||
"koa": "^2.14.1", | ||
"stripe": "^11.9.1" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.33.0", | ||
"@types/koa": "^2.13.5", | ||
"@types/koa-bodyparser": "^4.3.10", | ||
"@types/node": "^13.1.4", | ||
"typescript": "^4.8.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "webhook-signing-example-koa", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "./main.ts", | ||
"scripts": { | ||
"run": "ts-node-transpile-only ./main.ts", | ||
"prepare": "../prepare.sh" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"dotenv": "^8.2.0", | ||
"koa": "^2.14.1", | ||
"stripe": "^11.9.1", | ||
"koa-bodyparser": "^4.3.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.33.0", | ||
"@types/node": "^13.1.4", | ||
"@types/koa": "^2.13.5", | ||
"@types/koa-bodyparser": "^4.3.10", | ||
"typescript": "^4.8.3", | ||
"ts-node": "^10.9.1" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.