Skip to content

Commit 22319b9

Browse files
authored
Bump version v2.9.6 (#432)
1 parent 622aed6 commit 22319b9

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 2.9.6 - 2025-02-24
4+
feat: Added support for access token based authentication mechanism
5+
- Added oauth APIs (getAuthURL, getAccessToken, refreshToken, revokeToken)
6+
- Added support for onboarding signature generation
7+
- Doc updated
38

49
## 2.9.5 - 2024-10-23
510
fix: Cancel subscription `cancelAtCycleEnd` now supports both `boolean` and `0/1` values as expected.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ var instance = new Razorpay({
2929
});
3030
```
3131

32+
### Using Access Token
33+
Instantiate the razorpay instance with `access_token`. The `access_token` can be obtained only in case if you are a platform partner. For more information, refer page - https://razorpay.com/docs/partners/platform/.
34+
35+
```js
36+
const Razorpay = require('razorpay');
37+
38+
var instance = new Razorpay({
39+
"oauthToken": "ACCESS_TOKEN"
40+
})
41+
```
42+
x
3243
The resources can be accessed via the instance. All the methods invocations follows the namespaced signature
3344

3445
```js
@@ -130,6 +141,8 @@ instance.payments.all(
130141

131142
- [Document](documents/documents.md)
132143

144+
- [oAuthTokenClient](documents/oAuthTokenClient.md)
145+
133146
---
134147

135148
## Development

documents/oAuthTokenClient.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
### Generate Authorize Url
44
```js
55

6-
const OAuthTokenClient = require("./dist/oAuthTokenClient");
7-
const { generateOnboardingSignature } = require("./dist/utils/razorpay-utils")
6+
const OAuthTokenClient = require("razorpay/dist/oAuthTokenClient")
7+
const { generateOnboardingSignature } = require("razorpay/dist/utils/razorpay-utils")
88

99
// Initialize client
1010
let oAuth = new OAuthTokenClient();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "razorpay",
3-
"version": "2.9.5",
3+
"version": "2.9.6",
44
"description": "Official Node SDK for Razorpay API",
55
"main": "dist/razorpay",
66
"typings": "dist/razorpay",

0 commit comments

Comments
 (0)