Migrating from (Android)

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

  • First, we need to import two DyScan classes in your Activity that will launch DyScan:

  • Then, rename CardIOActivity to DyScanActivity and remove all putExtra commands on the intent. DyScanActivity only supports the put value “DyScanActivity.EXTRA_API_KEY”, which should contain the API key you get from Dyneti. This will look like

    Intent scanIntent = new Intent(this, DyScanActivity.class);
    scanIntent.putExtra(DyScanActivity.EXTRA_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’s, but contains fewer functions. You can access the relevant fields by indexing cardNumber, expiryMonth, and expiryYear.
Get Started