OpenAPI client for xendit-node
The official Xendit Node SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Node.
* Package version: 7.0.0
Node 18.0 and later.
bash
npm install xendit-node@latest --save
`TypeScript support is included in this package.
Authorization
The SDK needs to be instantiated using your secret API key obtained from the Xendit Dashboard.
You can sign up for a free Dashboard account here.
`typescript
import { Xendit } from 'xendit-node';const xenditClient = new Xendit({
secretKey: SECRET_API_KEY,
})
`$3
By default, the SDK will use the Xendit production URL (https://api.xendit.co) to make API requests.
If you need to override the default Xendit URL, you can pass in a custom URL to the Xendit constructor.`typescript
const xenditClient = new Xendit({
secretKey: SECRET_API_KEY,
xenditURL: 'https://mock-server.localhost:3000',
})
``Find detailed API information and examples for each of our product’s by clicking the links below,
* Invoice
* PaymentRequest
* PaymentMethod
* Refund
* Transaction
* Balance
* Customer
* Payout
Further Reading