On-Device Credit Card Capture SDK

Scan both sides of a card in-app. Number, name, expiry, type, and CVC come back on-device — the PAN (your card number) never leaves the phone.

Get Started for Free Free Demo
On-Device Credit Card Capture SDK

On-device · No API call · PCI compliant

Credit card in. JSON out.

Veryfi’s Credit Card Capture SDK reads both sides of a payment card on the phone and returns the number, name, expiry, brand, and CVC as JSON. There is no API call. The capture is PCI compliant because the image and the PAN stay on the device. Wallets, checkout, and card-on-file flows use that JSON instead of a 16-digit form. See supported card fields and the Lens for Credit Cards docs.

0 fields snapping into JSON

What is a credit card?

A credit card is a payment card. The front carries the primary account number, the cardholder name, the expiration date, and the network brand. The back carries the verification code — CVV, CVC, or CID.

Checkout and wallet apps need those same values as data. The SDK reads both sides on the device and returns that card as JSON. There is no API call. The capture is PCI compliant, and the number never leaves the phone.

Did you know

The last digit is a check digit. Change any other digit and the number fails the Luhn test, which is how a blurry read can be rejected before anyone tries to charge it.

Let’s Veryfi It

On-device Lens capture for both sides. Test drive Veryfi — 14-day free trial, or speak to a Veryfi Expert.

Front of card
Veryfi Bank
Infinite
4111 1111 1111 0002
PAN
Card holder
BART S1MPSONedit
Expires 09/31+3y
Veryfi Bank
Infinite
4111 1111 1111 1111
PAN
Card holder
BART SIMPSONedit
Expires 09/28+3y
Back of card
Authorized signature
Bart S1mpson
CVC
222

Issued for demonstration. Test PAN only. Not valid for payment.

Authorized signature
Bart Simpson
CVC
847

Issued for demonstration. Test PAN only. Not valid for payment.

See what all the fuss is about

Veryfi Lens

Test Drive It on your Phone

Point the camera at a credit card. Lens finds the edges, kills the glare, and extracts all the detail required to automate payments, reconcile transactions and much more — the same capture engine partners drop into their apps.

Point the camera at a receipt. Lens finds the edges, kills the glare, and extracts all the detail required to automate expenses, reconcile transactions and much more — the same capture engine partners drop into their apps.

Point the camera at a bank check. Lens finds the edges, kills the glare, and extracts MICR, amount, payee, and endorsement detail required to automate remote deposit — the same capture engine partners drop into their apps.

Point the camera at a fuel bill of lading. Lens finds the edges, kills the glare, and extracts the BOL, fuel code, lane, and net gallons required to fill the motor-fuel schedule — the same capture engine partners drop into their apps.

Free demo app for iPhone and Android. Scan the code or tap a store.

Supported Fields

Payment card front and back extracted as on-device JSON from Veryfi Lens Credit Card SDK, including embossed, debossed, and flat print, CVC from the reverse, and card-number validity.

  • Front of Card
    • Card number
      credit_card_number
      The card number is the primary account number printed or embossed on the front of the card.What it is
      • The PAN, usually 15 or 16 digits
      • Read from embossed, debossed, or flat print
      • The value used for the validity check
      Where to find it
      • Across the front of the card
      • Not the short verification code on the back
      Read it with
      • Expiration date
      • Card number is valid
      4111 1111 1111 1111
    • Expiration date
      credit_card_date
      The expiration date is the month and year the plastic stops being valid.What it is
      • Printed as a month and year, often MM/YY
      • A card can fail a charge after this date even when the number is well formed
      • Separate from the day the scan was captured
      Where to find it
      • On the front, labeled Valid Thru, Exp, or Good Thru
      Read it with
      • Card number
      09/28
    • Card type, issuer
      credit_card_type
      Card type is the network or issuer brand recognized from the card, such as Visa, Mastercard, Amex, or Discover.What it is
      • The brand, not a separate vendor field
      • Inferred from the number and the marks on the plastic
      • The Lens result uses this field for what some help articles call the vendor
      Where to find it
      • The logo on the front, and the number range
      Stays separate from
      • Card number
      visa
    • Card holder name
      credit_card_holder_name
      The card holder name is the person or business the card was issued to.What it is
      • The name printed or embossed on the front
      • Not always the person presenting the card
      • Blank on some flat cards that omit the name
      Where to find it
      • On the front, under or beside the number
      Read it with
      • Card number
      Bart Simpson
  • Back of Card
    • Verification code, CVV
      credit_card_cvv
      The verification code is the short security code used to show the person has the physical card.What it is
      • Called CVV, CVC, or CID depending on the network
      • Three digits on most cards, four on American Express
      • Read from the reverse. Amex often prints the four digits on the front
      Where to find it
      • On the back, in or next to the signature panel
      • On the front for many American Express cards
      Stays separate from
      • Card number, which this code is not a part of
      847
  • Validation
    • Card number is valid
      credit_card_is_valid
      This flag says whether the scanned number passes a card-number check. It does not say the account is open or that a charge will succeed.What it is
      • True or false from the number itself
      • A format and check-digit test, not an authorization
      • Not printed on the card
      How to use it
      • Use it to reject a misread before you submit a payment
      • Pair a false result with a retake when the image is blurry
      true
    • Card scan id
      credit_card_id
      The card scan id is the identifier for this capture. It is assigned when the card is scanned. It is not printed on the plastic.What it is
      • The id of this scan result
      • Use it to refer to this capture later
      • Not the card number and not the verification code
      How to use it
      • Store it with the payment attempt or the customer record
      • Do not treat it as a PAN
      2f629eda-9f21-430a-885e-b8d6368ae80c
