Card IO



If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Card IO插件的安装(Installation)

ionic cordova plugin add card.io.cordova.mobilesdk npm install @ionic-native/card-io
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/card-io

Ionic Card IO插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Card IO插件的用法(Usage)

This plug-in exposes card.io credit card scanning.

NOTE: If you would like to actually process a credit card charge, you might be interested in the PayPal Cordova Plug-in.

Requires Cordova plugin: card.io.cordova.mobilesdk. For more info, please see the Card IO plugin docs.

Note: For use with iOS 10 + When building your app with the iOS 10 SDK +, you have to add some info to the info.plist file. This is due to increased security in iOS 10. Go to your app directory and search for the Info.plist file. Add the following lines in the main element.

<key>NSCameraIonic Card IO插件的用法(Usage)Descriptionkey>
<string>To scan credit cards.string>
import { CardIO } from '@ionic-native/card-io/ngx';

constructor(private cardIO: CardIO) { }


    (res: boolean) => {
        let options = {
          requireExpiry: true,
          requireCVV: false,
          requirePostalCode: false