Native 3DS authentication in Hyperswitch mobile SDKs

Native 3DS runs the cardholder challenge inside your app rather than a web view. This page explains what the Hyperswitch mobile SDKs need to do that, what to confirm per platform, and how to test both flows.

On this page

When native 3DS authentication matters in a mobile app

If your mobile team sends 3DS challenges through a web view and sees customers abandon at the bank's challenge page, or sees awkward screens that do not match the app, native 3DS moves the challenge into the app's own UI through the SDK. The challenge is then rendered with the app's screens, navigation and branding instead of a browser embedded in the checkout flow. The work matters most for merchants with native Android or iOS apps that take card payments through Hyperswitch, because a web view is the path that most often breaks the flow for a customer who is already holding a phone and an issuer app.

Hyperswitch lists client SDKs for Android, iOS, React Native and Flutter, in its repository and in its documentation. Those listings do not, by themselves, tell you which 3DS flows each SDK version handles natively, how it behaves for frictionless versus challenge outcomes, or which processors and authentication paths it supports. Confirm that capability for the exact SDK version and platform you plan to ship in the current Hyperswitch documentation, and ask Juspay or your implementation partner to show it working with the processors you use. Treat an answer that says the SDK supports 3DS in general as incomplete until you see the challenge flow on a device.

Before you commit to a build, decide which flows the app must handle natively and which can keep a web view as a fallback. Map frictionless and challenge outcomes separately, list the processors that will send challenges for your traffic, and note who owns the screens for the challenge UI, the return handling and the failure states. Then check the current Hyperswitch SDK compatibility notes against the Router version you run, since native 3DS depends on both sides agreeing on the same release.

How a 3DS challenge moves between the app, SDK, Hyperswitch and issuer

The flow starts when the shopper pays in a native app and the client SDK sends card details toward the Hyperswitch router, which hands authentication to the 3DS provider, either the processor or a standalone 3DS server. The provider contacts the issuer's access control server, and if a challenge is required, the cardholder sees a screen rendered either natively in the SDK or in a web view. Check where card data and authentication results pass, and whether your backend ever touches them. This diagram shows the general 3DS pattern only. Exact message names and SDK callbacks must be taken from the Hyperswitch docs for each platform.

General 3DS flow for a card payment in a native app, with the merchant trust boundary marked.

Which challenge route fits your app

This table compares three ways to run a 3DS challenge in a mobile app: a web view, a native challenge rendered by the Hyperswitch SDK, and a native challenge through a standalone 3DS server. Read each row against your processor setup and SDK version, since which routes are actually available depends on what your processor and Hyperswitch release support. The main takeaway is that the native routes shift work from the cardholder's browser into your app, so the app team owns more of the testing.

RouteWhat the cardholder seesWhat the app team buildsWhat depends on the processorWhen the route fits
Web view challengeA bank challenge page loads inside an in-app browser panel, then returns to the checkout screenA web view container, return URL handling, and a fallback if the page fails to load or the user dismisses itProcessor or issuer must return a challenge URL the web view can render; return behavior varies by processorFastest path to live traffic and the least SDK-specific code; fits teams that need a working challenge before native work is scheduled
Native challenge rendered by the Hyperswitch SDKThe challenge appears as native screens styled to match the app, with the bank's content embedded or handed off as the processor allowsSDK integration on Android and iOS, handling of challenge completion callbacks, and UI states for loading, cancel and errorRequires the processor and the SDK version in use to support native 3DS data exchange; confirm which connectors qualifyFits apps where the web view breaks the checkout experience and the team can own mobile test coverage for each SDK release
Native challenge through a standalone 3DS serverDepends on the 3DS server's challenge UI, which may be native or web-basedIntegration with the 3DS server's mobile SDK or protocol messages, plus session and result handling in the app and backendRequires a standalone 3DS server you run or contract for, and Hyperswitch support for passing its authentication resultsFits teams that already run a 3DS server and want one authentication path across channels; adds components to test and operate
Frictionless flow handlingNo challenge appears if the issuer approves risk-based authentication without oneLogic that accepts the authentication result and continues to authorization without showing a screenDepends on the processor returning a frictionless result and on exemption rules configured for the merchantNeeded on every route; test it separately because the cardholder sees no screen to confirm the flow worked
Testing challenge and frictionless pathsTest cards trigger either a challenge or a frictionless result, so the cardholder experience differs by test caseTest matrices per route, device and OS version, plus simulated cancel, timeout and failure statesTest card behavior and sandbox coverage come from the processor and Hyperswitch, so confirm which scenarios are supportedRequired before any route goes live; plan for repeated runs after each SDK or processor change
Confirm before you buildNot visible to the cardholder; this row sets the scope of the other routesRecord the Hyperswitch SDK version, supported connectors and challenge types in the project planAsk Hyperswitch and each processor which native 3DS flows the SDK version in use supports, and whether an imported or external result path is availableSettles which routes are open to you before design work starts

