Skip to main content

3D Secure Integration Example

This example demonstrates how to implement 3D Secure (3DS) authentication with the Paysight Widget, including handling the complete 3DS flow and providing appropriate user feedback.

Live demo

Open the interactive 3DS demo in the sandbox playground.

Complete Implementation

Key Components

1. Enable 3DS

2. Handle 3DS Events

3. Progress Tracking

Implementation Steps

  1. Enable 3DS
    • Set threeDSRequired: true in configuration
    • Set failOnThreeDSChallenge: false in configuration
    • Set cancelOnThreeDSFailure: false in configuration
    • Ensure proper environment setup
  2. Handle 3DS Flow
    • Implement all 3DS event handlers
    • Show appropriate loading states
    • Handle success and error cases
  3. Add Progress Tracking
    • Create progress indicator UI
    • Update progress based on events
    • Show current step to user
  4. Implement Error Handling
    • Handle 3DS-specific errors
    • Show user-friendly error messages
    • Provide recovery options
  5. Add User Feedback
    • Show loading indicators
    • Display progress messages
    • Confirm successful completion

Best Practices

  1. Clear User Communication
  1. Handle Timeouts
  1. Implement Recovery

Next Steps