Initialise plugins you will use in your Application file. Check our customisations section for a guide on how to customise SDK UI.
class KevinApplication : Application() {
override fun onCreate() {
super.onCreate()
// setup optional theme. By default we will use Theme.Kevin.Base
// but you can create your own theme that extends Theme.Kevin.Base
Kevin.setTheme(R.style.Your_Kevin_Theme)
// set optional locale, default is phone locale
Kevin.setLocale(Locale("en"))
// initialize required plugins with your callback urls
KevinAccountsPlugin.configure(
KevinAccountsConfiguration.builder()
.setCallbackUrl("https://your.callback.url")
.build()
)
KevinPaymentsPlugin.configure(
KevinPaymentsConfiguration.builder()
.setCallbackUrl("https://your.callback.url")
.build()
)
}
}