> 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/integration-guide/payment-experience/pay-then-vault/card-scanning.md).

# Card Scanning

Hyperswitch's card scanning feature uses OCR technology to accurately extract credit card details in real-time, reducing manual entry errors and speeding up checkout.

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2FF6Iqe92k6LnHn8utuVch%2Fimage%20(4).png?alt=media&amp;token=01d0c691-ae9b-4d58-a5d7-c8e3a18a1ce4" alt=""><figcaption></figcaption></figure>

**Key Features of Juspay Hyperswitch's Card Scanning Technology**

1. **Accuracy**: Leveraging optical character recognition (OCR) technology, Hyperswitch's card scanning feature accurately extracts credit card details in real-time. This significantly reduces the likelihood of manual entry errors and speeds up the checkout process.
2. **Seamless Integration**: Hyperswitch offers a developer-friendly SDK that makes it easy to integrate the card scanning feature into various platforms, including native mobile apps ([iOS](https://docs.hyperswitch.io/hyperswitch-cloud/integration-guide/ios/features) and [Android](https://docs.hyperswitch.io/hyperswitch-cloud/integration-guide/android/features)), cross-platform frameworks, and even in-browser applications.

**Benefits of Hyperswitch's Card Scanning Feature**

1. **Improved User Experience**: By eliminating the need for manual card data entry, the card scanning feature significantly enhances the user experience, potentially leading to higher conversion rates for businesses.
2. **Reduced Error Rates**: The scanning technology minimizes the risk of mistyped card information, reducing transaction errors and potential disputes.
3. **Time-Saving Efficiency**: For both customers and merchants, the card scanning feature saves valuable time during the checkout process, potentially leading to increased customer satisfaction and loyalty.

{% tabs %}
{% tab title="Android" %}
**1.0 Add the Scan Card dependency**

Add this scan card dependency to your build.gradle file

```gradle
hyperswitch {
    // Enable scan card feature
    enableScanCard = true
    
    // Optional: Specify custom version (uses recommended version if not specified)
    scanCardVersion = "0.0.6"
}
```

{% endtab %}

{% tab title="iOS" %}
**1.0 Configure pods to support Scan Card feature**

Scan Card Setup

Add these lines to your Podfile:

```ruby
#use_frameworks!
#target 'YourAPP' do
  pod 'hyperswitch-sdk-ios/scancard'
#end
```

Note: Above subspec installs both Hyperswitch SDK and Scan Card dependencies to your app

Run the following command:

```
pod install
```

To update to the latest version of the SDK, run:

```
pod install --repo-update
```

**1.1 Enable scan card support for iOS app**

To enable scan card support, set the `NSCameraUsageDescription` (**Privacy - Camera Usage Description**) in the Info.plist of your application, and provide a reason for accessing the camera (for example, "camera access required to scan cards"). Devices with iOS 13 or higher support card scanning.
{% endtab %}

{% tab title="Android Lite" %}
**1.0 Add the Scan Card Lite dependency**

Add this scan card lite dependency to your build.gradle file

```gradle
dependencies {
    implementation 'io.hyperswitch:hyperswitch-scan-card-lite:+'
}
```

{% endtab %}
{% endtabs %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hyperswitch.io/integration-guide/payment-experience/pay-then-vault/card-scanning.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
