> For the complete documentation index, see [llms.txt](https://docs.hyperswitch.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperswitch.io/integrations/prism/node/payment-method-authentication-service.md).

# Payment Method Authentication Service Overview

## Overview

The Payment Method Authentication Service manages 3D Secure (3DS) authentication flows using the Node.js SDK. 3DS adds an extra layer of security for online card payments by verifying the cardholder's identity with their bank.

**Business Use Cases:**

* **Fraud prevention** - Shift liability to issuers for authenticated transactions
* **Regulatory compliance** - Meet Strong Customer Authentication (SCA) requirements
* **Risk-based** - Request 3DS for high-risk transactions
* **Global payments** - Required for many European and international transactions

## Operations

| Operation                                                                                                 | Description                                                                       | Use When                                     |
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -------------------------------------------- |
| [`preAuthenticate`](/integrations/prism/node/payment-method-authentication-service/pre-authenticate.md)   | Initiate 3DS flow before payment. Collects device data for authentication.        | Starting 3D Secure flow                      |
| [`authenticate`](/integrations/prism/node/payment-method-authentication-service/authenticate.md)          | Execute 3DS challenge or frictionless verification. Performs bank authentication. | After preAuthenticate, complete the 3DS flow |
| [`postAuthenticate`](/integrations/prism/node/payment-method-authentication-service/post-authenticate.md) | Validate authentication results with issuer. Confirms authentication decision.    | After customer completes 3DS challenge       |

## SDK Setup

```javascript
const { PaymentMethodAuthenticationClient } = require('hyperswitch-prism');

const authClient = new PaymentMethodAuthenticationClient({
    connector: 'stripe',
    apiKey: 'YOUR_API_KEY',
    environment: 'SANDBOX'
});
```

## 3DS Flow

| Flow             | User Experience      | When It Happens                                 |
| ---------------- | -------------------- | ----------------------------------------------- |
| **Frictionless** | No interruption      | Low risk, returning customer, device recognized |
| **Challenge**    | Customer enters code | High risk, new device, large amount             |

## Next Steps

* [Payment Service](/integrations/prism/node/payment-service.md) - Complete payment after 3DS
* [authorize](/integrations/prism/node/payment-service/authorize.md) - Use 3DS result for authorization


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hyperswitch.io/integrations/prism/node/payment-method-authentication-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