Lens for Credit Cards: Init Code
import VeryfiLens
class LensController: UIViewController {
let credentials = VeryfiLensCredentials(
clientId: CLIENT_ID,
username: AUTH_USERNAME,
apiKey: AUTH_APIKEY,
url: URL
)
let settings = VeryfiLensSettings(with: jsonSettings)
settings.documentTypes = ["credit_card"]
VeryfiLens.shared().delegate = self
VeryfiLens.shared().configure(with: credentials, settings: settings)
VeryfiLens.shared().showCamera(in: self)
}
Lens for Credit Cards: Delegates Code
extension LensController: VeryfiLensDelegate {
func veryfiLensClose(_ json: [String: Any]!) {
// Handle close event
}
func veryfiLensError(_ json: [String: Any]!) {
// Handle error event
}
func veryfiLensSuccess(_ json: [String: Any]!) {
// Handle success event
}
func veryfiLensUpdate(_ json: [String: Any]!) {
// Handle update event
}
}

Developer Friendly Mobile SDK

Import the Veryfi Lens Camera framework binary into your IDE. Handle the callback. Built-in UI or headless — you keep the UX, Lens keeps the PAN on the phone. Works with iOS, Android, Flutter, Xamarin, .NET, Capacitor, Ionic, React Native, and Web. Code in any language. Integrate in seconds.

SOC 2 Type II · Live

Global Bank-Grade Security & Compliance

Veryfi SOC 2 Type II compliant Certified seal

SOC 2 Type II

CERT · VERIFIED

Certified. GDPR, CCPA, and ITAR compliant.

HIPAA Compliance

HIPAA · BAA

We sign BAAs. PHI handled under HIPAA safeguards.

99.995% Uptime SLA

SLA · SAMPLED

Dedicated NVIDIA DGX — not shared cloud GPUs.

Deployment Flexibility

REGION · READY

Cloud API, hybrid, or on-premise when required.

GDPR

GDPR · READY

EU data protection. Lawful processing and subject rights.

Audit Trail

API · LOGGED

Every API call logged and timestamped for regulators.

Built for the banks that can’t afford “good enough.”

Features

  • On-Device Processing

    All credit card image processing and data extraction is performed entirely on the device, without being sent over the internet.

  • Card Detection

    Veryfi Lens runs a light machine model to perfect the capture of your customers' credit cards. Veryfi Lens runs a machine model which is trained to distinguish a credit card from its surroundings, including other hard edges and similarly colored surfaces. This means there is no need for guides or messages in app to tell your customer how to position the card. They can hold it in their hand or on any surface and the machine model inside Veryfi Lens will identify the card and extract all the data on both sides. This makes the experience of capturing card information super seamless and pain free.

  • Auto Torch in Low Light

    Veryfi Lens includes Al computer vision and custom camera features that optimize image quality based on surroundings to ensure the greatest possible data extraction accuracy. The real-time Veryfi Lens computer vision model recognizes low light situations and automatically enables the device’s torch/flashlight to ensure high-quality credit card capture.

  • Auto Capture

    Veryfi Lens can be configured to automatically capture the credit card without pressing the capture button. The machine model inside Veryfi Lens will calculate when it sees the card to automatically snap the picture for you ready for your preview. Technology should make your customer's life easier, not harder.

  • Headless Mode

    You can take advantage of all the AI and machine model without the default graphical user interface that comes prepackaged with Veryfi Lens. This way you can control the UI/UX experience while still providing powerful AI features to your customers.

  • Free SDKs

    Ship projects faster and achieve peace of mind using our Free SDKs

Use Cases

Same on-device Lens capture, different workflows. Jump from a card or start with what Veryfi extracts from a credit card.