@0to1pay/server-sdk 3.1.4 → 3.1.5

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # 0to1pay Server SDK
2
2
 
3
- Accept USDC or USDT directly in a merchant wallet and verify onchain payment before granting access. The hosted beta serves **Base Sepolia USDC, Ethereum Sepolia USDC and TRON Nile USDT**. Install on your Node.js server (22.20.0+).
3
+ Use this server SDK to sell digital goods or one-time paid access in a Next.js or Node.js app. Create a checkout that sends USDC or USDT directly to your merchant wallet. The hosted beta uses test USDC on Base Sepolia and Ethereum Sepolia and test USDT on TRON Nile. Requires Node.js 22.20.0+.
4
+
5
+ Choosing how to accept payment for an access pass? [Compare payment options for a Next.js app](https://0to1pay.com/guides/nextjs-access-pass-payments).
4
6
 
5
7
  ## Next.js quickstart
6
8
 
7
9
  The Next.js example takes a 0.01 test USDC payment on Base Sepolia and grants the buyer one access pass from a signed webhook. Follow the [Next.js quickstart](https://0to1pay.com/docs#nextjs-quickstart) or [한국어 빠른 시작](https://0to1pay.com/docs?lang=ko#nextjs-quickstart). To make a [test purchase](https://0to1pay.com/demo/base-usdc), use a Base Sepolia wallet with test USDC and test ETH for gas. If you have already sent the payment, reopen your original order.
8
10
 
9
- To run the example on your server, prepare Node.js 22.20+, writable PostgreSQL, a public HTTPS webhook and a separate continuously running worker. Create a test project and issue a scoped server key. [Merchant dashboard](https://pay.0to1pay.com/merchant)
11
+ To run the [Next.js checkout and webhook example from source](https://github.com/0to1pay/nextjs-usdc-access-pass), prepare Node.js 22.20+, writable PostgreSQL, a public HTTPS webhook and a separate continuously running worker. Create a test project and issue a scoped server key. [Merchant dashboard](https://pay.0to1pay.com/merchant)
10
12
 
11
13
  ```sh
12
14
  curl -fsSLO https://0to1pay.com/examples/nextjs-base-usdc.zip
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@0to1pay/server-sdk",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "description": "Server-only 0to1Pay client for direct on-chain stablecoin checkout and fulfillment",
6
+ "description": "Stablecoin checkout for Next.js and Node.js apps selling digital goods. Accept USDC or USDT in a merchant wallet for paid access.",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/0to1pay/sdk.git",
@@ -41,6 +41,8 @@
41
41
  "tron",
42
42
  "nextjs",
43
43
  "webhooks",
44
- "checkout"
44
+ "checkout",
45
+ "digital-goods",
46
+ "paid-access"
45
47
  ]
46
48
  }