recur-skills 0.0.9 → 0.0.10
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/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/skills/recur-checkout/SKILL.md +8 -4
- package/skills/recur-entitlements/SKILL.md +2 -2
- package/skills/recur-help/SKILL.md +1 -1
- package/skills/recur-portal/SKILL.md +1 -1
- package/skills/recur-quickstart/SKILL.md +5 -4
- package/skills/recur-webhooks/SKILL.md +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
|
|
3
3
|
"name": "recur-skills",
|
|
4
4
|
"description": "Claude Code skills for integrating Recur — Taiwan's subscription payment platform",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.10",
|
|
6
6
|
"owner": {
|
|
7
7
|
"name": "Recur",
|
|
8
8
|
"email": "hi@recur.tw",
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
},
|
|
11
11
|
"metadata": {
|
|
12
12
|
"description": "Claude Code skills for integrating Recur - Taiwan's subscription payment platform",
|
|
13
|
-
"version": "0.0.
|
|
13
|
+
"version": "0.0.10"
|
|
14
14
|
},
|
|
15
15
|
"plugins": [
|
|
16
16
|
{
|
|
17
17
|
"name": "recur-skills",
|
|
18
18
|
"displayName": "Recur Skills",
|
|
19
19
|
"description": "Skills for Recur SDK integration (quickstart, checkout, webhooks, entitlements, portal) and the Recur MCP server for signup, API keys, and products",
|
|
20
|
-
"version": "0.0.
|
|
20
|
+
"version": "0.0.10",
|
|
21
21
|
"source": "./",
|
|
22
22
|
"category": "development",
|
|
23
23
|
"homepage": "https://docs.recur.tw/guides/skills",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"name": "recur-skills",
|
|
4
4
|
"displayName": "Recur Skills",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.10",
|
|
6
6
|
"description": "Skills for Recur SDK integration (quickstart, checkout, webhooks, entitlements, customer portal) plus the Recur MCP server (https://mcp.recur.tw/) for account signup, API keys, and products.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Recur",
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "recur-skills",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"description": "Skills for Recur SDK integration: quickstart, checkout, webhooks, entitlements, and customer portal. Taiwan subscription billing via PAYUNi.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Recur",
|
|
@@ -4,7 +4,7 @@ description: Implement Recur checkout flows including embedded, modal, and redir
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: recur
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.10"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Recur Checkout Integration
|
|
@@ -203,9 +203,11 @@ onPaymentFailed: (error) => {
|
|
|
203
203
|
|
|
204
204
|
For server-rendered apps or custom flows:
|
|
205
205
|
|
|
206
|
+
Product IDs are CUIDs from `list_products` / the dashboard (e.g. `cmfxq8n2a0001l8yz3k5p9t7d`); `prod_xxx` is a placeholder.
|
|
207
|
+
|
|
206
208
|
```typescript
|
|
207
209
|
// Create checkout session
|
|
208
|
-
const response = await fetch('https://api.recur.tw/v1/
|
|
210
|
+
const response = await fetch('https://api.recur.tw/v1/checkout/sessions', {
|
|
209
211
|
method: 'POST',
|
|
210
212
|
headers: {
|
|
211
213
|
'X-Recur-Secret-Key': process.env.RECUR_SECRET_KEY,
|
|
@@ -219,8 +221,10 @@ const response = await fetch('https://api.recur.tw/v1/checkouts', {
|
|
|
219
221
|
}),
|
|
220
222
|
})
|
|
221
223
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
+
// The session object is the response body itself (no outer `data` wrapper, snake_case keys)
|
|
225
|
+
const { url } = await response.json()
|
|
226
|
+
// Redirect the customer to `url` — the hosted checkout page.
|
|
227
|
+
// (/v1/checkouts is the embedded-form endpoint and returns a different shape.)
|
|
224
228
|
```
|
|
225
229
|
|
|
226
230
|
## Checkout Result Structure
|
|
@@ -4,7 +4,7 @@ description: Implement access control and permission checking with Recur entitle
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: recur
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.10"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Recur Entitlements & Access Control
|
|
@@ -71,7 +71,7 @@ const { check } = useCustomer()
|
|
|
71
71
|
// Check by product slug
|
|
72
72
|
const { allowed, entitlement } = check('pro-plan')
|
|
73
73
|
|
|
74
|
-
// Check by product ID
|
|
74
|
+
// Check by product ID (a CUID from list_products, e.g. 'cmfxq8n2a0001l8yz3k5p9t7d'; 'prod_xxx' is a placeholder)
|
|
75
75
|
const { allowed } = check('prod_xxx')
|
|
76
76
|
|
|
77
77
|
if (allowed) {
|
|
@@ -4,7 +4,7 @@ description: Quick setup guide for Recur payment integration, from account signu
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: recur
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.10"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Recur Quickstart
|
|
@@ -34,9 +34,10 @@ OAuth flow**, so make sure the `recur` MCP server is connected. Pick ONE:
|
|
|
34
34
|
|
|
35
35
|
Before the first tool call, tell the user what will happen:
|
|
36
36
|
|
|
37
|
-
> A browser window will open. Log in, or click
|
|
38
|
-
> page to create a Recur account, then approve the connection.
|
|
39
|
-
>
|
|
37
|
+
> A browser window will open. Log in, or click **建立新帳號** (Create account) on
|
|
38
|
+
> the login page to create a Recur account, then approve the connection. Keep
|
|
39
|
+
> the default scopes — Step 0 needs `api-keys:write` and `products:write`.
|
|
40
|
+
> New accounts start in sandbox mode.
|
|
40
41
|
|
|
41
42
|
Then, through MCP:
|
|
42
43
|
|