# Card Scanning

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-5f13fe1b0b1b1ee284006af80894babe428ae819%2FFrame%2048095844.png?alt=media" 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 %}
