> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fraud Checks: Overview

export const TxnTag = ({status}) => {
  const getStyles = status => {
    const baseStyle = {
      display: 'inline-block',
      padding: '4px 8px',
      borderRadius: '4px',
      fontSize: '13px',
      fontWeight: '400'
    };
    switch (status) {
      case "PENDING":
        return {
          ...baseStyle,
          backgroundColor: '#ececec',
          color: '#9f9f9f'
        };
      case "AUTHORIZED":
        return {
          ...baseStyle,
          backgroundColor: '#ecfdf5',
          color: '#047857'
        };
      case "SETTLED":
      case "PARTIALLY_SETTLED":
        return {
          ...baseStyle,
          backgroundColor: '#ecfdf5',
          color: '#047857'
        };
      case "DECLINED":
      case "FAILED":
        return {
          ...baseStyle,
          backgroundColor: '#fef2f2',
          color: '#dc2626'
        };
      case "CANCELLED":
        return {
          ...baseStyle,
          backgroundColor: '#fefce8',
          color: '#d78203'
        };
      case "SETTLING":
        return {
          ...baseStyle,
          backgroundColor: '#e0f2fe',
          color: '#0c4a6e'
        };
      default:
        return {
          ...baseStyle,
          backgroundColor: '#f3f4f6',
          color: '#374151'
        };
    }
  };
  return <span style={getStyles(status)}>{status}</span>;
};

Fraud checks are crucial in preventing fraudulent transactions and reducing financial losses for merchants when accepting payments online. According to [Statista](https://www.statista.com/statistics/1273177/ecommerce-payment-fraud-losses-globally/#:~:text=According%20to%20estimates%2C%20e%2Dcommerce,billion%20U.S.%20dollars%20by%202023.), fraud losses for online merchants globally is expected to grow to \$48 billion by 2023.

Visa and Mastercard both recommend a layered approach to fraud prevention, including pre-authorization and post-authorization fraud checks, to help protect against fraud.

### Pre-authorization

Pre-authorization fraud checks involve verifying the validity of the payment method, checking the customer's identity, and assessing the risk associated with the transaction before it is authorized.

This helps prevent fraudulent transactions from being approved in the first place and, in cases where 3DS is mandatory or recommended, this creates a flow without 3DS for low-risk customers, ensuring they can complete their order with minimal friction.

### Post-authorization

Post-authorization fraud checks involve monitoring transactions after they have been authorized to identify any suspicious activity. This can include analyzing transaction data for patterns indicating fraud or conducting manual reviews of transactions flagged as potentially fraudulent.

## Fraud checks within Primer

Primer has integrations with 3rd party fraud detection providers, enabling you to easily configure pre-authorization and/or post-authorization fraud checks as part of your payment flow with your preferred fraud detection provider.

Fraud checks are embedded into the authorization flow and you have flexibility over the business logic. Similarly to processing payments, Primer has simplified the setup of fraud checks through its unified framework.

<Note>
  Not all fraud detection providers support all payment methods. You can check payment method compatibility with your chosen fraud detection provider in the [Fraud Detection Providers](/connections/fraud-providers/overview/) section of the docs.
</Note>

### Pre-authorization fraud checks

Pre-authorization fraud checks can have the following outcomes:

| **Status**      | **Description**                                                                                                                             |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `Pass`          | provider recommends you continue to authorization                                                                                           |
| `3DS`           | provider recommends [running a 3DS authentication](/payment-services/3d-secure/overview) to comply with local regulations or reduce fraud   |
| `3DS Exemption` | provider recommends [requesting a 3DS exemption](/payment-services/3d-secure/exemptions) to reduce friction in the regions that enforce SCA |
| `Reject`        | suspected fraud detected and the provider recommends declining the payment                                                                  |
| `Fail`          | technical issue preventing the pre-authorization fraud check from being processed correctly                                                 |

You can determine how to handle all outcomes within the "Authorize Payment" action in Workflows.

### Post-authorization fraud checks

Post-authorization fraud checks have the following outcomes:

| **Status** | **Description**                                                                              |
| ---------- | -------------------------------------------------------------------------------------------- |
| `Pass`     | provider recommends the authorization is legitimate                                          |
| `Reject`   | fraud risk detected and provider recommends canceling the payment                            |
| `Fail`     | technical issue preventing the post-authorization fraud check from being processed correctly |

Primer simplifies the configuration for post-authorization fraud checks by always canceling the payment for the `Reject` outcome.

<Note>
  See our [Get Started guide](/connections/fraud-providers/overview) for how to configure your pre-authorization and/or post-authorization fraud checks on Primer.
</Note>
