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.0 | After 1.6.0 |
---|---|
app/build.gradleimplementation ('com.dyneti.android.dyscan:dyscan-fraud:1.5.1') | implementation ('com.dyneti.android.dyscan_protect:dyscan:1.6.0') |
any file importing DyScanimport com.dyneti.android.dyscan.*; | import com.dyneti.android.dyscan_protect.*; |
AndroidApplication.javaDyScan.init(this, "apiKey"); | DyScanProtect.init(this, "apiKey"); |
DeclineReasons declineReasons = card.getDeclineReasons(); | DyScanProtectDeclineReasons declineReasons = card.getDyScanProtectDeclineReasons(); |
DyScan classesDyScan<br/>DyScan<br/>DyScanActivity<br/>DyScanView<br/>DyScanHelperTextPosition<br/>CreditCard<br/>DeclineReasons | DyScanProtect<br/>DyScanProtectActivity<br/>DyScanProtectView<br/>DyScanProtectHelperTextPosition<br/>DyScanProtectCreditCard<br/>DyScanProtectDeclineReasons |