@tsed/stripe 6.110.1 → 6.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/readme.md +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/stripe",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.112.0",
|
|
4
4
|
"description": "Stripe package for Ts.ED framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"tslib": "2.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@tsed/core": "6.
|
|
37
|
-
"@tsed/di": "6.
|
|
38
|
-
"@tsed/exceptions": "6.
|
|
39
|
-
"@tsed/platform-middlewares": "6.
|
|
40
|
-
"@tsed/platform-params": "6.
|
|
41
|
-
"@tsed/schema": "6.
|
|
36
|
+
"@tsed/core": "6.112.0",
|
|
37
|
+
"@tsed/di": "6.112.0",
|
|
38
|
+
"@tsed/exceptions": "6.112.0",
|
|
39
|
+
"@tsed/platform-middlewares": "6.112.0",
|
|
40
|
+
"@tsed/platform-params": "6.112.0",
|
|
41
|
+
"@tsed/schema": "6.112.0",
|
|
42
42
|
"stripe": "^8.129.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@tsed/exceptions": "^6.
|
|
46
|
-
"@tsed/platform-middlewares": "^6.
|
|
47
|
-
"@tsed/platform-params": "^6.
|
|
48
|
-
"@tsed/schema": "^6.
|
|
45
|
+
"@tsed/exceptions": "^6.112.0",
|
|
46
|
+
"@tsed/platform-middlewares": "^6.112.0",
|
|
47
|
+
"@tsed/platform-params": "^6.112.0",
|
|
48
|
+
"@tsed/schema": "^6.112.0",
|
|
49
49
|
"@types/body-parser": "^1.19.0",
|
|
50
50
|
"body-parser": "^1.19.0",
|
|
51
51
|
"stripe": "^8.129.0"
|
package/readme.md
CHANGED
|
@@ -77,6 +77,31 @@ export class Server {
|
|
|
77
77
|
|
|
78
78
|
> See Stripe options for more details: https://www.npmjs.com/package/stripe
|
|
79
79
|
|
|
80
|
+
::: warning
|
|
81
|
+
Stripe needs to validate signature transaction when you received a webhook notification.
|
|
82
|
+
To work properly, you have to remove bodyParser add on `$beforeRoutesInit`.
|
|
83
|
+
|
|
84
|
+
```diff
|
|
85
|
+
@Configuration({
|
|
86
|
+
+ middlewares: [
|
|
87
|
+
+ bodyParser.json(),
|
|
88
|
+
+ bodyParser.urlencoded({extended: true})
|
|
89
|
+
+ ]
|
|
90
|
+
})
|
|
91
|
+
export class Server {
|
|
92
|
+
@Inject()
|
|
93
|
+
protected app: PlatformApplication;
|
|
94
|
+
|
|
95
|
+
$beforeRoutesInit() {
|
|
96
|
+
- this.app
|
|
97
|
+
- .use(bodyParser.json())
|
|
98
|
+
- .use(bodyParser.urlencoded({extended: true}));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
::
|
|
104
|
+
|
|
80
105
|
## Inject Stripe
|
|
81
106
|
|
|
82
107
|
```typescript
|