File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## Unreleased
9
9
10
10
## 1.0.0 - 2023-05-12
11
+
11
12
### Added
13
+
12
14
- Added ` isTest ` mode parameter.
13
15
- Added ` receipt ` parameter to conform the fiscal policy.
14
16
- Added unit tests.
15
17
16
18
### Changed
19
+
17
20
- Rewrote the forked code to use TypeScript.
18
21
19
22
### Fixed
23
+
20
24
- Semantic Version calculation errors in the old forked repositories.
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ $ npm install @dev-aces/robokassa
17
17
Generate a payment URL and redirect a user to it.
18
18
19
19
TypeScript:
20
+
20
21
``` typescript
21
22
import { Robokassa } = from ' @dev-aces/robokassa' ;
22
23
@@ -52,6 +53,7 @@ const url = robokassa.generatePaymentUrl({
52
53
```
53
54
54
55
JavaScript:
56
+
55
57
``` javascript
56
58
const { Robokassa } = require (' @dev-aces/robokassa' );
57
59
@@ -63,6 +65,7 @@ const { Robokassa } = require('@dev-aces/robokassa');
63
65
If the ` POST ` method is selected for the result response in the Robokassa settings (recommended), then the results can be processed with the next Express code.
64
66
65
67
TypeScript:
68
+
66
69
``` typescript
67
70
import { Robokassa , IRobokassaResponse } = from ' @dev-aces/robokassa' ;
68
71
import express , { Request , Response } from ' express' ;
@@ -112,6 +115,7 @@ $ npm run build && npm run test
112
115
## History
113
116
114
117
Ideas are taken from the old projects:
118
+
115
119
- [ betsol/node-robokassa] ( https://github.com/betsol/node-robokassa )
116
120
- [ SeNaP/-node-robokassa] ( https://github.com/SeNaP/node-robokassa )
117
121
Original file line number Diff line number Diff line change 26
26
},
27
27
"husky" : {
28
28
"hooks" : {
29
- "pre-push" : " npm run build"
29
+ "pre-push" : " npm run format && npm run build && npm test "
30
30
}
31
31
},
32
32
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments