@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.
- package/README.md +5 -5
- 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
|
|
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.
|
|
6
|
+
npm install @0to1pay/server-sdk@2.3.1
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm install ./0to1pay-server-sdk-2.3.
|
|
10
|
+
npm install ./0to1pay-server-sdk-2.3.1.tgz
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
On a deployment with public signup enabled,
|
|
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.
|
|
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
|
|