Server-side JavaScript client for the PayCow non-custodial USDT payment API.
- Node.js 18 or newer
- PayCow merchant API key and secret
Download and extract the SDK archive, then install it from the local directory.
npm install ./paycow-javascript-sdkconst { PayCowClient } = require('@paycow/sdk');
const paycow = new PayCowClient({
apiKey: process.env.PAYCOW_API_KEY,
apiSecret: process.env.PAYCOW_API_SECRET
});
const payment = await paycow.createPayment({
userId: 'customer-2048',
amount: '50.00',
network: 'TRC20',
idempotencyKey: 'order-2048-001'
});See https://paycow.net/docs/sdk/javascript for the complete reference.