How native challenges change the checkout experience

Native challenges change the checkout most in what the app controls. A web view challenge shows the issuer's page inside a browser frame, so styling, fonts and accessibility behavior belong to that page. A native challenge lets your app frame the step with its own components, but only for the parts the SDK exposes. Fewer context switches help completion, yet many customers still leave the app to approve in a bank app, so the app must handle that departure and return. Decide what back navigation means during a challenge: whether it cancels the authentication or returns the customer to the payment screen. Confirm how the SDK reports that cancellation. When the operating system suspends or closes the app during bank app approval, the app must restore the payment state on return. Also confirm which challenge screen elements your app can label, reorder or scale for screen readers and large text, because the issuer's content may not follow your settings.

The challenge result comes back to the app through the SDK's completion handling, not through a browser redirect, so the app should treat it as an asynchronous event. Do not assume success when the challenge screen closes. Confirm the exact result states the SDK version returns, including cancelled, failed, timed out and unknown, and map each one to the payment status your server reads from Hyperswitch. While the result is pending, show a neutral processing screen that disables resubmission, blocks a second payment attempt and gives the customer a clear next step. If the app is killed mid-challenge, ask how the final state is confirmed: through webhooks to your server, status polling, or both. Your support team needs a way to see the same status the customer sees. Document these states before build, because a customer who sees a blank screen after approval will often retry the payment.

Setup path by SDK platform: Android, iOS, React Native and Flutter

The Android app team adds the Hyperswitch Android client SDK through its Gradle build and gives the native challenge an Activity that can display the issuer's challenge screen. Because the challenge runs inside the app, the team must decide how the SDK returns control to the app after the customer completes or abandons the challenge.

  • Dependency: Declare the SDK in your Gradle build and pin the exact version in your version catalog so every build resolves the same artifact.
  • Permissions and network: Confirm which manifest permissions and network settings the SDK needs for 3DS traffic, including any cleartext or network security configuration your environment requires.
  • Activity and lifecycle: Confirm how the SDK hands the challenge to your Activity and how it behaves on configuration changes and process death during a challenge.
  • Shrinking and obfuscation: Test release builds with R8 enabled, since keep rules that work in debug builds can strip classes the challenge needs.

Check the Android section of the Hyperswitch documentation for the exact artifact coordinates, supported Android versions and any emulator limits before you plan test devices.

How to set up and test native 3DS in order

