Card IO
Cordovaの問題で困っていますか?

本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、 エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- iOS
利用方法
React
Angular
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
<key>NSCameraUsageDescription</key>
<string>To scan credit cards.</string>
import { CardIO } from '@ionic-native/card-io/ngx';
constructor(private cardIO: CardIO) { }
...
this.cardIO.canScan()
.then(
(res: boolean) => {
if(res){
let options = {
requireExpiry: true,
requireCVV: false,
requirePostalCode: false
};
this.cardIO.scan(options);
}
}
);