@cashfreepayments/agent-skills 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -5,7 +5,7 @@ Add Cashfree Payments skills to your AI coding assistant projects — everything
5
5
  ## Quick Start
6
6
 
7
7
  ```bash
8
- npx @cashfreepayments/agent-skills add skills
8
+ npx @cashfreepayments/agent-skills@latest add skills
9
9
  ```
10
10
 
11
11
  ![Cashfree Payments](https://github.com/user-attachments/assets/a0a36020-7eee-4fda-9d6b-4002ea4991c6)
@@ -16,18 +16,18 @@ This will prompt you to select which AI coding assistants to configure.
16
16
 
17
17
  ### Interactive Mode
18
18
  ```bash
19
- npx @cashfreepayments/agent-skills add skills
19
+ npx @cashfreepayments/agent-skills@latest add skills
20
20
  ```
21
21
  You'll be prompted to select which AI assistants to configure.
22
22
 
23
23
  ### Specify Frameworks
24
24
  ```bash
25
- npx @cashfreepayments/agent-skills add skills --frameworks cursor,claude-code,gemini-cli
25
+ npx @cashfreepayments/agent-skills@latest add skills --frameworks cursor,claude-code,gemini-cli
26
26
  ```
27
27
 
28
28
  ### Custom Project Path
29
29
  ```bash
30
- npx @cashfreepayments/agent-skills add skills --path /path/to/project
30
+ npx @cashfreepayments/agent-skills@latest add skills --path /path/to/project
31
31
  ```
32
32
 
33
33
  ## What Gets Created
@@ -131,7 +131,7 @@ Keep this list — it's your migration checklist.
131
131
  | `com.razorpay:razorpay-java` | → | `com.cashfree.pg:cashfree-pg` |
132
132
  | `razorpay/razorpay` (Composer) | → | `cashfree/cashfree-pg` |
133
133
  | `Razorpay` (NuGet) | → | `cashfree_pg` (NuGet) |
134
- | `github.com/razorpay/razorpay-go` | → | `github.com/cashfree/cashfree-pg/v4` |
134
+ | `github.com/razorpay/razorpay-go` | → | `github.com/cashfree/cashfree-pg/v6` |
135
135
  | `razorpay` (Ruby gem) | → | *(no official SDK — use the S2S REST API, see `pg/apis/SKILL.md`)* |
136
136
 
137
137
  ### Step 4 — Rewrite backend: create order, verify payment, refund
@@ -41,7 +41,7 @@ description: >
41
41
  | **Node.js** | `cashfree-pg` (npm) | `npm install cashfree-pg` |
42
42
  | **Python** | `cashfree-pg` (PyPI) | `pip install cashfree-pg` |
43
43
  | **Java** | `com.cashfree.pg:cashfree-pg` (Maven Central) | Maven/Gradle (see Section 4) |
44
- | **Go** | `github.com/cashfree/cashfree-pg/v4` | `go get github.com/cashfree/cashfree-pg/v4` |
44
+ | **Go** | `github.com/cashfree/cashfree-pg/v6` | `go get github.com/cashfree/cashfree-pg/v6` |
45
45
  | **PHP** | `cashfree/cashfree-pg` (Packagist) | `composer require cashfree/cashfree-pg` |
46
46
  | **.NET** | `cashfree_pg` (NuGet) | `dotnet add package cashfree_pg` |
47
47
 
@@ -54,7 +54,7 @@ description: >
54
54
 
55
55
  ### API Version
56
56
 
57
- Set `cashfree.XApiVersion = "2025-01-01"` once after initialization (Node.js v5). Other language SDKs pass version as the first parameter.
57
+ Set `cashfree.XApiVersion = "2025-01-01"` once after initialization (Node.js v5). Python, Java, PHP, and .NET SDKs pass the version as the first parameter to each call. The Go SDK v6 bundles the API version internally — no explicit version parameter is required.
58
58
 
59
59
  ---
60
60
 
@@ -99,15 +99,18 @@ Cashfree.XClientSecret = "<secret_key>";
99
99
  Cashfree.XEnvironment = Cashfree.SANDBOX; // or Cashfree.PRODUCTION
100
100
  ```
101
101
 
102
- **Go:**
102
+ **Go (v6+):**
103
103
  ```go
104
- import cashfree "github.com/cashfree/cashfree-pg/v4"
104
+ import cashfreepg "github.com/cashfree/cashfree-pg/v6"
105
105
 
106
- clientId := "<app_id>"
107
- clientSecret := "<secret_key>"
108
- cashfree.XClientId = &clientId
109
- cashfree.XClientSecret = &clientSecret
110
- cashfree.XEnvironment = cashfree.SANDBOX // or cashfree.PRODUCTION
106
+ xClientId := "<app_id>"
107
+ xClientSecret := "<secret_key>"
108
+
109
+ cashfree := cashfreepg.Cashfree{
110
+ XEnvironment: cashfreepg.SANDBOX, // or cashfreepg.PRODUCTION
111
+ XClientID: &xClientId,
112
+ XClientSecret: &xClientSecret,
113
+ }
111
114
  ```
112
115
 
113
116
  **PHP:**
@@ -225,27 +228,26 @@ public OrderEntity createOrder() throws Exception {
225
228
  </details>
226
229
 
227
230
  <details>
228
- <summary>Go</summary>
231
+ <summary>Go (v6+)</summary>
229
232
 
230
233
  ```go
231
- func createOrder() (*cashfree.OrderEntity, error) {
232
- xApiVersion := "2025-01-01"
234
+ func createOrder() (*cashfreepg.OrderEntity, error) {
233
235
  returnUrl := "https://yoursite.com/return/{order_id}"
234
236
  notifyUrl := "https://yoursite.com/webhook"
235
237
 
236
- request := cashfree.CreateOrderRequest{
238
+ request := cashfreepg.CreateOrderRequest{
237
239
  OrderAmount: 100.00,
238
240
  OrderCurrency: "INR",
239
- CustomerDetails: cashfree.CustomerDetails{
241
+ CustomerDetails: cashfreepg.CustomerDetails{
240
242
  CustomerId: "customer_123",
241
243
  CustomerPhone: "9999999999",
242
244
  },
243
- OrderMeta: &cashfree.OrderMeta{
245
+ OrderMeta: &cashfreepg.OrderMeta{
244
246
  ReturnUrl: &returnUrl,
245
247
  NotifyUrl: &notifyUrl,
246
248
  },
247
249
  }
248
- response, _, err := cashfree.PGCreateOrder(&xApiVersion, &request, nil, nil, nil)
250
+ response, _, err := cashfree.PGCreateOrder(&request, nil, nil, nil)
249
251
  return response, err
250
252
  }
251
253
  ```
@@ -327,9 +329,9 @@ System.out.println(response.getData().getOrderStatus());
327
329
  ```
328
330
 
329
331
  ```go
330
- // Go
331
- xApiVersion := "2025-01-01"
332
- response, _, err := cashfree.PGFetchOrder(&xApiVersion, &orderId, nil, nil, nil)
332
+ // Go (v6+)
333
+ response, _, err := cashfree.PGFetchOrder(orderId, nil, nil, nil)
334
+ fmt.Println(response.OrderStatus)
333
335
  ```
334
336
 
335
337
  ### Step 4: Process Webhooks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashfreepayments/agent-skills",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI tool to add Cashfree MCP configurations to AI coding assistants",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",