0.2.1 • Published 1 year ago

react-native-cybersource-fingerprint v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-cybersource-fingerprint

Plugin to use with the cybersource fingerprint

Installation

npm install react-native-cybersource-fingerprint

Usage

You will need to get from your vendor an orgId and the serverUrl. And create a unique sessionId on each app startup:

import { config, startProfiling } from 'react-native-cybersource-fingerprint';

// ...

const orgId = 'as9da77';
const serverUrl = 'h.online-metrix.net';
const sessionId = '0436aa32-ee74-11ed-a05b-0242ac120003';

// ...

const configResponse = await config(orgId, serverUrl);
const profilingResponse = await startProfiling(`MERCHANT_ID${sessionId}`);

The profiling response type is:

{
  success: boolean;
  statusCode: number;
  sessionId: string;
  statusDescription: string;
}

Based on the success property you can take actions about the profiling process.

License

MIT


Made with create-react-native-library

0.2.1

1 year ago

0.2.0

1 year ago