vkeepe / card.io Goto Github PK
View Code? Open in Web Editor NEWThis project forked from card-io/card.io-cordova-plugin
Scan Credit Card Number - iOS & Android Cordova plugin
License: Other
This project forked from card-io/card.io-cordova-plugin
Scan Credit Card Number - iOS & Android Cordova plugin
License: Other
Solved
How do I lock the orientation of the scanning overlay to landscape in iOS and Android?
card-io/card.io-iOS-SDK#117 mentions that the overlay should respect the layout settings of the app, however my app is set to landscape, and the scanning overlay still rotates to portrait on iOS, and Android.
I am using it with ionic angular cordova project. When I click scan button onCardIOCancel callback is called. Can't figure whats wrong.
When I updated my cordova version to 6.5.0 the compilation failed because this:
Error: Invalid character in entity name
to solved i have to remove the '&' from the plugin.xml
In the newest version of Cordova (7.0.1), when adding a custom plugin with cordova-plugin-keepe-cardio as a plugin dependency I get the following error:
{{Error: Expected plugin to have ID "cordova-plugin-keepe-cardio" but got "com.keepe.cardio".}}
The app doesn't seem to scan few cards such as AMEX, HSBC debit cards and other cards. Could you please advise what needs to be done for the same? The issue is presented both in IOS and Android
Hello!
Do you have any plans to implement it with javascript with the Media Streams API
Thank You!
I need to remove manual button bottom in my app. I have use this code but "suppressManual" seems doesn't work for IOS (android it is ok):
CardIO.scan({
"expiry" : true,
"cvv" : false,
"zip" : false,
"suppressConfirm" : true,
"suppressManual" : true,
"hideLogo" : true
}, onCardIOComplete, onCardIOCancel);
Can anyone help me? Thanks in advance!
Hey, this works great on iOS but getting the following on Android:
E/AndroidRuntime(14335): FATAL EXCEPTION: main
E/AndroidRuntime(14335): Process: com.swoonbox.dev.scanner, PID: 14335
E/AndroidRuntime(14335): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.swoonbox.dev.scanner/io.card.payment.DataEntryActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
E/AndroidRuntime(14335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
E/AndroidRuntime(14335): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
E/AndroidRuntime(14335): at android.app.ActivityThread.access$800(ActivityThread.java:155)
E/AndroidRuntime(14335): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
E/AndroidRuntime(14335): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(14335): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(14335): at android.app.ActivityThread.main(ActivityThread.java:5343)
E/AndroidRuntime(14335): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(14335): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(14335): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
E/AndroidRuntime(14335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
E/AndroidRuntime(14335): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
E/AndroidRuntime(14335): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:302)
E/AndroidRuntime(14335): at android.app.Activity.requestWindowFeature(Activity.java:3615)
E/AndroidRuntime(14335): at io.card.payment.ui.ActivityHelper.addActionBarIfSupported(ActivityHelper.java:29)
E/AndroidRuntime(14335): at io.card.payment.DataEntryActivity.onCreate(DataEntryActivity.java:395)
E/AndroidRuntime(14335): at android.app.Activity.performCreate(Activity.java:6010)
E/AndroidRuntime(14335): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
E/AndroidRuntime(14335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
E/AndroidRuntime(14335): ... 10 more
W/ActivityManager( 832): Force finishing activity 1 com.swoonbox.dev.scanner/io.card.payment.DataEntryActivity
W/ActivityManager( 832): Force finishing activity 2 com.swoonbox.dev.scanner/io.card.payment.CardIOActivity
Also posting this on the Android SDK repo but if you have any ideas that would be a great help. Thank you.
This plugin has worked brilliantly for us so far. Unfortunately our latest build with Cordova 6.3.1 and Xcode 8, deploying to iOS 10, is having problems.
First we had to get past a problem where invoking window.CardIO.scan would result in the script engine infinitely complaining about refusing to load gap://ready. This was easy to overcome by adding gap: to our Content-Security-Policy tag.
Now when we invoke window.CardIO.scan the app crashes.
Will continue to analyze, please let me know if there is anything I can do to help.
Hi,
I've tried to add the plugin into a ionic project, but it seems like it is unable to reference to CardIO
CardIO is not definedCardIO is not defined
Anyone succeed using ionic?
Thanks :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.