# Card Scanning

<figure><img src="/files/6T0QflRMMKEFEXZig1xd" 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/integration-guide/payment-experience/sdk-reference/ios-sdk) 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: 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/integration-guide/payment-suite/payment-method-card/features.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.