This sequence takes a team from confirming native challenge support for its target markets to a tested mobile flow that handles both challenge and frictionless outcomes. Each step closes with a check so the team knows when to move on.

  1. Confirm native challenge support by market

    Before any build work, the product owner and payments lead list the markets, card networks and processors the app will use, then ask each processor and any external 3DS provider in writing whether it supports native challenge rendering in iOS and Android SDKs for those markets. Ask for the protocol version they support, which challenge types they render natively, and what they return when a challenge cannot be rendered. Record the answers in a support matrix. Done means every market in scope has a named processor or 3DS provider with a written yes or a documented fallback, and nobody has assumed support from a web view integration.

  2. Decide the 3DS route per market

    Choose whether each market runs authentication through the processor's own 3DS, through a standalone 3DS server, or through an imported result from a 3DS run elsewhere. Hyperswitch documents processor-run 3DS as the simplest setup, and the sibling topics on processor-run 3DS and standalone servers cover the trade-offs in detail. Note which route handles native challenges and which falls back to a web view. Done means a one-page routing table exists that the engineering team and the fraud or risk owner have both signed off, with a named owner for each market.

  3. Integrate the SDK and the payment call

    The mobile engineers add the Hyperswitch client SDK for iOS or Android to the app, and the backend engineers add the server-side payment creation and confirmation calls to the Hyperswitch router. The payment request must carry the authentication fields the chosen route expects, and the return URL and SDK configuration must match the environment being tested. Check the SDK and router versions against the compatibility information in the Hyperswitch releases before pinning them. Done means a test payment can be created from the app and reaches an authorization or authentication status response from the backend, with the request and response logged for both sides.

  4. Configure 3DS decision rules and test credentials

    The fraud or risk owner sets the 3DS decision rules that decide when a payment requests authentication, by amount, country, card type or other parameters. Use the sandbox or a local Docker setup to exercise the rules with the processor's test cards, since no live processor account is needed to see the rule logic run. Confirm which test card numbers the chosen processor or 3DS provider publishes for challenge and frictionless outcomes, and record them in the test plan. Live processor test accounts are required to confirm the native challenge rendering itself, because sandbox behavior may not match production issuer flows. Done means the rules produce the expected outcome for at least one test card in each category, and the team can show which environment each result came from.

  5. Build challenge and result handling in the app

    The mobile team implements the native challenge screen through the SDK and handles every outcome the route can return: frictionless success, challenge success, challenge failure, cancellation by the user, timeout, and inability to render. Each outcome needs a defined screen, a retry or cancel path, and a server-side status check so the app never relies on the client alone to mark a payment complete. Confirm how the app behaves when the app goes to the background during a challenge and when the user returns. Done means each outcome can be triggered in a test build and the app shows the correct state and the backend record matches it.

  6. Run the test matrix on iOS and Android

    The QA lead runs a matrix that covers every market, card network and outcome from the support matrix, on current iOS and Android devices and on the oldest OS versions the app supports. Include cancellation, timeout, network loss during a challenge, and the fallback path if a native challenge cannot render. Record the payment ID, outcome, device, OS version and environment for each run. Ask the processor or 3DS provider to confirm which runs must be repeated on live accounts before go-live. Done means every cell of the matrix has a recorded result, every failure has a ticket with an owner, and the live-account runs required by the processor are scheduled or complete.

Frictionless and challenge flows to test before launch

Native 3DS testing covers the happy paths and the failure paths, and the failure paths cause most of the support load. Each card below pairs what the customer sees in the app with what the Hyperswitch server should record, so QA can check both sides of the same payment. Test card numbers and expected outcomes must come from your processor or 3DS provider test documentation, not from this page.

Frictionless authentication success

The issuer approves the payment without a challenge, so the app should complete the payment with no screen shown to the customer. Confirm that the SDK returns control to checkout without a visible pause, and that the server records the authentication as frictionless with the transaction status and authentication values the processor returns. Check that the payment proceeds to authorization and that liability shift is recorded as the processor documents it. Use the frictionless test cases your processor or 3DS provider publishes.

Routing docs

Challenge success

The issuer presents a challenge, the customer completes it in the native screen, and the issuer approves. The app should render the challenge inside the SDK flow and return to checkout only after the result arrives. The server should record the challenge outcome before authorization is attempted, and the authorization should carry the authentication data. Confirm the final status matches the processor's test documentation for that card.

Challenge failure or cancellation

The customer enters a wrong one-time code, exhausts retries, or cancels the challenge. The app should show a clear message that the payment did not complete and offer a path back to the payment method choice, without a blank screen. The server should record a failed or cancelled authentication and must not send an authorization request. Check that retries are counted the way the issuer and processor document them, and that a cancelled attempt does not leave a pending payment behind.

Timeout and network loss during the challenge

The customer stops mid-challenge, the phone loses connectivity, or the issuer does not respond in time. The app should show a recoverable state rather than hang, and it should not let the customer submit a second authorization that duplicates the first. The server should record a timeout or unknown outcome and reconcile it against the processor's response before any retry. Confirm the timeout values with your processor and SDK version, since these are configuration choices you must verify rather than defaults this page can state.

Backgrounding and resume during bank app approval

Many issuers ask the customer to approve in a separate banking app, which sends the customer out of your app and back. The test should background the app during approval, return to it after approval, and confirm the SDK resumes the correct payment state and does not restart the payment. The server should show one authentication record for the attempt. Repeat the test with the app killed by the operating system, since resume behavior depends on how the app is restored.

Fallback when the SDK cannot start the challenge

Sometimes the SDK cannot start the native challenge because the device, OS version, or SDK configuration does not support it. The app should fall back to the path your design chose, whether a web view or a decline with a clear message, and the choice should be explicit rather than accidental. The server should record which path was used so that fallback volume can be measured. Confirm with your provider exactly when fallback is triggered and whether the processor accepts the authentication data it produces.

Security and data handling in the mobile challenge

