Skip to content

Commit d90b832

Browse files
authored
Sdk bug fix (#58)
* Updated link for creating a certificate * Fix bug in SDK by adding kotlin-reflect and okhttp as dependencies
1 parent bcca6b9 commit d90b832

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

app-dynamic/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ dependencies {
9191
implementation(libs.google.material)
9292
implementation(libs.kotlinx.coroutines.core)
9393

94+
implementation(libs.squareup.okhttp)
95+
implementation(libs.squareup.okhttp.logging.interceptor)
96+
97+
implementation(libs.kotlin.reflect)
98+
9499
testImplementation(libs.junit)
95100
androidTestImplementation(libs.androidx.junit)
96101
androidTestImplementation(libs.androidx.espresso.core)

dynamic_sdk/src/main/java/com/adyen/sampleapp/dynamic/DynamicAuthenticationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DynamicAuthenticationService : MerchantAuthenticationService() {
3434
val merchantAccount = BuildConfig.EnvironmentMerchantAccount
3535

3636
// This app is intended to be used only against the TEST environment.
37-
val apiUrl = "https://checkout-test.adyen.com/checkout/possdk/v68/sessions"
37+
val apiUrl = "https://checkoutpos-test.adyen.com/checkoutpos/v3/auth/certificate/"
3838

3939
// You can also declare this implementation somewhere else and pass it using your Dependency Injection system.
4040
override val authenticationProvider: com.adyen.ipp.api.authentication.AuthenticationProvider

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-c
5353
squareup-logcat = { group = "com.squareup.logcat", name = "logcat", version.ref = "squareup-logcat" }
5454
squareup-okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "squareup-okhttp3" }
5555
squareup-okhttp-logging-interceptor = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "squareup-okhttp3" }
56+
kotlin-reflect = { group = "org.jetbrains.kotlin", name = "kotlin-reflect", version.ref = "kotlin-version" }
57+
5658

5759
# Testing.
5860
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "android-espresso-core-version" }

0 commit comments

Comments
 (0)