SDK guide
ZewstPay has typed clients for Node.js, browsers, and React:
| Package | Use |
|---|---|
@zewst/zpay-sdk-node | Server-side payment API requests |
@zewst/zpay-sdk-js | Browser integration utilities |
@zewst/zpay-sdk-react | React integration hooks |
These are private packages. Ask your ZewstPay representative for registry access and the supported version before installing. Keep registry tokens in your local environment or CI secret store.
Node.js setup
Once registry access is configured:
npm install @zewst/zpay-sdk-node
Initialize the server client with your tenant key:
import { ZewstPay } from "@zewst/zpay-sdk-node";
const payments = new ZewstPay(process.env.ZEWSTPAY_SECRET_KEY!);
Keep this key on the server. Do not embed it in frontend bundles. Obtain the package documentation for resource-specific methods and configuration options.
Before you integrate
Confirm your account's test mode and enabled payment capabilities at GET /v1/account/processing. Use the API overview for authentication and the endpoint guide to understand the available resources.