fraudlabspro-sdk
v1.0.1
Published
fraudlabspro-sdk is a software development kit (SDK) that provides easy integration with the FraudLabs Pro API for fraud detection.
Downloads
5
Readme
fraudlabspro-sdk
fraudlabspro-sdk is a software development kit (SDK) that provides easy integration with the FraudLabs Pro API for fraud detection. It enables developers to perform various fraud checks on online transactions, such as payment fraud, identity verification, and IP geolocation. The SDK simplifies making API requests, handling responses, and managing data validation, allowing developers to quickly implement fraud prevention mechanisms in their applications. Suitable for e-commerce, online services, and any platform requiring robust fraud detection.
https://www.fraudlabspro.com/developer/api/screen-order
Installation
You can install the package using npm, yarn, or pnpm.
pnpm add fraudlabspro-sdk
yarn install fraudlabspro-sdk
npm install fraudlabspro-sdk
Usage
import { Seon, FraudApiRequest, FraudApiResponse } from "fraudlabspro-sdk";
const seon = new Seon(process.env.SEON_KEY, process.env.SEON_URL);
const request: FraudApiRequest = {
/* PARAMETERS */
};
const response: FraudApiResponse = await seon.fraud(request);
console.log(response);
tsup
Bundle your TypeScript library with no config, powered by esbuild.
https://tsup.egoist.dev/
How to use this
- install dependencies
# pnpm
$ pnpm install
# yarn
$ yarn install
# npm
$ npm install
- Add your code to
src
- Add export statement to
src/index.ts
- Test build command to build
src
. Once the command works properly, you will seedist
folder.
# pnpm
$ pnpm run build
# yarn
$ yarn run build
# npm
$ npm run build
- Publish your package
$ npm publish
test package
https://www.npmjs.com/package/fraudlabspro-sdk