@0to1pay/fulfillment-sdk 3.1.3 → 3.1.4

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 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,12 +4,9 @@ Verify signed payment webhooks, commit them to a PostgreSQL inbox, and grant a d
4
4
 
5
5
  ## Next.js quickstart
6
6
 
7
- Start with the [integration quickstart](https://0to1pay.com/docs#nextjs-quickstart) or [빠른 시작](https://0to1pay.com/docs?lang=ko#nextjs-quickstart).
7
+ 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
8
 
9
- - **See the result first.** Inspect the chain transaction, signed webhook and grant for a completed test payment. No wallet is required. [Completed order](https://0to1pay.com/guides/nextjs-base-usdc#completed-order)
10
- - **Make a test purchase.** Connect a Base Sepolia wallet with 0.01 test USDC and test ETH for gas. If you already sent the payment, recover that order and sign its proof. [Live checkout](https://0to1pay.com/demo/base-usdc)
11
-
12
- To run the same merchant 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)
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)
13
10
 
14
11
  ```sh
15
12
  curl -fsSLO https://0to1pay.com/examples/nextjs-base-usdc.zip
@@ -30,7 +27,7 @@ npm run dev
30
27
  npm run worker
31
28
  ```
32
29
 
33
- Preserve the merchant database and private `.merchant/` directory. The example associates one entitlement with its original order and guest. A signed recovery challenge lets the original paying wallet regain access after cookie loss. [Guide, setup measurements and recovery](https://0to1pay.com/guides/nextjs-base-usdc) · [Machine-readable guide](https://0to1pay.com/guides/nextjs-base-usdc.md)
30
+ Preserve the merchant database and private `.merchant/` directory. The example associates one entitlement with its original order and guest. A signed recovery challenge lets the original paying wallet regain access after cookie loss. [Setup and purchase recovery](https://0to1pay.com/guides/nextjs-base-usdc) · [Machine-readable guide](https://0to1pay.com/guides/nextjs-base-usdc.md)
34
31
 
35
32
  ## Add signed fulfillment to an existing app
36
33
 
@@ -46,12 +43,10 @@ Apply each command at most once and keep entitlements for distinct orders indepe
46
43
 
47
44
  For direct USDC and USDT orders, the platform emits fulfillment commands after it verifies the buyer-approved transfer or records an authorized review. Integrate the [buyer approval steps in the public server SDK guide](https://www.npmjs.com/package/@0to1pay/server-sdk#buyer-approval-for-on-chain-checkout) before offering checkout.
48
45
 
49
- ## Beta pricing and verification
46
+ ## Plans and usage
50
47
 
51
48
  The project can use Sandbox for free with 1,000 metered requests per UTC calendar month. Prepay for 30 days with Starter (9 test tokens / 1,000 requests), Growth (29 / 5,000), or Scale (99 / 25,000). The beta accepts test USDC or USDT at zero real cost. All paid plans include Ethereum Sepolia, Base Sepolia, TRON Nile, the core APIs, webhooks and recovery. Pricing is independent of settled volume and successful payment count.
52
49
 
53
50
  One order creation plus one quote creation uses two requests. With no other metered calls, 500 fresh checkouts consume Starter’s 1,000 requests. Include metered list/configuration reads in your estimate. Same-project, same-key, same-content creation retries count once. At 80% and 95% the API flags usage. At 100%, new starts stop and existing verification, fulfillment and redelivery continue. A manual upgrade charges the difference and retains usage and expiry. Renewals require a manual payment. The service does not bill overages. [Estimate your 30-day cost](https://0to1pay.com/pricing)
54
51
 
55
- A single controlled run on Node 22.23.5/PostgreSQL 17 measured 6.534 s for cold-cache package installation and 10.810 s from setup to ready HTTP with database, HTTPS and credentials prepared. Three public Base Sepolia purchases granted three original-buyer passes with zero duplicate grants. First-merchant self-install time remains unmeasured. [Completed-order evidence](https://0to1pay.com/guides/nextjs-base-usdc#completed-order)
56
-
57
52
  The SDK is available under the MIT license. See the `LICENSE` file included in the package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0to1pay/fulfillment-sdk",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "0to1Pay signed webhook receiver and PostgreSQL fulfillment worker",