Skip to main content

Payment Method Authentication Service

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

OperationDescriptionUse When
preAuthenticateInitiate 3DS flow before payment. Collects device data for authentication.Starting 3D Secure flow
authenticateExecute 3DS challenge or frictionless verification. Performs bank authentication.After preAuthenticate, complete the 3DS flow
postAuthenticateValidate authentication results with issuer. Confirms authentication decision.After customer completes 3DS challenge

SDK Setup

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

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

3DS Flow

FlowUser ExperienceWhen It Happens
FrictionlessNo interruptionLow risk, returning customer, device recognized
ChallengeCustomer enters codeHigh risk, new device, large amount

Next Steps