Payrails Web Fraud SDK

Payrails Fraud SDK provides abstraction on different fraud client SDKs.

The SDK should be initialized as soon as possible to enable data collection as soon as possible. The SDK will then pass all the information needed to the Payrails Web SDK without additional work on the merchant client.

Including the SDK

import { FraudSDK } from '@payrails/fraud-sdk';

Loading specific fraud providers

The load function accepts an array of providers with merchant specific configurations.

import { FraudSDK } from '@payrails/fraud-sdk';

// Pass an array of providers
FraudSDK.load([{
	provider: 'provider name',
  // specific provider options
}]);

Supported providers

Cybersource

To initialize the Cybersource provider, merchantId and orgId needs to be passed.

import { FraudSDK } from '@payrails/fraud-sdk';

// Pass an array of providers
FraudSDK.load([{
	provider: 'cybersource',
  merchantId: 'merchantId',
  orgId: 'orgId'
}]);