The first security decision for a native 3DS flow is whether card data ever reaches the app at all. Keep raw card numbers out of the mobile app wherever the design allows it: the card should be captured by the SDK's tokenized flow or handed to the Hyperswitch card vault (locker), a separate Rust service that the architecture docs describe as built for PCI DSS requirements. Whether the app is in PCI DSS scope depends on the data flow, so confirm with your QSA or compliance lead which component touches the primary account number, which tokens and identifiers leave the device, and whether any of them can be used to reach card data. Do not treat this page as the basis for that decision.

Authentication results and transaction identifiers cross the app boundary in both directions, and they need the same care as the card data. Treat the 3DS result, the transaction identifiers and any cryptographic values as sensitive: keep them out of logs, crash reports and analytics events, and avoid storing them on the device beyond the time the flow needs them. Your backend should retrieve or confirm the authentication outcome from the Hyperswitch server side rather than accepting a result the app reports. Test that a replayed or altered result from a modified client is rejected, because a client-side success signal does not prove the issuer authenticated the cardholder.

The SDK configuration and keys that ship inside the app bundle are visible to anyone who unpacks it, so keep only publishable client values in the app and keep secret keys and merchant credentials on your servers. Review which settings the mobile SDK reads from the bundle, and confirm with the Hyperswitch documentation for your SDK version which values are safe to embed. Plan for key rotation and for revoking a build that exposes a value you should not have shipped. Add these checks to your release review so the data handling you agreed with your compliance lead is the one that ships.

Limits and what to confirm in your environment

Native 3DS in mobile SDKs depends on several moving parts: the SDK version, the processor or 3DS provider, the OS versions your users run, and the release cadence of the platform itself. Each card below names the item to check and who is best placed to confirm it before you commit to a build.

SDK versions and platform support

Confirm which Hyperswitch client SDK versions expose native 3DS challenge handling, and for which platforms. Native support on Android may not match iOS or React Native, and a Flutter or React Native app may depend on a bridge release rather than the core SDK. Ask Hyperswitch for the exact version matrix for your platform, and test the version you plan to ship, not the latest one. Confirm this with the Hyperswitch docs and release notes before scoping the work.

Hyperswitch docs

Processor and 3DS provider acceptance

Native challenge flows only work where the processor or external 3DS provider accepts the authentication data and returns a challenge the app can render. Acceptance can differ by acquirer, card scheme and market, so a flow that works for one connector may fall back to a web view for another. Ask each processor and any external 3DS provider which native flows they support in your target markets, and record the answer per connector.

Separate build for challenge UI

Decide whether the challenge screen ships inside your existing app build or requires a separate build variant, for example for a specific SDK version or for a platform-specific UI component. A separate build adds signing, store review and release coordination work. Confirm with your internal mobile team and release manager whether your app's build pipeline and store policies allow the native challenge UI to ship without a separate artifact.

Release cadence and SDK upgrades

Hyperswitch publishes frequent minor releases, and each release carries a compatibility matrix for the Control Center and web client versions. Native 3DS fixes may land in releases that also change the router, so a mobile SDK upgrade can require a backend upgrade on a schedule you do not control. Confirm with the Hyperswitch releases page how often mobile SDK changes ship, and plan a rolling upgrade window for both backend and app.

Hyperswitch releases

Behavior on older OS versions

Challenge rendering depends on the OS APIs available on each device. Older Android and iOS versions may lack features the SDK uses, which can force a web view fallback or a degraded layout. Set a minimum supported OS version with your product team, then test challenges on the oldest devices in your user base. Confirm the supported minimum with the Hyperswitch SDK documentation and your analytics on device share.

Region-specific authentication rules

Some markets impose their own authentication requirements, consumer disclosure rules or issuer behavior that affect whether a challenge is shown, how it is labeled and what happens on abandonment. Strong customer authentication rules in the EEA differ from requirements elsewhere. Ask your compliance team and your acquirer to confirm which rules apply to each market you serve before you enable native challenges there.

Common questions about native 3DS in Hyperswitch mobile SDKs

Can our team build native 3DS in a Hyperswitch mobile app without outside help?

Often yes, but the deciding factor is whether your mobile engineers have shipped card authentication flows before. Native 3DS touches the SDK integration, your backend's authentication handoff, the processor or 3DS provider behind it, and the challenge screens your customers see. Start by confirming in the Hyperswitch docs which mobile SDK versions and authentication features your platforms support, since that determines what the build can include. Then check whether one person can own the flow end to end, including test cases for challenge, frictionless, failed and abandoned outcomes. If that ownership is missing, a fixed-scope engagement can cover design, build and testing while your team keeps control of releases.

