@0to1pay/fulfillment-sdk 3.1.4 → 3.1.6

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 Fulfillment SDK
2
2
 
3
- Verify signed payment webhooks, commit them to a PostgreSQL inbox, and grant a digital entitlement with the matching order in a single merchant transaction. Node.js 22.20.0+.
3
+ Use this SDK to grant paid access to digital goods after a stablecoin checkout in a Next.js or Node.js app. Verify the signed payment webhook and save it in a PostgreSQL inbox. In your worker, record the order’s entitlement and its fulfillment result in one transaction so a retry preserves a single grant. 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/fulfillment-sdk",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "description": "0to1Pay signed webhook receiver and PostgreSQL fulfillment worker",
6
+ "description": "Hosted beta uses testnet tokens only (no real funds). Verify signed checkout webhooks for USDC or USDT and grant paid access with a PostgreSQL worker in Next.js or Node.js.",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/0to1pay/sdk.git",
@@ -46,6 +46,8 @@
46
46
  "tron",
47
47
  "nextjs",
48
48
  "webhooks",
49
- "fulfillment"
49
+ "fulfillment",
50
+ "digital-goods",
51
+ "paid-access"
50
52
  ]
51
53
  }