Question

I need to implement either Card.io or Jumio in my phonegap/cordova application. I am aware that a card.io phonegap plugin exists for Iphone, but I need to get (or implement) it for the Android SDK. Can someone point me in the right direction / article? Any help on how to go about it would be great.

Was it helpful?

Solution

card.io doesn't currently provide or maintain an Android Phone Gap plugin. To create one, you'd want to grab the card.io Android SDK and look at the Phone Gap wiki instructions for creating Android plugins. If you do create a plugin, please do contribute it back to Phone Gap repository!

OTHER TIPS

This is how I did it to make Card.IO work with phonegap ... I am sure its not the best way / the 'plugin' way...but if you want to quickly check out card.io with your app...

public class MainActivity extends DroidGap {

private CardIO cardIO;

@Override
public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    super.init();
    appView.addJavascriptInterface(cardIO, "cardIO");
    super.loadUrl("file:///android_asset/www/index.html");
}

}

In the above code, CardIO is a helper class which calls the CardIOActivity the usual way. It has a helper method for calling cardIO getCardDetails() (Sorry, I just lost the source for this..:( but it was nothing new/great actually..just a method calling cardioactivity and returning a string)

Now you can call it from your javascript interface like this :

console.log(window.cardIO.getDetails());

I would also like to point out that after trying this out, I found it quite difficult to scan a couple of (indian) credit cards I tried.. so as of now, I am not going to use card.io... will wait till it suits my needs properly...

We have developed an android plugin for card.io Plugin can be downloaded from,

Cubet Techno lab's phonegap plugins git repository

You need to integrate card.io android SDK first. Card io Android SDK

Enjoy :)

You can try this plugin Card.IO for android

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top