What drives the effort of a native 3DS build in mobile apps?

Effort rises with the number of combinations your app has to support. The main drivers are:

  • Platforms: iOS, Android, and any cross-platform framework your apps use, each with its own SDK integration and test devices.
  • Processors and 3DS providers: each one can return different authentication data, challenge formats and error states.
  • Markets: regional rules and card mixes change which flows customers see, so each market adds test scenarios.
  • The existing web view flow: a stable web view that is lightly customized is easier to replace than one with heavy custom logic or workarounds.

Each added combination multiplies test cases, so ask any partner to break its estimate down by these four parts before you compare offers.

What do we need to provide for a native 3DS project?

A native 3DS project depends on access and decisions that sit with your organization. Plan to provide:

  • Test accounts and test cards from each processor or 3DS provider, so challenge and frictionless outcomes can be reproduced.
  • Sandbox credentials and webhook access for the processors in scope, along with the configuration needed to receive authentication results.
  • Mobile release capacity, because SDK changes go through app store review and need a slot in your release calendar.
  • A compliance review of the authentication flow and the data it handles, carried out with your security or compliance team.

DeployOpen can prepare systems and evidence for compliance assessments, but independent auditors issue any audit reports or attestations.

How long does a native 3DS project take for our scope?

Duration follows from scope, so it cannot be stated as a single figure. A project covering one mobile platform and one processor is a different piece of work from a build across several platforms, processors and markets, especially if the existing web view flow needs rework. Ask for a timeline tied to written milestones: scope agreement, design, build, sandbox testing, a release candidate, app store review and a staged rollout. Confirm current app store review times with the stores and your own release calendar, since those steps run on schedules outside the project. Any timeline should state which of your inputs, such as test accounts and release slots, it depends on.

What does a fixed-scope native 3DS engagement cover?

A fixed-scope engagement sets out the platforms, processors, markets and flows in writing before work starts, together with the deliverables and timeline. Confirm that the agreed scope includes:

  • A review of the current web view flow and how it hands off to your backend.
  • Design of native challenge and frictionless handling for each platform in scope.
  • Implementation in the mobile apps and the backend changes they depend on.
  • A test plan covering challenge, frictionless, failed and abandoned outcomes, with a retest after fixes.
  • Handover documentation for your engineers.

DeployOpen plans, implements, tests and documents open-source platforms in infrastructure you control, so the scope is written against your environment. Ask whether app store submission support and any processor-side review are included.

What does native 3DS cost to keep running after launch?

After launch, the recurring work comes from SDK upgrades, retesting after Hyperswitch releases, operating system and app updates, and changes to processor or 3DS provider requirements. Hyperswitch ships minor releases roughly monthly, and its Hyperswitch releases on GitHub page lists compatibility matrices for Control Center and web client versions, so someone must check mobile SDK compatibility with each release. Decide whether your team or a retainer will cover that cycle. DeployOpen offers ongoing support, upgrades and continuous testing as retainers. Ask any partner what a retest after an SDK update includes and who handles app store resubmission.

How DeployOpen scopes and delivers native 3DS work

DeployOpen approaches native 3DS in Hyperswitch mobile SDKs as a fixed-scope engagement: first agree which SDK, flows and authentication paths are in play, then build and test them in infrastructure you control. Each stage ends with written deliverables your payments, mobile and security teams can review.

How we scope

  • Inventory your mobile apps, SDK versions and the Hyperswitch backend they call before any build work starts.
  • Agree in writing which challenge and frictionless flows, platforms and 3DS providers the engagement covers.
  • Confirm with your processors and 3DS provider which authentication data and SDK features each one supports.

How we build

  • Configure the native 3DS flow in your iOS and Android apps against your self-hosted Hyperswitch deployment.
  • Test challenge and frictionless outcomes, timeouts and cancellations on real devices and in the sandbox.
  • Check that Control Center settings and decision rules trigger 3DS as the agreed design specifies.

How we hand over

  • Deliver build notes, configuration records and a test matrix covering each flow, platform and failure case.
  • Document the SDK version pinning and the upgrade steps your mobile team will repeat for each release.
  • Walk your engineers through runbooks for diagnosing authentication failures and escalating to processors.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing SDK upgrades, regression testing and monitoring are available as a retainer after handover.
  • Ask for a written quote that lists each deliverable, the environments covered and any out-of-scope items.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.