DyScan
Search…
Migrating from card.io (Android)
If you haven't already, follow the "Importing DyScan" steps in the General Integration Guide.
Import the following DyScan classes in your Activity that will launch DyScan:
1
import com.dyneti.android.dyscan.DyScanActivity;
2
import com.dyneti.android.dyscan.CreditCard;
Copied!
Rename CardIOActivity to DyScanActivity and remove all putExtra commands on the intent. Make a new putExtra for the key "api-key." This will look like
1
Intent scanIntent = new Intent(this, DyScanActivity.class);
2
scanIntent.putExtra("api-key", "api_key_string");
Copied!
CreditCard is analogous to card.io's, but contains fewer methods. You can access the relevant fields by indexing cardNumber, expiryMonth, and expiryYear.
Last modified 2yr ago
Copy link