Skip to main content

Migrating to DyScan 1.6.0+

In DyScan 1.6.0, we added support to integrate both DyScan Basic and DyScan Protect into the same app. To make this possible, we have altered a few DyScan package and class names. Refer to the guide to make the proper changes in your code:

Before 1.6.0After 1.6.0
app/build.gradle
implementation ('com.dyneti.android.dyscan:dyscan-fraud:1.5.1')
implementation ('com.dyneti.android.dyscan_protect:dyscan:1.6.0')
any file importing DyScan
import com.dyneti.android.dyscan.*;
import com.dyneti.android.dyscan_protect.*;
AndroidApplication.java
DyScan.init(this, "apiKey");
DyScanProtect.init(this, "apiKey");
DeclineReasons declineReasons = card.getDeclineReasons();DyScanProtectDeclineReasons declineReasons = card.getDyScanProtectDeclineReasons();
DyScan classes
DyScan<br/>DyScan<br/>DyScanActivity<br/>DyScanView<br/>DyScanHelperTextPosition<br/>CreditCard<br/>DeclineReasons
DyScanProtect<br/>DyScanProtectActivity<br/>DyScanProtectView<br/>DyScanProtectHelperTextPosition<br/>DyScanProtectCreditCard<br/>DyScanProtectDeclineReasons