@0to1pay/server-sdk 2.3.0 → 2.3.1

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 +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # 0to1Pay Server SDK
2
2
 
3
- Node.js 22.20.0 or newer. Install the SDK from npm after publication or use the verified tarball in your merchant backend.
3
+ Node.js 22.20.0 or newer. Install the SDK from npm or use the verified tarball in your merchant backend.
4
4
 
5
5
  ```sh
6
- npm install @0to1pay/server-sdk@2.3.0
6
+ npm install @0to1pay/server-sdk@2.3.1
7
7
  ```
8
8
 
9
9
  ```sh
10
- npm install ./0to1pay-server-sdk-2.3.0.tgz
10
+ npm install ./0to1pay-server-sdk-2.3.1.tgz
11
11
  ```
12
12
 
13
- On a deployment with public signup enabled, sign in to **My workspace** and issue a scoped Sandbox key from **API keys**. On a restricted deployment, get a test project and server key from the platform operator. Set the HTTPS API origin and scoped key in your app's backend environment.
13
+ On a deployment with public signup enabled, open `/merchant` on the Web origin provided by your platform operator. Sign in to **My workspace**, select a project and issue a scoped Sandbox key from **API keys**. On a restricted deployment, get a test project and server key from the platform operator. Set the HTTPS API origin and scoped key in your app's backend environment.
14
14
 
15
15
  ```ts
16
16
  import { ZeroToOnePayClient } from '@0to1pay/server-sdk';
@@ -57,7 +57,7 @@ Use the wallet's UTF-8 message signing for the chain. Ethereum and Base use the
57
57
 
58
58
  For test and existing Solana integrations, encode the owner's Ed25519 signature as `0x` followed by 128 hexadecimal characters. The claim helper preserves the case of canonical Base58 Solana transaction signatures that decode to exactly 64 bytes and contain at least one nonzero byte.
59
59
 
60
- The platform compares the finalized transaction's actual token source with the approved wallet and checks the exact token, destination, amount, and timing. An observed transfer without a matching signed claim is held for operator review. In the [0to1Pay Console](https://github.com/0to1pay/console), open the order and select **Review transfer** on the exact confirmed receipt in **Money movements**. A service with `payments:review` can also call `reviewPayment` with `action: 'accept_unattributed_chain_payment'`, that receipt's `movement_id`, the expected payment resource version, and a reason. Set `allow_late_payment: true` only when deliberately approving the specified late transfer. Exchange withdrawals can use this operational review path.
60
+ The platform compares the finalized transaction's actual token source with the approved wallet and checks the exact token, destination, amount, and timing. An observed transfer without a matching signed claim is held for operator review. Sign in with the reviewer role at `/console` on your deployment’s operator Web origin (`CONSOLE_PUBLIC_ORIGIN`). Open the order, find the confirmed receipt in **Money movements**, and select **Review transfer**. A service with `payments:review` can also call `reviewPayment` with `action: 'accept_unattributed_chain_payment'`, that receipt's `movement_id`, the expected payment resource version, and a reason. Set `allow_late_payment: true` only when deliberately approving the specified late transfer. Exchange withdrawals can use this operational review path.
61
61
 
62
62
  ## Subscription and API request allowance
63
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0to1pay/server-sdk",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Server-only 0to1Pay client for direct on-chain stablecoin checkout and fulfillment",