npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-payment-card-scanner

v0.3.5

Published

Iranian Bank Card Scanner for React Native - Scan Iranian debit/credit cards with OCR technology. Supports Android & iOS with Persian/Farsi text display.

Readme

React Native Iranian Bank Card Scanner

A powerful React Native library for scanning Iranian bank cards (debit/credit cards) using OCR technology. This package is specifically designed for Iranian banking system and supports Persian/Farsi text display.

Features

  • Iranian Bank Card Support: Optimized for Iranian debit and credit cards
  • OCR Technology: Advanced card number and expiry date detection
  • Persian/Farsi Support: Full support for Persian text display
  • Cross-Platform: Works on both Android and iOS
  • Easy Integration: Simple API for React Native apps
  • Custom Fonts: Support for custom Persian fonts
  • High Accuracy: Optimized for Iranian card formats

Supported Iranian Banks

This scanner works with cards from major Iranian banks including:

  • Bank Melli Iran (بانک ملی ایران)
  • Bank Tejarat (بانک تجارت)
  • Bank Saderat (بانک صادرات)
  • Bank Mellat (بانک ملت)
  • Bank Parsian (بانک پارسیان)
  • Bank Pasargad (بانک پاسارگاد)
  • And other Iranian banks

Installation

npm install react-native-payment-card-scanner

iOS Setup

cd ios && pod install

Android Setup

No additional setup required for Android.

Usage

import PaymentCardScanner from 'react-native-payment-card-scanner';

// Scan Iranian bank card
PaymentCardScanner.scan(
  'اسکن کارت بانکی', // Top text in Persian
  'کارت بانکی خود را مقابل دوربین قرار دهید', // Bottom text in Persian
  'Vazir', // Persian font family name
  'Vazir' // Persian font family name
)
  .then((result) => {
    console.log('Card Number:', result.PAN);
    console.log('Expiry Date:', result.EXP);
    console.log('CVV:', result.CVV);
  })
  .catch((error) => {
    console.error('Scan failed:', error);
  });

API Reference

PaymentCardScanner.scan(topText, bottomText, topTextFontFamily, bottomTextFontFamily)

Scans an Iranian bank card and returns the extracted information.

Parameters:

  • topText (string): Text displayed at the top of the scanner (supports Persian)
  • bottomText (string): Text displayed at the bottom of the scanner (supports Persian)
  • topTextFontFamily (string): Font family for top text
  • bottomTextFontFamily (string): Font family for bottom text

Returns: Promise that resolves to an object with:

  • PAN (string): Card number
  • EXP (string): Expiry date in MM/YY format
  • CVV (string): CVV code (if detected)

Example Result

{
  PAN: "1234567890123456",
  EXP: "12/25",
  CVV: "123"
}

Persian Font Support

The library supports Persian fonts. You can use fonts like:

  • Vazir
  • Samim
  • Shabnam
  • IRANSans
  • And other Persian fonts

Requirements

  • React Native 0.60+
  • Android API 21+
  • iOS 10.0+

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Author

Mohammad Navabi - mohammadnavabi.ir


This package is specifically designed for Iranian banking system and Persian language support.