Menu

Migrating from Card.io (Android)


First, follow the steps in Part I of our General Integration Guide.

  • We need to import two DyScan classes in your Activity that will launch DyScan:

    import com.dyneti.android.dyscan.DyScanActivity;
    import com.dyneti.android.dyscan.CreditCard;
    
  • Then, rename CardIOActivity to DyScanActivity and remove all putExtra commands on the intent. This will look like

    Intent scanIntent = new Intent(this, DyScanActivity.class);
    scanIntent.putExtra("api-key", "api_key_string");
    (Make sure to replace “api_key_string” with your API key from Dyneti).

  • Note that the CreditCard class is analogous to card.io’s, but contains fewer functions. You can access the relevant fields by indexing cardNumber, expiryMonth, and expiryYear.
Get Started